Add index to analytics.log.event

This commit is contained in:
Matt Lott 2015-01-05 10:49:37 -08:00
parent 947811c01b
commit 7052dd99f5

View file

@ -6,5 +6,6 @@ AnalyticsLogEventSchema = new mongoose.Schema({
type: Date
'default': Date.now
}, {strict: false})
AnalyticsLogEventSchema.index({event: 1, created: -1})
module.exports = AnalyticsLogEvent = mongoose.model('analytics.log.event', AnalyticsLogEventSchema)