有没有办法管理在压缩过程中可能删除或不删除哪些文档的旧版本?
例如文档中的魔术元数据字段:_do_not_compact:true,当该字段在文档版本中时,该版本不会被合并?
我想使用 couchdb 中文档的版本控制在我的应用程序中创建一些类似时间机器的功能,为用户提供查看以前版本中数据的功能。
Older revisions are not guaranteed to be available and should not be used as a way to provide document versioning. They are present primarily to aid in efficient replication for multiple CouchDB nodes (in a highly used system, some nodes wouldn't have all versions of documents for example).
If you want to version documents, you should introduce your own schema/system.