Rough sketch of tasks for this ticket:
- During parsing/desugaring, extract an appropriate limit (if possible) based on the pipeline suffix of a $search pipeline
- Build an $_internalMongotRemote stage with the limit
- Construct a mongot cursor with the extracted limit as a batch size (exact syntax will be determined by search team's spec)
Note that this ticket does not need to handle the case where a document is filtered out by $idLookup, and thus no getMores are needed on the mongot cursor.
- is depended on by
-
SERVER-75666 Add oversubscription feature
- Closed
-
SERVER-76404 Call the no-prefetch TaskExecutorCursor if there is an extractable limit
- Closed
- is duplicated by
-
SERVER-69873 Send skip/limit/batchSize to mongot
- Closed