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

Do not enable read_uncommitted by default #12081

Closed
masih opened this issue Jun 12, 2024 · 5 comments · Fixed by #12098
Closed

Do not enable read_uncommitted by default #12081

masih opened this issue Jun 12, 2024 · 5 comments · Fixed by #12098

Comments

@masih
Copy link
Member

masih commented Jun 12, 2024

The PRAGMA for 3 databases across lotus repo enable uncommitted reads:

"PRAGMA read_uncommitted = ON",

"PRAGMA read_uncommitted = ON",

"PRAGMA read_uncommitted = ON",

This can have some performance gain but will cause all sorts of problems, specially in db interactions that require ACID properties where data consistency matters. Based on a quick look we do care about data consistency across all three places listed above. Therefore, I recommend against performing dirty reads.

@snissn
Copy link
Contributor

snissn commented Jun 14, 2024

@masih
Copy link
Member Author

masih commented Jun 14, 2024

That PR only updates events db pragma. right?

@rvagg
Copy link
Member

rvagg commented Jun 15, 2024

yeah, only events sorry, we can follow up with the others as a separate PR

@BigLep
Copy link
Member

BigLep commented Jun 18, 2024

2024-06-18 triage note: @rvagg we wanted to confirm that #12098 will address this issue.

@rvagg
Copy link
Member

rvagg commented Jun 19, 2024

yes, it will, they'll all have the same pragma and read_uncommitted is gone

rvagg added a commit that referenced this issue Jul 2, 2024
rvagg added a commit that referenced this issue Jul 15, 2024
@rvagg rvagg closed this as completed in 424ae01 Jul 15, 2024
ribasushi pushed a commit to ribasushi/ltsh that referenced this issue Jul 16, 2024
ribasushi pushed a commit to ribasushi/ltsh that referenced this issue Jul 16, 2024
ribasushi pushed a commit to ribasushi/ci-abusing-lotus-fork that referenced this issue Jul 17, 2024
ribasushi pushed a commit to ribasushi/ltsh that referenced this issue Jul 24, 2024
ribasushi pushed a commit to ribasushi/ci-abusing-lotus-fork that referenced this issue Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ☑️Done (Archive)
Development

Successfully merging a pull request may close this issue.

5 participants