Skip to content
Discussion options

You must be logged in to vote

I believe it is safe to use at the default READ COMMITTED isolation level. Any updates to the ledger use locking to ensure they run one at a time for affected accounts.

The read story is a little different, though. Subsequent reads from the ledger tables may see different results, even within the same database transaction, if other ledger operations have committed (i.e. you don't get a snapshot of the whole database at the beginning of a database transaction). For that, you would need repeatable read:

This level is different from Read Committed in that a query in a repeatable read transaction sees a snapshot as of the start of the first non-transaction-control statement in the transactio…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tamlyn
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