mongodb keep_mutation stage explain

前端 未结 2 1426
后悔当初
后悔当初 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:24

    Check this :

    KEEP_MUTATIONS stage: When documents are deleted or updated some Query stages can receive invalidation notices. Some stages flag documents that are deleted. The set of flagged documents is then read by the KEEP_MUTATIONS stage, which re-checks these documents against the query and returns them if they still match. Note that this is not used for the WiredTiger engine, only for the MMAPv1.

提交回复
热议问题