-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Zero-cost version-vector database upgrade (#1895)
* Update CMake CMAKE_OSX_DEPLOYMENT_TARGET to 10.14 It's been updated to 10.14 in Xcode; CMake should be consistent. * Upgrade docs to version vectors lazily, on 1st write Eliminates the cost of upgrading an existing db to version vectors. Instead of converting all docs to version-vector format the first time the db is opened, it leaves them alone. A C4Document is opened using its existing versioning type, unless the new document flag kDocGetUpgraded is used. (Even that flag doesn't change the representation on disk.) A C4Document is upgraded on disk when it's saved. The replicator loads docs using kDocGetUpgraded since it uses version vectors.
- Loading branch information
Showing
24 changed files
with
612 additions
and
254 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.