Comment on @Hubzilla Support Forum If you are under reliatively fresh MySQL 8 then try
workerq_id
workerq_reservationid
ALTER TABLE workerq ADD INDEX idx_claim (workerq_reservationid, workerq_priority DESC);
ALTER TABLE workerq ADD INDEX idx_claim ( workerq_reservationid, workerq_priority DESC, workerq_id ASC );
Without `worker_id`, since omitting `worker_reservationid` did not have a positive effect.
ALTER TABLE workerq ADD INDEX idx_claim (workerq_reservationid, workerq_priority DESC);Anyway, i think i will go with as you suggested first.