MongoDB Performance Tools
MongoDB provides several tools for profiling and tweaking performances:
Indexes
explain(): provides information on the query plan adopted by Mongo to execute the query.
hint(): overrides MongoDB’s default index selection and query optimization process.
Profiler: collects fine grained data about MongoDB write operations, cursors, database commands on a running mongod instance.
mongotop: tracks the amount of time a MongoDB instance spends reading and writing data on a per-collection level.
mongostat: gives a quick overview of the status of a currently running mongod or mongos instance.












