dcramer/sentry — pull request #486 by clvrobj (2012-05-11 02:53:51+00:00)
Title: Reduce database hits for solving database blocking problem.

We @qingfeng @cnborn and I are trying to solve the database blocking problem.

The plan is:
Every time get the data from api, just send data to queue but not store to database at this time.
Set a periodic task to process all data aggregated in queue, merging data with same checksum key into one data and update the 'times_seen' field.
This could reduce the quantity of database hits, for the same errors or messages will only store one time and the count still be correct.

Please review the code and give us suggestion, thanks.