Skip to content

Cached query results #87

Answered by binzabinza
binzabinza asked this question in Q&A
Jan 31, 2022 · 3 comments · 3 replies
Discussion options

You must be logged in to vote

Default transaction isolation level is REPEATABLE READ which will return the same results for all queries in a single transaction even when a different transaction has changed the underlying data. Many people (like myself) might expect the behavior to be that of transaction isolation level READ COMMITTED which will always reflect committed transactions to the table. By setting autocommit=True (or by manually committing after every select) you will guarantee that each select is the end of a transaction and that each new select is a new transaction. This will give the expected READ COMMITTED behavior.

See Issue #88

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@binzabinza
Comment options

Comment options

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

@Brooke-white
Comment options

Comment options

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