couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Bernard <chris.bern...@spryplanner.com>
Subject testing strategy -- efficient db initialization
Date Wed, 15 Apr 2009 01:25:08 GMT
Hi,

What's the most efficient way to re-initialize a database between unit  
tests?
I'd like to have a generic solution, like simply recreating the  
database or
deleting all the documents in the database.  But it seems both these  
strategies
are significantly slower than specifically deleting the documents used  
in the
test.  Any suggestions are much appreciated!


--
Chris Bernard
www.spryplanner.com


Mime
View raw message