[SERVER-42583] Thread ExpressionContext to SortStage so that it can access 'tempDir' Created: 01/Aug/19 Updated: 29/Oct/23 Resolved: 13/Sep/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Querying |
| Affects Version/s: | None |
| Fix Version/s: | 4.3.1 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Mikhail Ivkov (Inactive) | Assignee: | David Storch |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Sprint: | Query 2019-09-23 |
| Participants: |
| Description |
|
The ExpressionContext for a find command is currently held on the CanonicalQuery. In preparation for allowing SortStage to perform an external sort, we need to pass the tempDir and allowDiskUse settings for the query through to SortStage. This should be done by passing the find command's ExpressionContext through to SortStage's constructor. |
| Comments |
| Comment by Githook User [ 13/Sep/19 ] |
|
Author: {'name': 'David Storch', 'username': 'dstorch', 'email': 'david.storch@mongodb.com'}Message: This makes it possible to instantiate a SortExecutor inside |