PyMongo Aggregate how to get executionStats

2019-07-25 05:13发布

问题:

I am trying to get executionStats of a Particular mongo aggregate query. I run db.command but that doesn't give "execution status"

This is what I am trying to do. how to get Python Mongo Aggregate explain using db.command?

pymongo aggregate don't allow explain option