mongodb explain agregation Использование с агрегацией пример

Можно так:

db.report.explain("allPlansExecution").aggregate(
[......пайплайн...],
{"allowDiskUse":true,
"cursor":{"batchSize":50000}}).explain('executionStats')

где report -- имя коллекции.


Источники:

  1. Ещё вариант: https://stackoverflow.com/questions/1270...

Key Words for FKN + antitotal forum (CS VSU):