Enum foundationdb::options::DatabaseOption
source · pub enum DatabaseOption {
LocationCacheSize(u32),
MaxWatch(u32),
MachineId(String),
DatacenterId(String),
}
Variants§
LocationCacheSize(u32)
Max location cache entries
Set the size of the client location cache. Raising this value can boost performance in very large databases where clients access data in a near-random pattern. Defaults to 100000.
MaxWatch(u32)
Max outstanding watches
Set the maximum number of watches allowed to be outstanding on a database connection. Increasing this number could result in increased resource usage. Reducing this number will not cancel any outstanding watches. Defaults to 10000 and cannot be larger than 1000000.
MachineId(String)
Hexadecimal ID
Specify the machine ID that was passed to fdbserver processes running on the same machine as this client, for better location-aware load balancing.
DatacenterId(String)
Hexadecimal ID
Specify the datacenter ID that was passed to fdbserver processes running in the same datacenter as this client, for better location-aware load balancing.
Implementations§
source§impl DatabaseOption
impl DatabaseOption
pub fn code(&self) -> FDBDatabaseOption
pub unsafe fn apply(&self, target: *mut FDBDatabase) -> Result<(), Error>
Trait Implementations§
source§impl Clone for DatabaseOption
impl Clone for DatabaseOption
source§fn clone(&self) -> DatabaseOption
fn clone(&self) -> DatabaseOption
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more