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

fix: serialization errors #414

Merged
merged 1 commit into from
Mar 13, 2024
Merged

fix: serialization errors #414

merged 1 commit into from
Mar 13, 2024

Conversation

chris13524
Copy link
Member

Description

Fixes some errors:

  • sqlx error: error returned from database: could not serialize access due to concurrent update
  • sqlx error: error returned from database: could not serialize access due to read/write dependencies among transactions

How Has This Been Tested?

Not tested

Due Diligence

  • Breaking change
  • Requires a documentation update
  • Requires a e2e/integration test update

@chris13524 chris13524 self-assigned this Mar 13, 2024
.execute(&mut *txn)
.await?;
// Allow phantom reads; going above the watcher limit is not a big deal and handling
// serialization errors is not worth the effort

Choose a reason for hiding this comment

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

Can this code be removed instead of commented?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think it's useful context considering this was the approach in the linked StackOverflow post

Copy link

@nopestack nopestack left a comment

Choose a reason for hiding this comment

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

all good, but please consider the comment I left

@chris13524 chris13524 merged commit 40bdb01 into main Mar 13, 2024
13 checks passed
@chris13524 chris13524 deleted the fix/serialization-errors branch March 13, 2024 17:46
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.

2 participants