> On Aug 7, 2014, at 4:10 AM, rupa selvaraj <[email protected]> wrote:
> 
> I have checked in several forums and blogs , but I could not find any API 
> method to purge bulk of documents at a single shot ..  What I have done is , 
> created a view for the docs to be purgd and purgin it one by one .. Its takes 
> approx 2 mts for 7000 docs .. 

There isn't an API for that, so calling purgeDocument on the individual 
documents is the right way to go. Make sure you do it in a transaction to avoid 
the overhead of repeated commits to the database file. 

If there were an API to purge multiple documents, it would probably have the 
same performance as doing it one at a time. (Which I realize is not very good; 
it will get a lot faster in the future, but not for a while yet.)

—Jens

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/CCE1C275-7443-447C-82FB-1E23C7580B3C%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to