0.75 ms (21.21%)
|
1 |
SELECT DISTINCT p0_.id AS id_0, (SELECT COUNT(p1_.id) AS sclr_2 FROM product p1_ INNER JOIN product_category p3_ ON p1_.id = p3_.product_id INNER JOIN shop_categories s2_ ON s2_.id = p3_.category_id WHERE p1_.id = p0_.id) AS sclr_1, p0_.id AS id_3, p0_.id AS id_4 FROM product p0_ LEFT JOIN product_category p5_ ON p0_.id = p5_.product_id LEFT JOIN shop_categories s4_ ON s4_.id = p5_.category_id ORDER BY sclr_1 DESC, p0_.id DESC, p0_.id DESC LIMIT 20 OFFSET 20
SELECT DISTINCT p0_.id AS id_0, (SELECT COUNT(p1_.id) AS sclr_2 FROM product p1_ INNER JOIN product_category p3_ ON p1_.id = p3_.product_id INNER JOIN shop_categories s2_ ON s2_.id = p3_.category_id WHERE p1_.id = p0_.id) AS sclr_1, p0_.id AS id_3, p0_.id AS id_4 FROM product p0_ LEFT JOIN product_category p5_ ON p0_.id = p5_.product_id LEFT JOIN shop_categories s4_ ON s4_.id = p5_.category_id ORDER BY sclr_1 DESC, p0_.id DESC, p0_.id DESC LIMIT 20 OFFSET 20;
|
0.62 ms (17.60%)
|
1 |
SELECT p0_.id AS id_0, p0_.title AS title_1, p0_.price_with_share AS price_with_share_2, p0_.price AS price_3, p0_.image AS image_4, p0_.description AS description_5, (SELECT COUNT(p1_.id) AS sclr_7 FROM product p1_ INNER JOIN product_category p3_ ON p1_.id = p3_.product_id INNER JOIN shop_categories s2_ ON s2_.id = p3_.category_id WHERE p1_.id = p0_.id) AS sclr_6 FROM product p0_ LEFT JOIN product_category p5_ ON p0_.id = p5_.product_id LEFT JOIN shop_categories s4_ ON s4_.id = p5_.category_id WHERE p0_.id IN (?, ?, ?, ?, ?, ?, ?, ?) ORDER BY sclr_6 DESC, p0_.id DESC, p0_.id DESC
Parameters: [
13
12
11
10
6
5
4
3
]
SELECT p0_.id AS id_0, p0_.title AS title_1, p0_.price_with_share AS price_with_share_2, p0_.price AS price_3, p0_.image AS image_4, p0_.description AS description_5, (SELECT COUNT(p1_.id) AS sclr_7 FROM product p1_ INNER JOIN product_category p3_ ON p1_.id = p3_.product_id INNER JOIN shop_categories s2_ ON s2_.id = p3_.category_id WHERE p1_.id = p0_.id) AS sclr_6 FROM product p0_ LEFT JOIN product_category p5_ ON p0_.id = p5_.product_id LEFT JOIN shop_categories s4_ ON s4_.id = p5_.category_id WHERE p0_.id IN (13, 12, 11, 10, 6, 5, 4, 3) ORDER BY sclr_6 DESC, p0_.id DESC, p0_.id DESC;
|
0.37 ms (10.42%)
|
1 |
SELECT t0.id AS id_1, t0.full_name AS full_name_2, t0.slug AS slug_3, t0.photo AS photo_4, t0.list_photo AS list_photo_5, t0.list_description AS list_description_6, t0.short_description AS short_description_7, t0.left_description AS left_description_8, t0.right_description AS right_description_9, t0.years_experience AS years_experience_10 FROM doctor t0 ORDER BY t0.full_name ASC
SELECT t0.id AS id_1, t0.full_name AS full_name_2, t0.slug AS slug_3, t0.photo AS photo_4, t0.list_photo AS list_photo_5, t0.list_description AS list_description_6, t0.short_description AS short_description_7, t0.left_description AS left_description_8, t0.right_description AS right_description_9, t0.years_experience AS years_experience_10 FROM doctor t0 ORDER BY t0.full_name ASC;
|