It does take awhile to run. Doing a batch will still take awhile, right? We've got  https://etherpad.mozilla.org/bug-999119 but there's nothing there that also alters the addons table.

IMO this is fine but I'm open to suggestions for improving this.