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:
ALTER TABLE `follow_shop` ADD INDEX `follow_shop_idx_shop_id` (`shop_id`);
ALTER TABLE `shop` ADD INDEX `shop_idx_id_bellscore` (`id`,`bellscore`);
SELECT
*
FROM
shop
WHERE
shop.id IN (
SELECT
*
FROM
(SELECT
fs.shop_id
FROM
follow_shop fs
GROUP BY
fs.shop_id
ORDER BY
count(fs.shop_id) DESC LIMIT 3) AS pp)
ORDER BY
shop.bellscore DESC