Struct aerospike::policy::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: BasePolicy
Base policy instance
concurrency: Concurrency
Concurrency mode for batch requests: Sequential or Parallel (with optional max. no of parallel threads).
allow_inline: bool
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: bool
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