Incorrect use of BATCH statements

Cassandra provides the capability to group writes together to be handled in a single transaction, similar to other databases. However, unlike other databases, BATCH statements in Cassandra really just ensure atomicity. The Cassandra BATCH mechanism was designed to write similar data to keep four or five query tables consistent. It was not designed to apply 60,000 writes to the same table. Relational databases may work that way, but Cassandra does not. Large batches can also cause nodes to crash, so use with care!

Get Seven NoSQL Databases in a Week now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.