cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roshan Dawrani <>
Subject Re: Embedded Cassandra server startup question
Date Fri, 21 Jan 2011 02:57:49 GMT
On Fri, Jan 21, 2011 at 8:07 AM, Aaron Morton <>wrote:

> There is a truncate() function that will clear a CF. It may leave a
> snapshot around, cannot remember exactly.
> Or you could drop and recreate the keyspace between tests using
> system_add_keyspace() and system_drop_keyspace(). The system tests in the
> test/system/ sort of do this.

Thanks Aaron. I will checkout both the options. If the existing system tests
there are adding / dropping keyspace between tests, maybe it is not a very
expensive operation after all.

At the minimum, I can replace my clean-up with truncate() calls.

Thanks a lot.

View raw message