- db.customers.find({lastName: ‘smith’}).explain()
- db.customers.find({lastName: ‘smith’}).perf()
- db.customers.find({lastName: ‘smith’}).plan()
- db.customers.find({lastName: ‘smith’}).usedIndex()
In the MongoDB shell, how can you tell if an index was used with a query?
June 25, 2021June 25, 2021
0 Comment