0.85 ms (14.30%)
|
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 ASC, p0_.id ASC, p0_.id DESC LIMIT 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 ASC, p0_.id ASC, p0_.id DESC LIMIT 20;
|
0.56 ms (9.40%)
|
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 ASC, p0_.id ASC, p0_.id DESC
Parameters: [
3
4
5
6
10
11
12
13
14
15
18
19
20
21
22
23
24
29
1
2
]
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 (3, 4, 5, 6, 10, 11, 12, 13, 14, 15, 18, 19, 20, 21, 22, 23, 24, 29, 1, 2) ORDER BY sclr_6 ASC, p0_.id ASC, p0_.id DESC;
|
0.32 ms (5.43%)
|
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;
|