[SERVER-68792] Refactor iterating over cell values from CheckFilter into a CellValueIterator Created: 12/Aug/22  Updated: 29/Oct/23  Resolved: 23/Sep/22

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

Type: Task Priority: Major - P3
Reporter: Irina Yatsenko (Inactive) Assignee: Irina Yatsenko (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Participants:

 Description   

For per-path filters we need to be able to iterate over cell values and distinguish whether the values are in nested arrays or not. Currently this logic is implemented insideĀ 
ColumnScanStage::checkFilter() but it's worth extracting it into a standalone value iterator.

There are also several optimizations we could make to the zig-zag scan that can happen under this ticket.



 Comments   
Comment by Githook User [ 23/Sep/22 ]

Author:

{'name': 'Irina Yatsenko', 'email': 'irina.yatsenko@mongodb.com', 'username': 'IrinaYatsenko'}

Message: SERVER-68792 Refactor iterating over cell values into a cursor
Branch: master
https://github.com/mongodb/mongo/commit/02c78ac52fd67148b499b0cbf0f422a50bd92943

Comment by Justin Seyster [ 26/Aug/22 ]

irina.yatsenko@mongodb.com I prototyped the optimization suggested here, because the inArray stack showed up hot in a query I was profiling. I got a respectable 6% improvement for that query.

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