Database geometry for size management.
More...
#include <mdbx.h++>
|
struct | size |
| Tagged type for output to std::ostream. More...
|
|
Database geometry for size management.
- See also
- env_managed::create_parameters
-
env_managed::env_managed(const ::std::string &pathname, const
create_parameters &, const operate_parameters &, bool accede)
◆ anonymous enum
anonymous enum : intptr_t |
Enumerator |
---|
default_value | Means "keep current or use default".
|
minimal_value | Means "minimal acceptable".
|
maximal_value | Means "maximal acceptable".
|
kB | \(10^{3}\) bytes (0x03E8)
|
MB | \(10^{6}\) bytes (0x000F_4240)
|
GB | \(10^{9}\) bytes (0x3B9A_CA00)
|
KiB | \(2^{10}\) bytes (0x0400)
|
MiB | \(2^{20}\) bytes (0x0010_0000)
|
GiB | \(2^{30}\) bytes (0x4000_0000)
|
◆ geometry() [1/3]
constexpr mdbx::env::geometry::geometry |
( |
| ) |
|
|
inlineconstexprnoexcept |
◆ geometry() [2/3]
constexpr mdbx::env::geometry::geometry |
( |
const geometry & |
| ) |
|
|
constexprdefaultnoexcept |
◆ geometry() [3/3]
◆ growth_step
The growth step in bytes, must be greater than zero to allow the database to grow.
◆ pagesize
◆ shrink_threshold
The shrink threshold in bytes, must be greater than zero to allow the database to shrink.
◆ size_lower
The lower bound of database size in bytes.
◆ size_now
The size in bytes to setup the database size for now.
It is recommended always pass default_value in this argument except some special cases.
◆ size_upper
The upper bound of database size in bytes.
It is recommended to avoid change upper bound while database is used by other processes or threaded (i.e. just pass default_value in this argument except absolutely necessary). Otherwise you must be ready for MDBX_UNABLE_EXTEND_MAPSIZE error(s), unexpected pauses during remapping and/or system errors like "address busy", and so on. In other words, there is no way to handle a growth of the upper bound robustly because there may be a lack of appropriate system resources (which are extremely volatile in a multi-process multi-threaded environment).
The documentation for this struct was generated from the following file: