mongodb聚合怎么查看查询性能?
伊谢尔伦
伊谢尔伦 2017-05-02 09:26:35
0
1
878

用find可以使用explain('executionStats')查看查询分析,但是aggregate用没有explain查询分析了,根本看不出它有没有用索引,是否在内存排序这些问题啊...

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!