You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The singleLevelIterator and twoLevelIteratorinit methods both load the the highest index block. When CockroachDB is performing an MVCC Get, this may be unnecessary. If the iterator is only ever used for a call to SeekPrefixGE and the bloom filter is effective, the index block may never be seeked. It's unclear if this is at all impactful, and lazily loading the index block will inevitably add some small overhead and code complexity to seek operations.
Alternatively, we could implement a special Reader.GetPrefix method this optimization and others (#2002), without needing to edit the codepaths for other seek operations.
The
singleLevelIterator
andtwoLevelIterator
init
methods both load the the highest index block. When CockroachDB is performing an MVCC Get, this may be unnecessary. If the iterator is only ever used for a call toSeekPrefixGE
and the bloom filter is effective, the index block may never be seeked. It's unclear if this is at all impactful, and lazily loading the index block will inevitably add some small overhead and code complexity to seek operations.Alternatively, we could implement a special
Reader.GetPrefix
method this optimization and others (#2002), without needing to edit the codepaths for other seek operations.Jira issue: PEBBLE-116
The text was updated successfully, but these errors were encountered: