Amazon Keyspaces (for Apache Cassandra) now supports prepared statements in Logged Batches

Posted on: Jul 14, 2026

Amazon Keyspaces (for Apache Cassandra) now supports prepared statements within logged batches, so you can combine the atomicity guarantees of logged batches with the performance and efficiency of prepared statements. You can group multiple prepared INSERT, UPDATE, and DELETE statements into a single atomic batch, where either all operations succeed or none of them do, while reducing query parsing overhead for repeated multi-statement writes.

Amazon Keyspaces is a scalable, highly available, and managed Apache Cassandra-compatible database service. Because Amazon Keyspaces is serverless, you pay for only the resources that you use, and you can build applications that serve thousands of requests per second with virtually unlimited throughput and storage. 

Prepared statements let you define the structure of a Cassandra Query Language (CQL) statement once and run it repeatedly with different values, which improves performance and reduces overhead for frequently executed queries. With prepared statement support in logged batches, you can build atomic multi-statement operations that are both consistent and efficient, using the same CQL statements that you already use.

Prepared statements in logged batches are available in all commercial AWS Regions and the AWS GovCloud (US) Regions where Amazon Keyspaces is offered. To learn more, see Logged batches in the Amazon Keyspaces Developer Guide.