From df12ddbd57c61b7a74dca41517fff173ef62c0c9 Mon Sep 17 00:00:00 2001 From: Jordan Terrell Date: Wed, 13 Feb 2019 07:16:16 -0600 Subject: [PATCH] Adding more documentation to ReadOptions.set_readahead_size [skip ci]... --- src/db.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/db.rs b/src/db.rs index 4aa43dc..9113a80 100644 --- a/src/db.rs +++ b/src/db.rs @@ -1722,6 +1722,11 @@ impl ReadOptions { unsafe { ffi::rocksdb_readoptions_set_total_order_seek(self.inner, v as c_uchar) } } + /// If non-zero, an iterator will create a new table reader which + /// performs reads of the given size. Using a large size (> 2MB) can + /// improve the performance of forward iteration on spinning disks. + /// Default: 0 + /// /// ``` /// use rocksdb::{ReadOptions}; ///