mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 17:45:40 -05:00
Update analytics.log.event indexes to match prod
These were applied as single indexes directly in production.
This commit is contained in:
parent
9a6933023c
commit
a144c5ff0d
1 changed files with 2 additions and 1 deletions
|
@ -6,6 +6,7 @@ AnalyticsLogEventSchema = new mongoose.Schema({
|
|||
type: Date
|
||||
'default': Date.now
|
||||
}, {strict: false})
|
||||
AnalyticsLogEventSchema.index({event: 1, created: -1})
|
||||
AnalyticsLogEventSchema.index event: 1
|
||||
AnalyticsLogEventSchema.index created: -1
|
||||
|
||||
module.exports = AnalyticsLogEvent = mongoose.model('analytics.log.event', AnalyticsLogEventSchema)
|
||||
|
|
Loading…
Reference in a new issue