Document Compare - Type 2


How would Couchbase support a RDBMS Type 2 operation? For instance, documents are created at the source and are written to Couchbase w/ unique Doc IDs. Let’s say the source republishes those documents again but a property/value is changed within one of the docs. For that changed doc, I want to keep the original version (so I have history) that already exists in CB but this new version/schema needs to be the latest version (w/ some type of custom logic to implement a ::v2 identifier within the document). How do those types of document compares work in Couchbase or are they not supported/recommended? Thanks for any help!