Skip to content

read metadata in SimpleQueryableIndex if available to compute segment ordering#17181

Merged
clintropolis merged 1 commit intoapache:masterfrom
clintropolis:metadata-lazy-problems
Sep 28, 2024
Merged

read metadata in SimpleQueryableIndex if available to compute segment ordering#17181
clintropolis merged 1 commit intoapache:masterfrom
clintropolis:metadata-lazy-problems

Conversation

@clintropolis
Copy link
Copy Markdown
Member

@clintropolis clintropolis commented Sep 28, 2024

#16700 made QueryableIndex.getMetadata be 'lazy', which is kind of nice in some ways since we don't have to hang on to the segment metadata object unless we need it, however changes in #16533, #16849, and #16985 made it so that we read the segment "ordering" every time we make a cursor, which comes from the metadata, and seems pretty unchill with the lazy metadata reading.

This PR makes it so that we precompute the ordering in SimpleQueryableIndex constructor so that getOrdering is a cheap call.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants