mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 17:45:40 -05:00
Add index for /db/level.session/-/recent
This commit is contained in:
parent
9624885fe2
commit
34819f2d04
1 changed files with 1 additions and 0 deletions
|
@ -24,6 +24,7 @@ LevelSessionSchema.index({submitted: 1}, {sparse: true})
|
|||
LevelSessionSchema.index({team: 1}, {sparse: true})
|
||||
LevelSessionSchema.index({totalScore: 1}, {sparse: true})
|
||||
LevelSessionSchema.index({user: 1, changed: -1}, {name: 'last played index', sparse: true})
|
||||
LevelSessionSchema.index({levelID: 1, changed: -1}, {name: 'last played by level index', sparse: true}) # Needed for getRecentSessions for CampaignLevelView
|
||||
LevelSessionSchema.index({'level.original': 1, 'state.topScores.type': 1, 'state.topScores.date': -1, 'state.topScores.score': -1}, {name: 'top scores index', sparse: true})
|
||||
LevelSessionSchema.index({submitted: 1, team: 1, level: 1, totalScore: -1}, {name: 'rank counting index', sparse: true})
|
||||
#LevelSessionSchema.index({level: 1, 'leagues.leagueID': 1, submitted: 1, team: 1, totalScore: -1}, {name: 'league rank counting index', sparse: true}) # needed for league leaderboards?
|
||||
|
|
Loading…
Reference in a new issue