| 1 |
0.45 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.24 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.38 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.28 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.23 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 |
0.90 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: [
"bff817988086540eae51140698407dca31a5d3f53fe720d8ca93bcbd93548247"
]
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 = 'bff817988086540eae51140698407dca31a5d3f53fe720d8ca93bcbd93548247';
|
| 7 |
0.12 ms |
"START TRANSACTION"
"START TRANSACTION";
|
| 8 |
0.34 ms |
INSERT INTO cart (session_id, created_at, updated_at, user_id) VALUES (?, ?, ?, ?)
Parameters: [
"bff817988086540eae51140698407dca31a5d3f53fe720d8ca93bcbd93548247"
"2026-11-17 14:09:04"
"2026-11-17 14:09:04"
null
]
INSERT INTO cart (session_id, created_at, updated_at, user_id) VALUES ('bff817988086540eae51140698407dca31a5d3f53fe720d8ca93bcbd93548247', '2026-11-17 14:09:04', '2026-11-17 14:09:04', NULL);
|
| 9 |
0.10 ms |
"COMMIT"
|
| 10 |
0.58 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: [
"bff817988086540eae51140698407dca31a5d3f53fe720d8ca93bcbd93548247"
]
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 = 'bff817988086540eae51140698407dca31a5d3f53fe720d8ca93bcbd93548247';
|