| 1 |
0.20 ms |
SELECT t0.id AS id_1, t0.query_term AS query_term_2, t0.count AS count_3, t0.last_searched_at AS last_searched_at_4 FROM search_query t0 WHERE t0.query_term = ? LIMIT 1
Parameters: [
"18152 g"
]
SELECT t0.id AS id_1, t0.query_term AS query_term_2, t0.count AS count_3, t0.last_searched_at AS last_searched_at_4 FROM search_query t0 WHERE t0.query_term = '18152 g' LIMIT 1;
|
| 2 |
0.06 ms |
"START TRANSACTION"
"START TRANSACTION";
|
| 3 |
0.14 ms |
UPDATE search_query SET count = ?, last_searched_at = ? WHERE id = ?
Parameters: [
5
"2026-08-29 11:57:17"
3
]
UPDATE search_query SET count = 5, last_searched_at = '2026-08-29 11:57:17' WHERE id = 3;
|
| 4 |
0.60 ms |
"COMMIT"
|
| 5 |
193.16 ms |
SELECT DISTINCT p0_.id AS id_0, p0_.cod AS cod_1, p0_.reference AS reference_2, p0_.name AS name_3, p0_.description AS description_4, p0_.slug AS slug_5, p0_.stock AS stock_6, p0_.pvp AS pvp_7, p0_.discount AS discount_8, p0_.net_price AS net_price_9, p0_.extra AS extra_10, p0_.images AS images_11, p0_.created_at AS created_at_12, p0_.updated_at AS updated_at_13, p0_.views AS views_14, p0_.position AS position_15, p0_.active AS active_16, p0_.meta_title AS meta_title_17, p0_.meta_description AS meta_description_18, p0_.meta_keywords AS meta_keywords_19, p0_.brand_id AS brand_id_20 FROM product p0_ LEFT JOIN brand b1_ ON p0_.brand_id = b1_.id LEFT JOIN product_category p3_ ON p0_.id = p3_.product_id LEFT JOIN category c2_ ON c2_.id = p3_.category_id WHERE p0_.active = ? AND ((p0_.name LIKE ? OR p0_.description LIKE ? OR p0_.reference LIKE ? OR b1_.name LIKE ? OR c2_.name LIKE ?)) ORDER BY p0_.position ASC, p0_.name ASC LIMIT 20
Parameters: [
1
"%18152 g%"
"%18152 g%"
"%18152 g%"
"%18152 g%"
"%18152 g%"
]
SELECT DISTINCT p0_.id AS id_0, p0_.cod AS cod_1, p0_.reference AS reference_2, p0_.name AS name_3, p0_.description AS description_4, p0_.slug AS slug_5, p0_.stock AS stock_6, p0_.pvp AS pvp_7, p0_.discount AS discount_8, p0_.net_price AS net_price_9, p0_.extra AS extra_10, p0_.images AS images_11, p0_.created_at AS created_at_12, p0_.updated_at AS updated_at_13, p0_.views AS views_14, p0_.position AS position_15, p0_.active AS active_16, p0_.meta_title AS meta_title_17, p0_.meta_description AS meta_description_18, p0_.meta_keywords AS meta_keywords_19, p0_.brand_id AS brand_id_20 FROM product p0_ LEFT JOIN brand b1_ ON p0_.brand_id = b1_.id LEFT JOIN product_category p3_ ON p0_.id = p3_.product_id LEFT JOIN category c2_ ON c2_.id = p3_.category_id WHERE p0_.active = 1 AND ((p0_.name LIKE '%18152 g%' OR p0_.description LIKE '%18152 g%' OR p0_.reference LIKE '%18152 g%' OR b1_.name LIKE '%18152 g%' OR c2_.name LIKE '%18152 g%')) ORDER BY p0_.position ASC, p0_.name ASC LIMIT 20;
|
| 6 |
0.95 ms |
SELECT c0_.id AS id_0, c0_.name AS name_1, c0_.slug AS slug_2, c0_.image AS image_3, c0_.active AS active_4, c0_.position AS position_5, c0_.meta_title AS meta_title_6, c0_.meta_description AS meta_description_7, c0_.meta_keywords AS meta_keywords_8, COUNT(p1_.id) AS sclr_9, c0_.parent_id AS parent_id_10 FROM category c0_ LEFT JOIN product_category p2_ ON c0_.id = p2_.category_id LEFT JOIN product p1_ ON p1_.id = p2_.product_id WHERE c0_.name LIKE ? OR c0_.slug LIKE ? GROUP BY c0_.id ORDER BY c0_.position ASC, c0_.name ASC LIMIT 10
Parameters: [
"%18152 g%"
"%18152 g%"
]
SELECT c0_.id AS id_0, c0_.name AS name_1, c0_.slug AS slug_2, c0_.image AS image_3, c0_.active AS active_4, c0_.position AS position_5, c0_.meta_title AS meta_title_6, c0_.meta_description AS meta_description_7, c0_.meta_keywords AS meta_keywords_8, COUNT(p1_.id) AS sclr_9, c0_.parent_id AS parent_id_10 FROM category c0_ LEFT JOIN product_category p2_ ON c0_.id = p2_.category_id LEFT JOIN product p1_ ON p1_.id = p2_.product_id WHERE c0_.name LIKE '%18152 g%' OR c0_.slug LIKE '%18152 g%' GROUP BY c0_.id ORDER BY c0_.position ASC, c0_.name ASC LIMIT 10;
|
| 7 |
0.34 ms |
SELECT b0_.id AS id_0, b0_.name AS name_1, b0_.slug AS slug_2, b0_.position AS position_3, COUNT(p1_.id) AS sclr_4 FROM brand b0_ LEFT JOIN product p1_ ON b0_.id = p1_.brand_id WHERE b0_.name LIKE ? GROUP BY b0_.id ORDER BY b0_.position ASC, b0_.name ASC LIMIT 10
Parameters: [
"%18152 g%"
]
SELECT b0_.id AS id_0, b0_.name AS name_1, b0_.slug AS slug_2, b0_.position AS position_3, COUNT(p1_.id) AS sclr_4 FROM brand b0_ LEFT JOIN product p1_ ON b0_.id = p1_.brand_id WHERE b0_.name LIKE '%18152 g%' GROUP BY b0_.id ORDER BY b0_.position ASC, b0_.name ASC LIMIT 10;
|
| 8 |
0.16 ms |
SELECT s0_.id AS id_0, s0_.query_term AS query_term_1, s0_.count AS count_2, s0_.last_searched_at AS last_searched_at_3 FROM search_query s0_ ORDER BY s0_.count DESC LIMIT 5
SELECT s0_.id AS id_0, s0_.query_term AS query_term_1, s0_.count AS count_2, s0_.last_searched_at AS last_searched_at_3 FROM search_query s0_ ORDER BY s0_.count DESC LIMIT 5;
|
| 9 |
31.85 ms |
SELECT c0_.id AS id_0, c0_.name AS name_1, c0_.slug AS slug_2, c0_.image AS image_3, c0_.active AS active_4, c0_.position AS position_5, c0_.meta_title AS meta_title_6, c0_.meta_description AS meta_description_7, c0_.meta_keywords AS meta_keywords_8, COUNT(p1_.id) AS sclr_9, c0_.parent_id AS parent_id_10 FROM category c0_ LEFT JOIN product_category p2_ ON c0_.id = p2_.category_id LEFT JOIN product p1_ ON p1_.id = p2_.product_id WHERE c0_.active = ? AND c0_.parent_id IS NULL GROUP BY c0_.id ORDER BY c0_.position ASC, c0_.name ASC
SELECT c0_.id AS id_0, c0_.name AS name_1, c0_.slug AS slug_2, c0_.image AS image_3, c0_.active AS active_4, c0_.position AS position_5, c0_.meta_title AS meta_title_6, c0_.meta_description AS meta_description_7, c0_.meta_keywords AS meta_keywords_8, COUNT(p1_.id) AS sclr_9, c0_.parent_id AS parent_id_10 FROM category c0_ LEFT JOIN product_category p2_ ON c0_.id = p2_.category_id LEFT JOIN product p1_ ON p1_.id = p2_.product_id WHERE c0_.active = 1 AND c0_.parent_id IS NULL GROUP BY c0_.id ORDER BY c0_.position ASC, c0_.name ASC;
|
| 10 |
30.49 ms |
SELECT c0_.id AS id_0, c0_.name AS name_1, c0_.slug AS slug_2, c0_.image AS image_3, c0_.active AS active_4, c0_.position AS position_5, c0_.meta_title AS meta_title_6, c0_.meta_description AS meta_description_7, c0_.meta_keywords AS meta_keywords_8, COUNT(p1_.id) AS sclr_9, c0_.parent_id AS parent_id_10 FROM category c0_ LEFT JOIN product_category p2_ ON c0_.id = p2_.category_id LEFT JOIN product p1_ ON p1_.id = p2_.product_id WHERE c0_.active = ? AND c0_.parent_id IS NULL GROUP BY c0_.id ORDER BY c0_.position ASC, c0_.name ASC
SELECT c0_.id AS id_0, c0_.name AS name_1, c0_.slug AS slug_2, c0_.image AS image_3, c0_.active AS active_4, c0_.position AS position_5, c0_.meta_title AS meta_title_6, c0_.meta_description AS meta_description_7, c0_.meta_keywords AS meta_keywords_8, COUNT(p1_.id) AS sclr_9, c0_.parent_id AS parent_id_10 FROM category c0_ LEFT JOIN product_category p2_ ON c0_.id = p2_.category_id LEFT JOIN product p1_ ON p1_.id = p2_.product_id WHERE c0_.active = 1 AND c0_.parent_id IS NULL GROUP BY c0_.id ORDER BY c0_.position ASC, c0_.name ASC;
|
| 11 |
29.65 ms |
SELECT c0_.id AS id_0, c0_.name AS name_1, c0_.slug AS slug_2, c0_.image AS image_3, c0_.active AS active_4, c0_.position AS position_5, c0_.meta_title AS meta_title_6, c0_.meta_description AS meta_description_7, c0_.meta_keywords AS meta_keywords_8, COUNT(p1_.id) AS sclr_9, c0_.parent_id AS parent_id_10 FROM category c0_ LEFT JOIN product_category p2_ ON c0_.id = p2_.category_id LEFT JOIN product p1_ ON p1_.id = p2_.product_id WHERE c0_.active = ? AND c0_.parent_id IS NULL GROUP BY c0_.id ORDER BY c0_.position ASC, c0_.name ASC
SELECT c0_.id AS id_0, c0_.name AS name_1, c0_.slug AS slug_2, c0_.image AS image_3, c0_.active AS active_4, c0_.position AS position_5, c0_.meta_title AS meta_title_6, c0_.meta_description AS meta_description_7, c0_.meta_keywords AS meta_keywords_8, COUNT(p1_.id) AS sclr_9, c0_.parent_id AS parent_id_10 FROM category c0_ LEFT JOIN product_category p2_ ON c0_.id = p2_.category_id LEFT JOIN product p1_ ON p1_.id = p2_.product_id WHERE c0_.active = 1 AND c0_.parent_id IS NULL GROUP BY c0_.id ORDER BY c0_.position ASC, c0_.name ASC;
|