Skip to content

Force the package's indexes on worker state queries - #171

Closed
firecow wants to merge 1 commit into
masterfrom
force-worker-query-indexes
Closed

Force the package's indexes on worker state queries#171
firecow wants to merge 1 commit into
masterfrom
force-worker-query-indexes

Conversation

@firecow

@firecow firecow commented Aug 6, 2026

Copy link
Copy Markdown
Member

The MariaDB query planner sometimes picks a wrong index for the worker's state-based queries and locks far more rows than the query targets, so the reservation, WAITING/PENDING sweeps and stuck-PROCESSING scan now FORCE INDEX the package's matching indexes (mysql driver only).

@firecow firecow self-assigned this Aug 6, 2026
@firecow firecow closed this Aug 8, 2026
@firecow
firecow deleted the force-worker-query-indexes branch August 8, 2026 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant