mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-27 06:23:41 -04:00
Added back an index we need on LevelSession, but in code this time instead of just from the shell as 'weird query index'.
This commit is contained in:
parent
32ca453dec
commit
6f2b1b2a41
1 changed files with 1 additions and 0 deletions
|
@ -17,6 +17,7 @@ LevelSessionSchema.index({levelID: 1})
|
|||
LevelSessionSchema.index({'level.majorVersion': 1})
|
||||
LevelSessionSchema.index({'level.original': 1}, {name: 'Level Original'})
|
||||
LevelSessionSchema.index({'level.original': 1, 'level.majorVersion': 1, 'creator': 1, 'team': 1})
|
||||
LevelSessionSchema.index({creator: 1, level: 1}) # Looks like the ones operating on level as two separate fields might not be working, and sometimes this query uses the "level" index instead of the "creator" index.
|
||||
LevelSessionSchema.index({playtime: 1}, {name: 'Playtime'})
|
||||
LevelSessionSchema.index({submitDate: 1})
|
||||
LevelSessionSchema.index({submitted: 1}, {sparse: true})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue