forked from forks/microblog.pub
New indexes for replies
This commit is contained in:
parent
17a5257fea
commit
9746508dab
1 changed files with 10 additions and 0 deletions
|
@ -83,3 +83,13 @@ def create_indexes():
|
|||
|
||||
# For the is_actor_icon_cached query
|
||||
MEDIA_CACHE.fs._GridFS__files.create_index([("url", 1), ("kind", 1)])
|
||||
|
||||
# Replies index
|
||||
DB.replies.create_index([("remote_id", pymongo.ASCENDING)])
|
||||
DB.replies.create_index([("meta.thread_root_parent", pymongo.ASCENDING)])
|
||||
DB.replies.create_index(
|
||||
[
|
||||
("meta.thread_root_parent", pymongo.ASCENDING),
|
||||
("meta.deleted", pymongo.ASCENDING),
|
||||
]
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue