mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-24 19:59:53 -04:00
Add index to analytics.log.event
This commit is contained in:
parent
947811c01b
commit
7052dd99f5
1 changed files with 1 additions and 0 deletions
|
@ -6,5 +6,6 @@ AnalyticsLogEventSchema = new mongoose.Schema({
|
||||||
type: Date
|
type: Date
|
||||||
'default': Date.now
|
'default': Date.now
|
||||||
}, {strict: false})
|
}, {strict: false})
|
||||||
|
AnalyticsLogEventSchema.index({event: 1, created: -1})
|
||||||
|
|
||||||
module.exports = AnalyticsLogEvent = mongoose.model('analytics.log.event', AnalyticsLogEventSchema)
|
module.exports = AnalyticsLogEvent = mongoose.model('analytics.log.event', AnalyticsLogEventSchema)
|
||||||
|
|
Loading…
Add table
Reference in a new issue