Hi!

Since CBL fails to process _removed from SG sometimes I've tried my best to 
find a way to get rid of corrupted documents. Just one corrupted document 
can kill the replicator, which means it'll completely disable that user 
from using the app(His data has to sync to generate the reports he needs). 
Purging is out of the question since it requires a compact, and only after 
a day or two of usage my users have more data than what is reasonable to 
run a compact on.

If I had access to the revs table it would be super easy, grab the json 
body in the revs table and remove the underscores. However some 
db-function(?) is missing so I can't query the revs table, which only 
leaves me with the docs table.  I've tried to just rename the docid since 
it points to the offending row in the revs table. Thinking that it would 
cut off the corrupted rev and leave it hanging in empty space, however CBL 
seems to be going through the revs table looking for underscores without 
doing a lookup in the docs table so that didn't help at all.

Do you think it would be faster to compact the database or to create a new 
database and write all the latest revs into the new database?

-- 
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/c7b4661a-309d-4cde-9351-5707d1db59d6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to