Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add env vars for setting transaction isolation level for both dbs #264

Merged
merged 4 commits into from
May 2, 2024

Conversation

mnazzaro
Copy link
Collaborator

@mnazzaro mnazzaro commented May 1, 2024

No description provided.

Copy link
Contributor

@cbf66 cbf66 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be a per-connection parameter please? Maybe with these env vars providing the default value?

Copy link
Contributor

@jonathanhyoung jonathanhyoung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is what I suggested, but it isn't what we want, @mnazzaro . We want to be able to specify the transaction isolation level per request (or per transaction).

@kyokukou
Copy link
Contributor

kyokukou commented May 2, 2024

REPEATEABLE READ isnt valid for the sqlite test database

ERROR tests/listings/db/test_db_listing_new.py::test_basic_listing - sqlalchemy.exc.ArgumentError: Invalid value 'REPEATABLE READ' for isolation_level. Valid isolation levels for 'sqlite' are READ UNCOMMITTED, SERIALIZABLE, AUTOCO...

@mnazzaro mnazzaro merged commit 09fc4b6 into develop May 2, 2024
1 check passed
@mnazzaro mnazzaro deleted the ARXIVCE-1596-db-iso-levels branch May 2, 2024 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants