/
Improve performance of queries in MongoDB

Improve performance of queries in MongoDB

 Problem

How to Improve performance of queries ?

 Solution

Make indexes to increase the performance of queries using performance advisor, step are given below :

  1. Login into MonogoDB Atlas https://cloud.mongodb.com/

 

2. Select your cluster. I selected building-block-cluster and you will see view like:

 

3. Click on Performance Advisor tab, under Optimize Performance check create indexes block

4. Create all recommended indexes for faster performance.

 

We can also identify slowest queries from Profiler section, and then we can create indexes for these queries.

Related content