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

Adopt fine-grained row-level lock options in SELECT queries #3057

Open
achimnol opened this issue Nov 8, 2024 · 0 comments
Open

Adopt fine-grained row-level lock options in SELECT queries #3057

achimnol opened this issue Nov 8, 2024 · 0 comments
Labels
comp:manager Related to Manager component urgency:3 Must be finished within a certain time frame.
Milestone

Comments

@achimnol
Copy link
Member

achimnol commented Nov 8, 2024

Currently we have just a with_for_update flag argument for several fetch functions for the sessions table.

Let's expand them to accept more fine-grained options like skip_locked, read, etc. to reduce the potential of serialization failures.
(ref: Teams thread)

For example, skip_locked option could be useful to make the scheduler logic reentrant with less database overheads, by fetching disjoint sets of pending sessions excluding those being handled in prior overlapping transactions and belonging to different resource groups (#323).

@achimnol achimnol added comp:manager Related to Manager component urgency:3 Must be finished within a certain time frame. labels Nov 8, 2024
@achimnol achimnol added this to the 24.12 milestone Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:manager Related to Manager component urgency:3 Must be finished within a certain time frame.
Projects
None yet
Development

No branches or pull requests

1 participant