@Mario Vavti
It was this one on the queue with 6M+ tasks
The MySQL version is 8.0.46
It was this one on the queue with 6M+ tasks
SELECT workerq_id, workerq_cmd FROM workerq WHERE workerq_reservationid IS NULL ORDER BY workerq_priority DESC, workerq_id ASC LIMIT 1 FOR UPDATE SKIP LOCKED;The MySQL version is 8.0.46
Here is how EXPLAIN looked like before the index have been added