Aggregation pipeline stage metrics
We are working on a pipeline Query, Its taking good amount of time. We have lot of stages. it would be good we can get know which stage is taking more time.
Is there any way we can get the stats of each pipeline stage like approx duration, no of a document?
is there a way we can identify how much CPU or memory that entire pipeline took?
I'm moving this request to Compass, since it seems that the request is about usability fo representation
We found Third-party tool Studio3T which does what i propsoed above.. https://studio3t.com/knowledge-base/articles/build-mongodb-aggregation-queries/
we can use explain as suggested, very difficult to do analysis. Compass is in no way matching this tool's capabilities.
You can run explain() for your aggregation to see number of documents and execution time