Commit c4d237d
committed
Expose AdvancedColumnFamilyOptions::memtable_batch_lookup_optimization in the C API
The skip-list memtable gained an opt-in batch-lookup optimization that
caches the search path between consecutive MultiGet keys, reducing
per-key cost from O(log N) to O(log d) where d is the distance between
consecutive keys. The optimization is gated by a new immutable
AdvancedColumnFamilyOptions field (default: false) which had no C API
setter, so the optimization was unreachable from C/Rust.
Add a setter/getter pair mirroring the existing
rocksdb_options_{set,get}_memtable_huge_page_size — the closest sibling
on both the C API side (adjacent memtable knob) and the C++ side (same
AdvancedColumnFamilyOptions parent struct).
The field is immutable on the C++ side, so the setter only takes effect
on options used to open a column family.
No change to the C++ API.1 parent e82af29 commit c4d237d
4 files changed
Lines changed: 28 additions & 0 deletions
File tree
- db
- include/rocksdb
- unreleased_history/public_api_changes
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5398 | 5398 | | |
5399 | 5399 | | |
5400 | 5400 | | |
| 5401 | + | |
| 5402 | + | |
| 5403 | + | |
| 5404 | + | |
| 5405 | + | |
| 5406 | + | |
| 5407 | + | |
| 5408 | + | |
| 5409 | + | |
| 5410 | + | |
5401 | 5411 | | |
5402 | 5412 | | |
5403 | 5413 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2812 | 2812 | | |
2813 | 2813 | | |
2814 | 2814 | | |
| 2815 | + | |
| 2816 | + | |
| 2817 | + | |
| 2818 | + | |
| 2819 | + | |
| 2820 | + | |
| 2821 | + | |
| 2822 | + | |
| 2823 | + | |
2815 | 2824 | | |
2816 | 2825 | | |
2817 | 2826 | | |
| |||
2998 | 3007 | | |
2999 | 3008 | | |
3000 | 3009 | | |
| 3010 | + | |
| 3011 | + | |
3001 | 3012 | | |
3002 | 3013 | | |
3003 | 3014 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1990 | 1990 | | |
1991 | 1991 | | |
1992 | 1992 | | |
| 1993 | + | |
| 1994 | + | |
| 1995 | + | |
| 1996 | + | |
| 1997 | + | |
| 1998 | + | |
1993 | 1999 | | |
1994 | 2000 | | |
1995 | 2001 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments