Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

_deleted_conflicts in CouchDB?

Tags:

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

like image 557
Giacomo Avatar asked Jun 08 '11 08:06

Giacomo


1 Answers

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.

like image 185
Dominic Barnes Avatar answered Oct 16 '22 01:10

Dominic Barnes