开发者

_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".

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

Thanks,

Giacomo


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.


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).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜