@Hubzilla Support Forum
If you are under reliatively fresh MySQL 8 then try to add this index
In my case, on the `dev` branch of Hubzilla, this significantly improved the performance of the queueworker.
FYI @Mario Vavti
If you are under reliatively fresh MySQL 8 then try to add this index
ALTER TABLE workerq ADD INDEX idx_claim (workerq_reservationid, workerq_priority DESC, workerq_id);In my case, on the `dev` branch of Hubzilla, this significantly improved the performance of the queueworker.
FYI @Mario Vavti
Here is how EXPLAIN looked like before the index have been added
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
Mostly convo right?