| 1 |
0.25 ms |
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;
|
| 2 |
0.52 ms |
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;
|
| 3 |
0.22 ms |
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;
|
| 4 |
0.20 ms |
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;
|
| 5 |
0.15 ms |
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;
|
| 6 |
1.17 ms |
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: [
"405be456b71d93daa1f6af7cf36c5b1306e5472e03a40525eb586dec136cc408"
]
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 = '405be456b71d93daa1f6af7cf36c5b1306e5472e03a40525eb586dec136cc408';
|
| 7 |
0.15 ms |
"START TRANSACTION"
"START TRANSACTION";
|
| 8 |
0.31 ms |
INSERT INTO cart (session_id, created_at, updated_at, user_id) VALUES (?, ?, ?, ?)
Parameters: [
"405be456b71d93daa1f6af7cf36c5b1306e5472e03a40525eb586dec136cc408"
"2026-11-17 14:11:02"
"2026-11-17 14:11:02"
null
]
INSERT INTO cart (session_id, created_at, updated_at, user_id) VALUES ('405be456b71d93daa1f6af7cf36c5b1306e5472e03a40525eb586dec136cc408', '2026-11-17 14:11:02', '2026-11-17 14:11:02', NULL);
|
| 9 |
0.21 ms |
"COMMIT"
|
| 10 |
0.87 ms |
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: [
"405be456b71d93daa1f6af7cf36c5b1306e5472e03a40525eb586dec136cc408"
]
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 = '405be456b71d93daa1f6af7cf36c5b1306e5472e03a40525eb586dec136cc408';
|