How does percistence work? What is written to disk and when? #1865
-
I was reading around for some time now, but I couldn't really understand how persistence works in detail.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
These graphs are written to disk with the database graph being absolutely last. The database graph contains reference to the repository graph which in turn knows which branch is associated with the latest update in the instance graph. The label is atomically updated with a revision number only after a successful write of the database graph. This can be either to a label server or to a file depending on the setup. All of this ensures that all transactions are ACID.
Note, since everything is immutable, we can share any number of readers over the same store, and get data distribution using NFS.
|
Beta Was this translation helpful? Give feedback.
a. Instance Graph
b. Repository Graph
c. Database Graph
d. Label
These graphs are written to disk with the database graph being absolutely last. The database graph contains reference to the repository graph which in turn knows which branch is associated with the latest update in the instance graph. The label is atomically updated with a revision number only after a successful write of the database graph. This can be either to a label server or to a file depending on the setup.
All of this ensures that al…