mongodb keep_mutation stage explain

前端 未结 2 1424
后悔当初
后悔当初 2021-01-14 10:06

I use mongo\'s explain() to check the performance of some queries, sometimes a keep_mutation stage will show up like the following:

  \"executionStats\" : {
         


        
2条回答
  •  臣服心动
    2021-01-14 10:43

    KeepMutationsStage passes all of its child's data through until the child is EOF. It then returns all flagged elements in the WorkingSet that pass the stage's filter.

    This stage is used to merge results that are invalidated mid-query back into the query results when possible. The query planner is responsible for determining when it's valid to merge these results.

    Source

提交回复
热议问题