---
** [tickets:#7223] Config option to disable userstats tracking**
**Status:** open
**Labels:** performance
**Created:** Wed Feb 26, 2014 04:29 PM UTC by Dave Brondsema
**Last Updated:** Wed Feb 26, 2014 04:29 PM UTC
**Owner:** nobody
Userstats should have an option to disable tracking, for forges that don't want
to track or are have users with enough activity that the current userstats
logic doesn't scale well.
Example, one record that is about 5MB large, mostly contained in
".lastmonth.messages" but other parts of the data structure can also be very
large.
~~~~
forge:SECONDARY> Object.bsonsize(db.userstats.findOne({user_id:
db.user.findOne({username:'brondsem'})._id }))
5018300
forge:SECONDARY> Object.bsonsize(db.userstats.findOne({user_id:
db.user.findOne({username:'brondsem'})._id }).lastmonth.messages)
5005740
forge:SECONDARY> db.userstats.findOne({user_id:
db.user.findOne({username:'brondsem'})._id }).lastmonth.messages.length
52178
~~~~
---
Sent from sourceforge.net because [email protected] is subscribed
to https://sourceforge.net/p/allura/tickets/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/allura/admin/tickets/options. Or, if this is a
mailing list, you can unsubscribe from the mailing list.