Skip to content

Comments

Add index hint for releasing blocked executions#718

Merged
rosa merged 1 commit intomainfrom
index-hint-release
Feb 22, 2026
Merged

Add index hint for releasing blocked executions#718
rosa merged 1 commit intomainfrom
index-hint-release

Conversation

@rosa
Copy link
Member

@rosa rosa commented Feb 22, 2026

Use Rails' optimizer_hints to hint MySQL to use the index_solid_queue_blocked_executions_for_release composite index when releasing blocked executions, avoiding query planner misses and unnecessary row locks.

The hint is rendered as a /*+ ... */ SQL comment, which MySQL's optimizer reads and SQLite and PostgreSQL ignore as a regular comment.

Fixes #694

Use Rails' `optimizer_hints` to hint MySQL to use the
`index_solid_queue_blocked_executions_for_release` composite index
when releasing blocked executions, avoiding query planner misses
and unnecessary row locks.

The hint is rendered as a `/*+ ... */` SQL comment, which MySQL's
optimizer reads and SQLite and PostgreSQL ignore as a regular
comment.

Fixes #694
@rosa rosa merged commit 2c4bbd3 into main Feb 22, 2026
253 of 256 checks passed
@rosa rosa deleted the index-hint-release branch February 22, 2026 11:32
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.

limits_concurrency uses fewer workers than expected for the same concurrency_key

1 participant