getsentry/sentry — pull request #682 by alex (2012-12-12 17:43:25+00:00)
Title: Attempt to optimize search

Attempt to update search tokens before creating, and when creating do it in bulk.

I think this makes it slightly race-conditiony though, but only on the first creation, and I guess it's not a giant deal if the counts are very slightly out of sync?