Skip to content

fix: respect the old data filter on inverted index#6216

Open
westonpace wants to merge 4 commits intolance-format:mainfrom
westonpace:fix/fts-respect-old-data-filter
Open

fix: respect the old data filter on inverted index#6216
westonpace wants to merge 4 commits intolance-format:mainfrom
westonpace:fix/fts-respect-old-data-filter

Conversation

@westonpace
Copy link
Member

This is basically the same problem encountered in #5929

However, the solution there (and in other indices fixed since then) has been to prune indices during the update phase to remove old fragments. Unfortunately, FTS indices are maybe too large for this pruning to make sense (it would require a complete scan through of the old index) though I haven't verified how bad the performance would be.

This PR instead keeps track of which fragments have been invalidated. It then uses this as a block-list at search time.

@github-actions github-actions bot added the bug Something isn't working label Mar 17, 2026
#[derive(Debug, Clone)]
pub enum OldIndexDataFilter {
/// Keep old rows whose row-address fragment is in this bitmap.
/// Keeps track of which fragments are still valid and which are no longer valid.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this fix work for tables with stable row IDs?

@codecov
Copy link

codecov bot commented Mar 18, 2026

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

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants