Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
None
-
None
-
None
Description
https://docs.mongodb.org/manual/faq/concurrency/#does-a-read-or-write-operation-ever-yield-the-lock
For WT, as suggested by the comment there there is no need to yield in order to avoid holding locks for too long as with mmapv1. However we do yield periodically in order to avoid long-running WT transactions because a long-running transaction can potentially require holding a large amount of data in memory.