Create MongoDB index on tokens.token_hashed
This commit is contained in:
parent
6d8870ba25
commit
053e681d00
@ -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)])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user