[SERVER-42651] Make CollectionQueryInfo actively detect index changes rather than being notified Created: 06/Aug/19  Updated: 06/Dec/22

Status: Backlog
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Xiangyu Yao (Inactive) Assignee: Backlog - Query Optimization
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-40714 Change CollectionInfoCache to be a de... Closed
Assigned Teams:
Query Optimization
Sprint: Execution Team 2019-08-12
Participants:

 Description   

Currently, CollectionQueryInfo has the addedIndex() and droppedIndex() methods that are used by others (such as index_build_block) to notify any index changes.
We could change CollectionQueryInfo to detect any index changes by itself. Then index_build_block does not need to depend on CollectionQueryInfo.



 Comments   
Comment by David Storch [ 12/Aug/19 ]

xiangyu.yao geert.bosch should this be moved to the Query Team backlog?

Comment by Xiangyu Yao (Inactive) [ 09/Aug/19 ]

We decided not to do this for now due to the existing strong coupling between IndexCatalog and CollectionQueryInfo.
It's pretty convenient for IndexCatalog to notify CollectionQueryInfo to do fine-grained information update, but hard for CollectionQueryInfo to detect those and make changes accordingly.

Generated at Thu Feb 08 05:01:04 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.