Create MongoDB index on tokens.token_hashed

This commit is contained in:
Sybren A. Stüvel 2017-10-05 19:40:41 +02:00
parent 6d8870ba25
commit 053e681d00

View File

@ -724,6 +724,7 @@ class PillarServer(Eve):
coll = db['tokens'] coll = db['tokens']
coll.create_index([('user', pymongo.ASCENDING)]) coll.create_index([('user', pymongo.ASCENDING)])
coll.create_index([('token', pymongo.ASCENDING)]) coll.create_index([('token', pymongo.ASCENDING)])
coll.create_index([('token_hashed', pymongo.ASCENDING)])
coll = db['notifications'] coll = db['notifications']
coll.create_index([('user', pymongo.ASCENDING)]) coll.create_index([('user', pymongo.ASCENDING)])