Skip to content

Commit b451c9f

Browse files
new indexes
1 parent 4ff08de commit b451c9f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

add_indexes.py

+3
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@
1010

1111
for pool_id in database.get_pool_ids():
1212
database.db['users'].create_index([('total_cr.' + pool_id, pymongo.DESCENDING)])
13+
14+
database.db['actions'].create_index([('queue_id', pymongo.ASCENDING)])
15+
database.db['actions'].create_index([('queue_id', pymongo.ASCENDING), ('time', pymongo.ASCENDING)])

0 commit comments

Comments
 (0)