On May 20, 2014, at 5:38 PM, Brian Hardy <brian.ha...@gmail.com> wrote:

> After I marked items as deleted my database did not get any smaller. I was 
> under the impression that my queries still had to evaluate the "deleted" data 
> and sill pull it down to the client. I was trying to alleviate some of the 
> work being done evaluating and downloaded so much data. I tried to compact 
> the database. I thought that would remove deleted items. I'm not sure that it 
> did.

No, it doesn't. Deletion is part of the state of a document and needs to be 
synced, so the database won't normally forget about a deleted document.

On Couchbase Lite (and CouchDB) there is a "purge" command that completely 
wipes out a document, removing all traces of it from the database. This isn't 
yet implemented in the Sync Gateway, though. (I hate to say this, but you can 
emulate a purge by using the Couchbase Server's admin API to go into the 
gateway's bucket and delete the documents. Don't do this while the gateway is 
running, though.)

--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 mobile-couchbase+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/82CFFA46-C4C5-4672-B788-02C775B750E3%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to