[VOTE] Add invalidated_fragments to IndexMetadata
#6529
Replies: 6 comments 1 reply
-
|
+1 |
Beta Was this translation helpful? Give feedback.
-
|
+1 |
Beta Was this translation helpful? Give feedback.
-
|
+1 |
Beta Was this translation helpful? Give feedback.
-
|
+1 binding |
Beta Was this translation helpful? Give feedback.
-
|
@westonpace What's the status of this? It looks like the vote passed, but #6514 was closed rather than merged. |
Beta Was this translation helpful? Give feedback.
-
|
Close this vote thread, while it passed, we did not implement this per #6529 (reply in thread) Can re-open if we have evidence it's worth re-exploring. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
There is a discussion thread here and a PR here.
The basic problem occurs when an existing indexed column is modified (on one or more fragments). Previously we removed those fragments from the index's fragment bitmap. However, the index might still be searched if it contains other valid (unmodified) fragments. The results must be masked out to block the stale results referring to invalidated fragments.
One approach could be to always apply an allow-list for the fragment bitmap of the index. However, this would add considerable cost to the happy path (indexed column is not updated after index is created) because we would need to apply this allow list on every search.
A simpler approach is to apply the block list to fragments removed from the fragment bitmap, only if fragments have actually been removed. To do this we need to know which fragments were removed from the index.
Beta Was this translation helpful? Give feedback.
All reactions