cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roshan Dawrani <roshandawr...@gmail.com>
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 <aaron@thelastpickle.com>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/__init__.py 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.

Mime
View raw message