1.65 ms (35.24%)
|
2 |
SELECT c0_.id AS id_0, c0_.session_id AS session_id_1, c0_.created_at AS created_at_2, c0_.updated_at AS updated_at_3, c0_.user_id AS user_id_4 FROM cart c0_ WHERE c0_.session_id = ?
Parameters: [
"d40ad61de0574c89cf99e78432abca9d10bd7935b097e93064585ae3d16cd69b"
]
SELECT c0_.id AS id_0, c0_.session_id AS session_id_1, c0_.created_at AS created_at_2, c0_.updated_at AS updated_at_3, c0_.user_id AS user_id_4 FROM cart c0_ WHERE c0_.session_id = 'd40ad61de0574c89cf99e78432abca9d10bd7935b097e93064585ae3d16cd69b';
|
0.84 ms (17.86%)
|
1 |
SELECT c0_.id AS id_0, COUNT(DISTINCT p1_.id) AS sclr_1 FROM product_vendor p1_ INNER JOIN product p2_ ON p1_.product_id = p2_.id INNER JOIN category c0_ ON p2_.category_id = c0_.id WHERE p1_.is_active = 1 AND p2_.is_active = 1 AND p1_.quantity > 0 GROUP BY c0_.id
SELECT c0_.id AS id_0, COUNT(DISTINCT p1_.id) AS sclr_1 FROM product_vendor p1_ INNER JOIN product p2_ ON p1_.product_id = p2_.id INNER JOIN category c0_ ON p2_.category_id = c0_.id WHERE p1_.is_active = 1 AND p2_.is_active = 1 AND p1_.quantity > 0 GROUP BY c0_.id;
|
0.66 ms (14.12%)
|
1 |
SELECT p0_.id AS id_0, p0_.quantity AS quantity_1, p0_.purchase_price AS purchase_price_2, p0_.selling_price AS selling_price_3, p0_.original_price AS original_price_4, p0_.added_at AS added_at_5, p0_.is_active AS is_active_6, (1 - p0_.selling_price / p0_.original_price) AS sclr_7, p0_.product_id AS product_id_8, p0_.lot_id AS lot_id_9, p0_.vendor_id AS vendor_id_10 FROM product_vendor p0_ INNER JOIN product p1_ ON p0_.product_id = p1_.id INNER JOIN `user` u2_ ON p0_.vendor_id = u2_.id WHERE p0_.is_active = 1 AND p1_.is_active = 1 AND p0_.quantity > 0 AND p0_.original_price IS NOT NULL AND p0_.original_price > p0_.selling_price ORDER BY sclr_7 DESC LIMIT 8
SELECT p0_.id AS id_0, p0_.quantity AS quantity_1, p0_.purchase_price AS purchase_price_2, p0_.selling_price AS selling_price_3, p0_.original_price AS original_price_4, p0_.added_at AS added_at_5, p0_.is_active AS is_active_6, (1 - p0_.selling_price / p0_.original_price) AS sclr_7, p0_.product_id AS product_id_8, p0_.lot_id AS lot_id_9, p0_.vendor_id AS vendor_id_10 FROM product_vendor p0_ INNER JOIN product p1_ ON p0_.product_id = p1_.id INNER JOIN `user` u2_ ON p0_.vendor_id = u2_.id WHERE p0_.is_active = 1 AND p1_.is_active = 1 AND p0_.quantity > 0 AND p0_.original_price IS NOT NULL AND p0_.original_price > p0_.selling_price ORDER BY sclr_7 DESC LIMIT 8;
|
0.31 ms (6.62%)
|
1 |
SELECT t0.id AS id_1, t0.name AS name_2, t0.slug AS slug_3, t0.description AS description_4, t0.image AS image_5, t0.is_active AS is_active_6, t0.parent_id AS parent_id_7 FROM category t0 WHERE t0.parent_id IS NULL AND t0.is_active = ? ORDER BY t0.name ASC
SELECT t0.id AS id_1, t0.name AS name_2, t0.slug AS slug_3, t0.description AS description_4, t0.image AS image_5, t0.is_active AS is_active_6, t0.parent_id AS parent_id_7 FROM category t0 WHERE t0.parent_id IS NULL AND t0.is_active = 1 ORDER BY t0.name ASC;
|
0.30 ms (6.43%)
|
1 |
SELECT c0_.id AS id_0, c0_.title AS title_1, c0_.slug AS slug_2, c0_.content AS content_3, c0_.footer_section AS footer_section_4, c0_.footer_position AS footer_position_5, c0_.is_published AS is_published_6, c0_.created_at AS created_at_7, c0_.updated_at AS updated_at_8 FROM cms_page c0_ WHERE c0_.is_published = 1 AND c0_.footer_section IS NOT NULL ORDER BY c0_.footer_section ASC, c0_.footer_position ASC, c0_.title ASC
SELECT c0_.id AS id_0, c0_.title AS title_1, c0_.slug AS slug_2, c0_.content AS content_3, c0_.footer_section AS footer_section_4, c0_.footer_position AS footer_position_5, c0_.is_published AS is_published_6, c0_.created_at AS created_at_7, c0_.updated_at AS updated_at_8 FROM cms_page c0_ WHERE c0_.is_published = 1 AND c0_.footer_section IS NOT NULL ORDER BY c0_.footer_section ASC, c0_.footer_position ASC, c0_.title ASC;
|
0.30 ms (6.43%)
|
1 |
INSERT INTO cart (session_id, created_at, updated_at, user_id) VALUES (?, ?, ?, ?)
Parameters: [
"d40ad61de0574c89cf99e78432abca9d10bd7935b097e93064585ae3d16cd69b"
"2026-11-17 13:11:43"
"2026-11-17 13:11:43"
null
]
INSERT INTO cart (session_id, created_at, updated_at, user_id) VALUES ('d40ad61de0574c89cf99e78432abca9d10bd7935b097e93064585ae3d16cd69b', '2026-11-17 13:11:43', '2026-11-17 13:11:43', NULL);
|
0.28 ms (5.99%)
|
1 |
SELECT c0_.id AS id_0, c0_.name AS name_1, c0_.slug AS slug_2, c0_.description AS description_3, c0_.image AS image_4, c0_.is_active AS is_active_5, c1_.id AS id_6, c1_.name AS name_7, c1_.slug AS slug_8, c1_.description AS description_9, c1_.image AS image_10, c1_.is_active AS is_active_11, c0_.parent_id AS parent_id_12, c1_.parent_id AS parent_id_13 FROM category c0_ LEFT JOIN category c1_ ON c0_.parent_id = c1_.id WHERE c0_.is_active = 1
SELECT c0_.id AS id_0, c0_.name AS name_1, c0_.slug AS slug_2, c0_.description AS description_3, c0_.image AS image_4, c0_.is_active AS is_active_5, c1_.id AS id_6, c1_.name AS name_7, c1_.slug AS slug_8, c1_.description AS description_9, c1_.image AS image_10, c1_.is_active AS is_active_11, c0_.parent_id AS parent_id_12, c1_.parent_id AS parent_id_13 FROM category c0_ LEFT JOIN category c1_ ON c0_.parent_id = c1_.id WHERE c0_.is_active = 1;
|
0.22 ms (4.62%)
|
1 |
"START TRANSACTION"
"START TRANSACTION";
|
0.13 ms (2.69%)
|
1 |
"COMMIT"
|