CouchDB versioning strategy

后端 未结 4 516
猫巷女王i
猫巷女王i 2020-12-23 21:44

Would the following be a viable strategy for implementing versioning(using \"example\" as a sample document type):

Have one original document where the type field is

4条回答
  •  温柔的废话
    2020-12-23 22:25

    What is the business status of these documents, especially legal? I have worked in situations where your proposal would not be appropriate from a business persepctive, because of a need to prove that the document presented as v.3 really is version 3 of the document. Dynamically applying deltas would not cut the compliance mustard.

    If, as you say, changes to documents ae infrequent, then you are not going to be saving much disk space by storing deltas instead of whole documents. Storing whole documents also allows for the reliable prediction of the retrieval time for any document. It also reduces the complexity of the retrieval process.

提交回复
热议问题