Tweak the indexes

This commit is contained in:
Thomas Sileo 2018-09-01 11:38:54 +02:00
parent f6586eb852
commit f17d625a39

View file

@ -104,6 +104,7 @@ MEDIA_CACHE = MediaCache(GRIDFS, USER_AGENT)
def create_indexes(): def create_indexes():
DB.activities.create_index([("remote_id", pymongo.ASCENDING)]) DB.activities.create_index([("remote_id", pymongo.ASCENDING)])
DB.activities.create_index([("activity.object.id", pymongo.ASCENDING)])
# Index for the block query # Index for the block query
DB.activities.create_index( DB.activities.create_index(