mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-12-22 13:14:28 +00:00
Tweak the indexes
This commit is contained in:
parent
f6586eb852
commit
f17d625a39
1 changed files with 1 additions and 0 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue