mysqld has a continuous cpu load of >100%. This is caused by the database polling of the ~50 daemons. The long-running operation, according to `SHOW FULL PROCESSLIST` seems to be `Creating sort index` of `SELECT group_id, ..., stats_idle_sec FROM mxq_group WHERE (group_jobs_inq > 0 OR group_jobs_running > 0) ORDER BY user_name, group_mtime` ``` buczek@macheteinfach:~$ time mysql --defaults-group-suffix=mxqreal -e 'SELECT group_id,group_jobs_inq, group_jobs_running, user_name, group_mtime FROM mxq_group WHERE (group_jobs_inq > 0 OR group_jobs_running > 0) ORDER BY user_name, group_mtime' +----------+----------------+--------------------+-----------+---------------------+ | group_id | group_jobs_inq | group_jobs_running | user_name | group_mtime | +----------+----------------+--------------------+-----------+---------------------+ | 550312 | 0 | 1 | ilik | 2023-12-29 20:04:49 | | 550311 | 0 | 3 | ilik | 2023-12-31 23:54:09 | | 547624 | 0 | 1 | spwprj | 2023-12-30 18:32:21 | +----------+----------------+--------------------+-----------+---------------------+ real 0m0.485s user 0m0.008s sys 0m0.004s ``` Without the `ORDER BY` clause, the statements takes about the same time, but `SHOW FULL PROCESSLIST` shows it typically in the state `Sending data` instead of `Creating sort index`.