On Wed, Oct 5, 2011 at 7:42 AM, Jeremiah Jordan < jeremiah.jor...@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