On 28 Oct 2009, at 13:29, Thomas Delaet wrote:

If I understand this correctly, the fact that you can not rely on
deleted documents being available cripples the synchronization
mechanism.

Situation:

Node A
=> Document X (rev 1)

Node B
=> Document X (rev 1)

Events:

1. Node A deletes Document X
2. Node A compacts its database
3. Node B synchronizes its database with Node A
    => Node B will not know that document X is deleted.

This is wrong. Deletes replicate. Node B will know after replication that node A had the document X deleted.

Cheers
Jan
--


   Alternatively: if Document X is at rev 2 on Node B, no conflict
will be generated ...

I guess that the ' GET /dbname/id_of_deleted_document?deleted=true'
that you propose is needed, but doesn't the replication algorithm need
to be adapted too?

Kind Regards

--Thomas



On Tue, Oct 27, 2009 at 3:49 PM, Adam Kocoloski <[email protected]> wrote:
I just discovered yesterday that there is a backdoor to let you view the
deleted document, but only if you know it's revision:

GET /dbname/id_of_deleted_doument?rev=1-90394320932

Perhaps this is a backdoor we just forgot to close. On the other hand, I think it would be nice to allow non-guaranteed "reverts" of accidentally deleted documents. 99% of the time, an immediate revert of a delete would work just fine. I think I'd also be in favor of making it possible to view the deleted document content without knowing its revision beforehand; e.g.
something like

GET /dbname/id_of_deleted_document?deleted=true

Best, Adam

On Oct 27, 2009, at 10:36 AM, Alex P wrote:

deleted docs are present in the data file until a compaction occurs. that said, i don't know if there's a way to access one, but even if there were, it would be a non-deterministic operation. it's success would depend on
whether a compact was performed.

On Tue, Oct 27, 2009 at 5:24 AM, <[email protected]> wrote:

Hello there,

I'm writting a piece of code in which i would like to be able to retrieve documents that have already been deleted by the user. I was wondering if that is possible or in the other hand the document is completely deleted.

Thanks for any help,

Manuel






Reply via email to