[SERVER-65779] Pass IndexBounds directly to the CheckBounds stage Created: 19/Apr/22  Updated: 29/Oct/23  Resolved: 22/Apr/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.0.0-rc2, 6.1.0-rc0

Type: Bug Priority: Major - P3
Reporter: Denis Grebennicov Assignee: Denis Grebennicov
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v6.0
Sprint: QE 2022-05-02
Participants:
Linked BF Score: 135

 Description   

As part of SERVER-63351 we passed IndexBounds to the CheckBounds stage as an EExpression, either as a Variable with the Slot in the Runtime Environment, or as a Constant.

Upon evaluation both of them are not owned, resulting in performing unnecessary copy to the CheckBounds stage, causing the regression BF-24874.

As a solution to this issue, we will not pass the IndexBounds as an EExpression, but rather as a SlotId or as IndexBounds*.

This should solve the performance issue and make it even more explicit of how to instantiate the CheckBounds stage.



 Comments   
Comment by Githook User [ 22/Apr/22 ]

Author:

{'name': 'Denis Grebennicov', 'email': 'denis.grebennicov@mongodb.com', 'username': 'denis631'}

Message: SERVER-65779 Pass IndexBounds directly to the CheckBounds stage
Branch: v6.0
https://github.com/mongodb/mongo/commit/7a7e183392b0ecf77a3735631fa4cc4b85097a75

Comment by Githook User [ 22/Apr/22 ]

Author:

{'name': 'Denis Grebennicov', 'email': 'denis.grebennicov@mongodb.com', 'username': 'denis631'}

Message: SERVER-65779 Pass IndexBounds directly to the CheckBounds stage
Branch: master
https://github.com/mongodb/mongo/commit/451066548201f420bb42e884292c36e2769472e2

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