You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@fluss.apache.org by "platinumhamburg (via GitHub)" <gi...@apache.org> on 2026/10/20 02:40:10 UTC

[I] [Improvement] Bound RocksDB prefix lookups with an exclusive upper limit [fluss]

platinumhamburg opened a new issue, #4743:
URL: https://github.com/apache/fluss/issues/4743

   ### Search before asking
   
   I searched existing issues and did not find an equivalent request.
   
   ### Motivation
   
   RocksDB prefix lookups currently seek to the encoded prefix and copy every candidate key through JNI to check whether it starts with that prefix. For lookups returning many rows, those key allocations and comparisons add work to the synchronous lookup path.
   
   ### Proposed change
   
   Express the prefix scan as a native RocksDB range with an exclusive `iterate_upper_bound`. Under the existing bytewise comparator, all keys starting with a byte prefix `P` form the range `[P, successor(P))`. Compute the successor by incrementing the rightmost byte other than `0xff` and truncating the remaining suffix. Empty and all-`0xff` prefixes have no finite upper bound.
   
   The iterator can then collect values without fetching each key merely to test the prefix. Keep the upper-bound slice alive until the iterator is closed.
   
   Preserve arbitrary-length encoded prefixes, result ordering, current locking, configuration defaults, and SST compatibility. Cover byte boundaries and both memtable and SST reads with regression tests.
   
   ### Additional context
   
   This is a local prefix-iteration optimization; it requires neither a fixed-length prefix extractor nor a storage-format change.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@fluss.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [kv] Bound RocksDB prefix lookups with an exclusive upper limit [fluss]

Posted by "platinumhamburg (via GitHub)" <gi...@apache.org>.
platinumhamburg closed issue #4743: [kv] Bound RocksDB prefix lookups with an exclusive upper limit
URL: https://github.com/apache/fluss/issues/4743


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@fluss.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org