_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.
N开发者_运维问答ow 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".
- Is this a problem?
- Why CouchDB saves this information?
- Am I supposed to do something about it?
Thanks,
GiacomoI'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.
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).
精彩评论