In case you have your own slow SQL query, you can optimize it automatically here.
For the query above, the following recommendations will be helpful as part of the SQL tuning process.
You'll find 3 sections below:
SELECT
secud_id,
secud_fname,
secud_sname,
users.user_id,
users.user_owner,
users.user_level,
shifts.shift_start,
GROUP_CONCAT(DISTINCT uq_name SEPARATOR ' ') quals
FROM
user_data
INNER JOIN
users
ON user_data.secud_ulink = users.user_id
LEFT JOIN
user_quals
ON users.user_id = user_quals.uq_user
LEFT JOIN
shifts
ON shifts.shift_user = users.user_id
WHERE
users.user_owner = 2
AND users.user_level = 'Personnel'
AND (
date(shifts.shift_start) <> '2016-03-16'
OR date(shifts.shift_start) IS NULL
)
AND users.user_active = 1
GROUP BY
users.user_id
ORDER BY
secud_sname ASC