[英]PyMongo Aggregate how to get executionStats
我正在嘗試獲取特定 mongo 聚合查詢的 executionStats。 我運行 db.command 但這並沒有給出“執行狀態”
這對我有用:
db.command('explain', {'aggregate': coll_name, 'pipeline': you_pipeline, 'cursor': {}}, verbosity='executionStats')
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.