Update analytics.log.event indexes to match prod

These were applied as single indexes directly in production.
This commit is contained in:
Matt Lott 2015-01-06 14:07:20 -08:00
parent 9a6933023c
commit a144c5ff0d

View file

@ -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)