Say what the unilateral value saves over a set of deleted rows - #78
Merged
Merged
Conversation
The section gave the reason for the representation but not what it is worth, which differs by structure: free in the matrix index, a field read in a scan, and later than pruning in an inverted index, whose lists are ordered by the same value. Records the property a scorer selecting where it scores depends on, which is that the tombstone is already wherever the arithmetic is.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The deletion section explained why a tombstone lives in the unilateral value rather than in a
set of deleted row numbers, but not what that is worth. It is worth different amounts in
different structures, and one of them gains nothing from the usual argument.
excluding a deleted row incurs no cost beyond arithmetic the search already performs. A set
would add a lookup for every row of every query.
have already fetched, so there is no second structure to consult.
cannot sit on the key the search prunes against. A deleted row is generated as a candidate
and dropped only when verification reads its record. What it still gains is the absence of a
second structure to maintain.
It also records a property that was load-bearing but unstated: a scorer that selects where it
scores and returns only the rows it kept has to apply deletion at that site, and the unilateral
values are already copied there for the arithmetic. A set would have to be copied too and kept
in step with every delete, or the selection would return deleted rows and leave the caller
short of what it asked for.
Prose only. No code changes.