search

Home  >  Q&A  >  body text

How to check query performance of mongodb aggregation?

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

伊谢尔伦伊谢尔伦2819 days ago927

reply all(1)I'll reply

  • PHP中文网

    PHP中文网2017-05-02 09:28:35

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

    reply
    0
  • Cancelreply