How To
Usage metrics do not load
1 min
usage metrics dashboard never loads, or the widgets “spin” indefinitely this can be caused by a large number (hundreds of thousands or millions) of documents in the mongodb usageentrys collection to work around the problem, delete documents from the usageentrys collection until the usage metrics dashboard becomes acceptable to delete documents from the entrys collection, first backup mongodb, then connect to mongodb using either the shell or robo 3t, and execute this query db getcollection('usageentrys') find({}) limit(n) foreach(function(doc){db getcollection('usageentrys') remove({ id doc id});}) where n is set to some large fraction of the documents check the usage metrics dashboard performance after executing the query, then repeat until the usage metrics dashboard performance is acceptable