How to check query performance of mongodb aggregation?
伊谢尔伦2017-05-02 09:26:35
0
1
907
Using find, you can use explain('executionStats') to view query analysis, but aggregate does not use explain query analysis. It is impossible to tell whether it uses indexes and whether it is sorted in memory...
You might as well read more official documents.
https://docs.mongodb.com/manu...
db.collection.aggregate(pipeline, options)
The options document can contain the following fields and values:explain,allowDiskUse,etc.
Love MongoDB! Have Fun!
MongoDB Online Lecture Series 19- MongoDB 10 steps to build a single view
It’s April 19th, please click:>---<