mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-14 07:00:01 -04:00
Add index for analytics server log collection
Created on live analytics server as well.
This commit is contained in:
parent
06436a4bb7
commit
61d2ce3dc5
1 changed files with 1 additions and 0 deletions
|
@ -18,6 +18,7 @@ AnalyticsLogEventSchema = new mongoose.Schema({
|
|||
|
||||
AnalyticsLogEventSchema.index({event: 1, _id: -1})
|
||||
AnalyticsLogEventSchema.index({event: 1, 'properties.level': 1})
|
||||
AnalyticsLogEventSchema.index({event: 1, 'properties.levelID': 1})
|
||||
AnalyticsLogEventSchema.index({user: 1, event: 1})
|
||||
|
||||
AnalyticsLogEventSchema.statics.logEvent = (user, event, properties={}) ->
|
||||
|
|
Loading…
Reference in a new issue