Struct aerospike::BatchPolicy [] [src]

pub struct BatchPolicy {
    pub base_policy: BasePolicy,
    pub concurrency: Concurrency,
    pub allow_inline: bool,
    pub send_set_name: bool,
}

BatchPolicy encapsulates parameters for all batch operations.

Fields

Base policy instance

Concurrency mode for batch requests: Sequential or Parallel (with optional max. no of parallel threads).

Allow batch to be processed immediately in the server's receiving thread when the server deems it to be appropriate. If false, the batch will always be processed in separate transaction threads.

For batch exists or batch reads of smaller sized records (<= 1K per record), inline processing will be significantly faster on "in memory" namespaces. The server disables inline processing on disk based namespaces regardless of this policy field.

Inline processing can introduce the possibility of unfairness because the server can process the entire batch before moving onto the next command.

Default: true

Send set name field to server for every key in the batch. This is only necessary when authentication is enabled and security roles are defined on a per-set basis.

Default: false

Methods

impl BatchPolicy
[src]

[src]

Create a new batch policy instance.

Trait Implementations

impl Default for BatchPolicy
[src]

[src]

Returns the "default value" for a type. Read more