While entries can be created, read, updated, and deleted separately, it may be useful to do perform a series of operations on a large collection of entries at once.
Batch operations are not necessarily performed in order. A failure of one operation in the batch will not roll back the other operations, which depending on the client and set of operations, may cause unexpected side effects.
To quickly run large sets of commands on your cluster:
- Write a client using the Quasardb API and the following functions:
- C: Create an array of qdb_init_operations, assign cluster operations, then call qdb_run_batch.
- C++: Create an operations array with qdb_init_operations, assign operations, then call handle::run_batch.
- Python: Create an array of qdb.BatchRequest operations, then call Client.run_batch.
- C#: Create an array of qdb.BatchRequest operations, then call Handle::RunBatch.
- Java: Create a List of qdb.Operations, then call qdb.RunBatch.
- PHP: Create a new QdbBatch object, add operations to it, then call QdbCluster::runBatch.
For more information, see Batch Operations.