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
DISTINCT (market_devices.deviceId),
market_devices.id,
market_devices.registerId,
deviceOs
FROM
market_devices_link
INNER JOIN
market_devices
ON market_devices_link.deviceId = market_devices.id
WHERE
market_devices_link.shopid = '46'
AND (
market_devices.deviceId IS NOT NULL
AND market_devices.registerId IS NOT NULL
)
AND market_devices.registerId NOT LIKE 'NO_NOTIFICATION%'