jsevellec / cassandra-unit

Utility tool to load Data into Cassandra to help you writing good isolated JUnit Test into your application
GNU Lesser General Public License v3.0
425 stars 0 forks source link

Significantly speed up all schema changes #308

Closed TvdW closed 4 years ago

TvdW commented 4 years ago

Cassandra drivers tend to wait for the schema to settle across all nodes whenever we execute DDL statements like CREATE/ALTER/DROP. On a single node cluster we know that the schema settled by the time the query finished executing. We can thus disable some of the waiting that happens after every DDL statement, by telling the Datastax driver to not "debounce" the events.

This reduces the total time for tests to run by about two thirds.

jsevellec commented 4 years ago

Hi Tom, really thanks for the contribution. The gain is really significant.

Jérémy