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...

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(1)
Ty80

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:>---<

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template