mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
added index definitions
This commit is contained in:
parent
ebd5628e53
commit
795f717bab
1 changed files with 4 additions and 0 deletions
|
@ -73,3 +73,7 @@ module.exports = MongoManager =
|
|||
db.projectHistoryMetaData.ensureIndex { project_id: 1 }, { background: true }
|
||||
# TTL index for auto deleting week old temporary ops
|
||||
db.docHistory.ensureIndex { expiresAt: 1 }, { expireAfterSeconds: 0, background: true }
|
||||
# For finding packs to be checked for archiving
|
||||
db.docHistory.ensureIndex { last_checked: 1 }, { background: true }
|
||||
# For finding archived packs
|
||||
db.docHistoryIndex.ensureIndex { project_id: 1 }, { background: true }
|
||||
|
|
Loading…
Reference in a new issue