incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Elf <elf2...@gmail.com>
Subject Re: testing strategy -- efficient db initialization
Date Wed, 15 Apr 2009 06:52:44 GMT
What I see is database deletion/creation is very fast.

2009/4/15 Chris Bernard <chris.bernard@spryplanner.com>:
> 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
>
>



-- 
----------------
Best regards
Elf
mailto:elf2001@gmail.com

Mime
View raw message