database administration - Getting most used queries in mongodb -
i'd analyze our db , create better indices it. because our app complex, , don't know used parts of our app, i'd somehow see used read queries hit our db with. make easy me analyze , create right indices them.
any ideas on how that?
you can enable database profiling this. details here - https://docs.mongodb.com/v3.2/tutorial/manage-the-database-profiler/
alternatively simpler way use mongostat (details here -https://docs.mongodb.com/v3.2/administration/monitoring/) captures , returns counts of database operations type (e.g. insert, query, update, delete, etc.).
Comments
Post a Comment