[SERVER-80816] Do not produce search metadata if it is not used Created: 06/Sep/23  Updated: 09/Jan/24  Resolved: 09/Jan/24

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

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

Issue Links:
Related
related to SERVER-78566 Propagate metadata after SBE execution Closed
is related to SERVER-84618 Analyze metadata dependencies after a... Backlog
Assigned Teams:
Query Execution
Backwards Compatibility: Fully Compatible
Sprint: QE 2023-12-25, QE 2024-01-08, QE 2024-01-22
Participants:

 Description   

Detect if $meta is used in the query, and not to produce search metadata slots if it is not used.

It is hard because $meta can be used in non-pushdown pipeline stages, but the SBE plan is cached before when $meta is not used (the SBE query is same).



 Comments   
Comment by Githook User [ 09/Jan/24 ]

Author:

{'name': 'Zixuan', 'email': 'leozzx@users.noreply.github.com', 'username': 'leozzx'}

Message: SERVER-80816 Do not produce search metadata if it is not used (#17650)

GitOrigin-RevId: d0b800ce64257517e981d49eeca29833adf9d83e
Branch: master
https://github.com/mongodb/mongo/commit/a695401a542444c2d52b21589d66f3b710e5c229

Comment by Zixuan Zhuang [ 07/Nov/23 ]

Remove from Epic PM-3351, will work on this later.

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