Skip to content

Add a configuration to skip locked rows in the select statement for the job executor #264

Closed

Description

@javahippie

Is your feature request related to a problem? Please describe.
In our forum we experimented with adding FOR UPDATE SKIP LOCK to the select statement for the job executor. This does not work for all supported databases, but sped up execution for many nodes running in parallel.

Describe the solution you'd like
We might consider adding an opt-in configuration flag to enable this behavior, so users running on a database which supports this could benefit from higher concurrency.

Describe alternatives you've considered
An alternative provided in the thread was to provide read offsets for different nodes so they don't all try to read on the most recent jobs. This works too, but might be dangerous if a node crashes and the range that was reserved for it is not read anymore.

Activity

  1. added
    idea
    enhancement
    scope:core-api
    on Nov 25, 2024
  2. hauptmedia commented on Nov 25, 2024

    @hauptmedia
    Collaborator

    I think it would be good to have some kind of feature flag for this and mark it as "experimental" for a while until we're 100% sure that this has no unwanted side effects. After a while we could enable it as default on supported platforms.

  3. self-assigned this
    on Nov 25, 2024
  4. added this to the 1.x-backlog milestone on Apr 7, 2025
  5. modified the milestones: 1.x-backlog, 1.1.0 on Nov 6, 2025
  6. modified the milestones: 1.1.0, 2.0.0 on Feb 24, 2026
  7. modified the milestones: 2.1.0, 2.2.0 on Apr 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementideascope:core-api

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions