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

Avoid performing a dummy query when performing read queries #2797

Closed
wants to merge 1 commit into from

Conversation

matthieusieben
Copy link
Contributor

Does this make sense ?

Copy link
Collaborator

@devinivy devinivy left a comment

Choose a reason for hiding this comment

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

I'd want to do a quick survey of how/where read() is used, but in general I think this seems sound! If the process is responsible for WAL recovery then the first read query within fn() would fail with a locking error then fn() would get retried.

Since it's a bit sensitive would recommend @dholms take a peek too.

@matthieusieben
Copy link
Contributor Author

I'll close for now. Let's re-consider if we ever need more perf out of the PDSs

@matthieusieben matthieusieben deleted the msieben/avoid-dummy-db-open-read branch October 21, 2024 12:25
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