flyingmachine/whoops — Issue #2: Boosting Performance?
Author: alexw668
Created: 2011-11-04 18:42:40+00:00
State: open

We've been running the Whoops for a while and we've accumulated a bunch of logging messages. Now when we tried to examine some of messages, the response from the site hosting the Whoops engine is very slow.

I can see two reasons why that's the case. 1) By default, the whoops_events collection is not capped (we currently have more than 500k events being stored); 2) no indexes were created on whoops_events collection. Indexing on event_group_id, event_time, and keywords should help.

Regarding capped collection for whoops_events, is it possible and safe for us to convert the whoops_events collection into a capped one without dropping the collection and recreating it?

It would be great if you could make some changes to address this issue.

Thanks!
Alex