Skip to content

How does percistence work? What is written to disk and when? #1865

Answered by GavinMendelGleason
hpvd asked this question in Q&A
Discussion options

You must be logged in to vote
  1. Database writes are tiered - there are three immutable graphs (actually the schema is also a graph but typically will be substituted for the instance graph during updates) and one label
    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…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@hpvd
Comment options

@hpvd
Comment options

@GavinMendelGleason
Comment options

@hpvd
Comment options

@hpvd
Comment options

Answer selected by hpvd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy