[SERVER-78558] Establish mongot cursor before SBE builder Created: 29/Jun/23  Updated: 29/Oct/23  Resolved: 17/Aug/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.1.0-rc0

Type: New Feature Priority: Major - P3
Reporter: Zixuan Zhuang Assignee: Zixuan Zhuang
Resolution: Fixed Votes: 0
Labels: None
Σ Remaining Estimate: Not Specified Remaining Estimate: Not Specified
Σ Time Spent: Not Specified Time Spent: Not Specified
Σ Original Estimate: Not Specified Original Estimate: Not Specified

Sub-Tasks:
Key
Summary
Type
Status
Assignee
SERVER-79139 Create a function to run initial sear... Sub-task Closed Zixuan Zhuang  
Assigned Teams:
Query Execution
Backwards Compatibility: Fully Compatible
Sprint: QE 2023-08-07, QE 2023-08-21
Participants:

 Description   

Classic Document Source for $search establishes the cursor in createAdditionalPipelinesIfNeeded, but this is done after SBE pushdown/builder.

We need something similar before SBE builder, and insert it into DocumentSourceSearch.

Note that createAdditionalPipelinesIfNeeded also create the second pipeline/executor for metadata cursor for shard scenario, this is not part of the ticket.



 Comments   
Comment by Githook User [ 17/Aug/23 ]

Author:

{'name': 'Zixuan Zhuang', 'email': 'zixuan.zhuang@mongodb.com', 'username': 'leozzx'}

Message: SERVER-78558: Establish mongot cursor before SBE builder
Branch: master
https://github.com/mongodb/mongo/commit/2e20f7615c340c8c8faa2777dfd734e0dcabb5e2

Comment by Zixuan Zhuang [ 17/Jul/23 ]

SERVER-73959 has added an option to disable pre-fetch, we should use that for this cursor

Comment by Zixuan Zhuang [ 17/Jul/23 ]

We need to force un-pinned cursor for this one, the sbe stage will establish another cursor, we should pin that one if the default value is true.

Generated at Thu Feb 08 06:38:39 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.