mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-20 05:58:21 +08:00
mdbx: add auto-readahead note/description.
Change-Id: Ie425416fd1afe9092b73acae4a7e3cdb5c3d8168
This commit is contained in:
parent
4dfa97cda9
commit
bb2d2877c4
6
mdbx.h
6
mdbx.h
@ -973,6 +973,12 @@ LIBMDBX_API const char *mdbx_dump_val(const MDBX_val *key, char *const buf,
|
|||||||
* may help random read performance when the DB is larger than RAM and system
|
* may help random read performance when the DB is larger than RAM and system
|
||||||
* RAM is full.
|
* RAM is full.
|
||||||
*
|
*
|
||||||
|
* By default libmdbx dynamically enables/disables readahead depending on the
|
||||||
|
* actual database size and currently available memory. On the other hand, such
|
||||||
|
* automation has some limitation, i.e. could be performed only when DB size
|
||||||
|
* changing but can't tracks and reacts changing a free RAM availability, since
|
||||||
|
* it changes independently and asynchronously.
|
||||||
|
*
|
||||||
* NOTE: The mdbx_is_readahead_reasonable() function allows to quickly find out
|
* NOTE: The mdbx_is_readahead_reasonable() function allows to quickly find out
|
||||||
* whether to use readahead or not based on the size of the data and the
|
* whether to use readahead or not based on the size of the data and the
|
||||||
* amount of available memory.
|
* amount of available memory.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user