You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Respond with Batch CQL statement executed instead of CQL statement executed.
Batch statments can be of three different types
BEGIN BATCH - Logged batches ensure atomicity across multiple operations
BEGIN UNLOGGED BATCH - unlogged batches are more performant for single-partition operation but are not atomic so usually avoid them but they need to be tested
BEGIN COUNTER BATCH - counter batches are specifically for counter updates
millerjp
changed the title
[feat]: Update reponse to handle Batch Statments
[feat]: Update response to handle Batch Statments
Nov 3, 2024
millerjp
changed the title
[feat]: Update response to handle Batch Statments
[feat]: Respond with Batch CQL statement executed instead of CQL statement executed when executing Batches
Nov 3, 2024
Respond with
Batch CQL statement executed
instead ofCQL statement executed.
Batch statments can be of three different types
BEGIN BATCH
- Logged batches ensure atomicity across multiple operationsBEGIN UNLOGGED BATCH
- unlogged batches are more performant for single-partition operation but are not atomic so usually avoid them but they need to be testedBEGIN COUNTER BATCH
- counter batches are specifically for counter updatesTesting Batch Statments
Create a keyspace and tables:
Logged Batch Example
Unlogged Batch Example
Counter Batch Example
LWT (Lightweight Transactions) Batch Examples
First, insert initial data:
Successful LWT batch:
Failing LWT batch (will fail because version is now 2):
The text was updated successfully, but these errors were encountered: