Giacomo
Giacomo

Reputation: 11247

_deleted_conflicts in CouchDB?

Using CouchDB 1.0.1.

I have DELETEd some documents, then I PUT some other documents with the same _id as the deleted ones.

Now these new docs have the _deleted_conflicts field:

"_deleted_conflicts":["2-667c9e8e75f8ee51a4ab79ed534622dd"]

It looks like the _rev field of the deleted doc (can't be sure though).

The CouchDB wiki just says "Information about conflicts".

  1. Is this a problem?
  2. Why CouchDB saves this information?
  3. Am I supposed to do something about it?

Thanks,
Giacomo

Upvotes: 10

Views: 2111

Answers (2)

pyang
pyang

Reputation: 147

Deleted Conflicts should be regularly purged otherwise a very long history will slow couchdb down significantly (at least for earlier versions of couchdb I used).

Upvotes: 0

Dominic Barnes
Dominic Barnes

Reputation: 28429

I'm not sure if this is actually going to be a problem, but it's likely this could come up during replication.

If you want to prevent it from coming up, you should look into the /db/_purge command. This command will remove references to deleted documents, and you can specify a single document ID to affect.

Upvotes: 6

Related Questions