Commit 2c4bbd3
committed
Add index hint for releasing blocked executions
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 #6941 parent 0b13202 commit 2c4bbd3
2 files changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
23 | 30 | | |
24 | 31 | | |
25 | 32 | | |
| |||
0 commit comments