-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: 4.1.7
-
Component/s: Aggregation Framework
-
Query Execution
-
Query 2020-03-23
This is a feature request to enhance the behaviour of the $sample aggregation command by adding to the plan optimizer the WiredTiger “readOnce: true” option for MongoDB cursors (SERVER-36068).
The intended purpose behind this enhancement is so $sample does not (or is less likely to) cache the result set. A sample by definition is unlikely to be used again by subsequent samples, thereby caching has no benefit and only serves to add unwanted cache pressure and workload contention.
- depends on
-
SERVER-47118 Investigate the behavior of read_once cursors
- Backlog
-
SERVER-47055 Investigate performance regression in initial sync collection scan with readOnce cursors
- Closed
-
SERVER-36068 Expose a user-accessible cursor option to avoid caching data from reads
- Closed