cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roshan Dawrani <roshandawr...@gmail.com>
Subject Re: How to speed up "Waiting for schema agreement" for a single node Cassandra cluster?
Date Wed, 05 Oct 2011 02:27:39 GMT
On Wed, Oct 5, 2011 at 7:42 AM, Jeremiah Jordan <
jeremiah.jordan@morningstar.com> wrote:

> But truncate is still slow, especially if it can't use JNA (windows) as it
> snapshots.  Depending on how much data you are inserting during your unit
> tests, just paging through all the keys and then deleting them is the
> fastest way


Exactly the thing we also found out (and hence ditched "truncate" for DB
cleanup between tests):
http://roshandawrani.wordpress.com/2011/09/30/grails-cassandra-giving-each-test-a-clean-db-to-work-with/
.
Worked much better for us this way.

-- 
Roshan
Blog: http://roshandawrani.wordpress.com/
Twitter: @roshandawrani <http://twitter.com/roshandawrani>
Skype: roshandawrani

Mime
View raw message