@Max Kostikov 6M is a lot :astonished_face:
Mostly convo right?
Mostly convo right?
Comment on @Hubzilla Support Forum If you are under reliatively fresh MySQL 8 then try
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;
Yes, it seems everything works fine even without `worker_id`. Perhaps, to ensure compatibility with older versions of MySQL, you could also omit `DESC`.