From f17d625a39ad8538e53dc1244a3f46d86b28750e Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Sat, 1 Sep 2018 11:38:54 +0200 Subject: [PATCH] Tweak the indexes --- config.py | 1 + 1 file changed, 1 insertion(+) diff --git a/config.py b/config.py index f6af26d..a31aeca 100644 --- a/config.py +++ b/config.py @@ -104,6 +104,7 @@ MEDIA_CACHE = MediaCache(GRIDFS, USER_AGENT) def create_indexes(): DB.activities.create_index([("remote_id", pymongo.ASCENDING)]) + DB.activities.create_index([("activity.object.id", pymongo.ASCENDING)]) # Index for the block query DB.activities.create_index(