2.08 ms (50.13%)
|
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: [
"7a3c3e7a83faf8771cf98a451a33191168fddd8de081db868b23dff7d3ac51e9"
]
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 = '7a3c3e7a83faf8771cf98a451a33191168fddd8de081db868b23dff7d3ac51e9';
|
0.41 ms (9.97%)
|
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.37 ms (8.81%)
|
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.32 ms (7.65%)
|
1 |
INSERT INTO cart (session_id, created_at, updated_at, user_id) VALUES (?, ?, ?, ?)
Parameters: [
"7a3c3e7a83faf8771cf98a451a33191168fddd8de081db868b23dff7d3ac51e9"
"2026-11-17 11:53:29"
"2026-11-17 11:53:29"
null
]
INSERT INTO cart (session_id, created_at, updated_at, user_id) VALUES ('7a3c3e7a83faf8771cf98a451a33191168fddd8de081db868b23dff7d3ac51e9', '2026-11-17 11:53:29', '2026-11-17 11:53:29', NULL);
|
0.27 ms (6.54%)
|
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.26 ms (6.25%)
|
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.22 ms (5.21%)
|
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.12 ms (2.87%)
|
1 |
"START TRANSACTION"
"START TRANSACTION";
|
0.11 ms (2.58%)
|
1 |
"COMMIT"
|