Skip to content

Snapshotting / Rolling back Changes #1311

Answered by groue
andykent asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @andykent,

The word "snapshot" is full of different meanings, so let's first clarify what's a snapshot for SQLite (and GRBD). It is the same "snapshot" as in "snapshot isolation" (Wikipedia definition, SQLite definition).

It is the behavior exhibited by one particular runtime database connection, that starts when the connection enters snapshot isolation, and ends when the connection leaves snapshot isolation. During snapshot isolation, the connection sees an unchanging "snapshot" of the database file as it existed at the moment isolation was started. If other database connections perform concurrent writes, those writes are not seen by the isolated connection.

In SQLite, snapshot iso…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@andykent
Comment options

@groue
Comment options

groue Jan 4, 2023
Maintainer

Answer selected by andykent
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