MongoDB Query Optimization and Profiling
When you work with MongoDB and if your queries is taking time to run and return resultset, then need to check execution query plan of your query, which will help you know, execution time of query, does query used colscan or indexscan, does any index used with query run etc.