Question/poll support
This commit is contained in:
parent
4c0e81224f
commit
be7648c9ed
7 changed files with 361 additions and 41 deletions
13
config.py
13
config.py
|
@ -144,6 +144,19 @@ def create_indexes():
|
|||
]
|
||||
)
|
||||
|
||||
DB.activities.create_index([("box", pymongo.ASCENDING)])
|
||||
|
||||
# Outbox query
|
||||
DB.activities.create_index(
|
||||
[
|
||||
("box", pymongo.ASCENDING),
|
||||
("type", pymongo.ASCENDING),
|
||||
("meta.undo", pymongo.ASCENDING),
|
||||
("meta.deleted", pymongo.ASCENDING),
|
||||
("meta.public", pymongo.ASCENDING),
|
||||
]
|
||||
)
|
||||
|
||||
DB.activities.create_index(
|
||||
[
|
||||
("type", pymongo.ASCENDING),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue