add indices to events, fixes
@@ -39,6 +39,12 @@ class MongoIndex(BaseCommand):
[('when', pymongo.DESCENDING),
(settings.LEVEL_FIELD, pymongo.ASCENDING),
('type', pymongo.ASCENDING)],
+ [('when', pymongo.DESCENDING),
+ (settings.LEVEL_FIELD, pymongo.ASCENDING),
+ ('participants.id', pymongo.ASCENDING)],
+ [('when', pymongo.ASCENDING),
+ (settings.LEVEL_FIELD, pymongo.ASCENDING),
+ ('participants.id', pymongo.ASCENDING)],
[ (settings.LEVEL_FIELD, pymongo.ASCENDING),
('related_bills.bill_id', pymongo.ASCENDING),
('when', pymongo.DESCENDING) ],
