diff --git a/server/analytics/AnalyticsLogEvent.coffee b/server/analytics/AnalyticsLogEvent.coffee index a81b70c4c..1f82c2780 100644 --- a/server/analytics/AnalyticsLogEvent.coffee +++ b/server/analytics/AnalyticsLogEvent.coffee @@ -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)