Skip to content

Commit

Permalink
update doc and para name for optimize_for_point_lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
XiangpengHao authored and zaidoon1 committed Feb 7, 2024
1 parent 1fb26dd commit 4336985
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/db_options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1581,9 +1581,12 @@ impl Options {
}
}

pub fn optimize_for_point_lookup(&mut self, cache_size: u64) {
// Use this if you don't need to keep the data sorted, i.e. you'll never use
// an iterator, only Put() and Get() API calls
//
pub fn optimize_for_point_lookup(&mut self, block_cache_size_mb: u64) {
unsafe {
ffi::rocksdb_options_optimize_for_point_lookup(self.inner, cache_size);
ffi::rocksdb_options_optimize_for_point_lookup(self.inner, block_cache_size_mb);
}
}

Expand Down

0 comments on commit 4336985

Please sign in to comment.