[−][src]Enum foundationdb::options::DatabaseOption
Variants (Non-exhaustive)
LocationCacheSize(i32)
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.
MaxWatches(i32)
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.
Snapshot read operations will see the results of writes done in the same transaction. This is the default behavior.
Snapshot read operations will not see the results of writes done in the same transaction. This was the default behavior prior to API version 300.
TransactionLoggingMaxFieldLength(i32)
Maximum length of escaped key and value fields.
Sets the maximum escaped length of key and value fields to be logged to the trace file via the LOG_TRANSACTION option. This sets the transaction_logging_max_field_length
option of each transaction created by this database. See the transaction option description for more information.
TransactionTimeout(i32)
value in milliseconds of timeout
Set a timeout in milliseconds which, when elapsed, will cause each transaction automatically to be cancelled. This sets the timeout
option of each transaction created by this database. See the transaction option description for more information. Using this option requires that the API version is 610 or higher.
TransactionRetryLimit(i32)
number of times to retry
Set a maximum number of retries after which additional calls to onError
will throw the most recently seen error code. This sets the retry_limit
option of each transaction created by this database. See the transaction option description for more information.
TransactionMaxRetryDelay(i32)
value in milliseconds of maximum delay
Set the maximum amount of backoff delay incurred in the call to onError
if the error is retryable. This sets the max_retry_delay
option of each transaction created by this database. See the transaction option description for more information.
TransactionSizeLimit(i32)
value in bytes
Set the maximum transaction size in bytes. This sets the size_limit
option on each transaction created by this database. See the transaction option description for more information.
The read version will be committed, and usually will be the latest committed, but might not be the latest committed in the event of a simultaneous fault and misbehaving clock.
Addresses returned by get_addresses_for_key include the port when enabled. This will be enabled by default in api version 630, and this option will be deprecated.
Implementations
impl DatabaseOption
[src]
pub fn code(&self) -> FDBDatabaseOption
[src]
pub unsafe fn apply(&self, target: *mut FDBDatabase) -> FdbResult<()>
[src]
Trait Implementations
impl Clone for DatabaseOption
[src]
fn clone(&self) -> DatabaseOption
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for DatabaseOption
[src]
Auto Trait Implementations
impl RefUnwindSafe for DatabaseOption
impl Send for DatabaseOption
impl Sync for DatabaseOption
impl Unpin for DatabaseOption
impl UnwindSafe for DatabaseOption
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,