Redirect 302 redirect from GET @product_page (fe9484)

GET http://teva-new-interno.inol3.com/it/shoponline/aventrail-shoe-w.TE.1170193?color=MLW

Query Metrics

142 Database Queries
30 Different statements
79.67 ms Query time
0 Invalid entities
180 Managed entities

Grouped Statements

Show all queries

Time Count Info
19.98 ms
(25.08%)
56
SELECT t0.id AS id_1, t0.category_name AS category_name_2, t0.category_url AS category_url_3, t0.meta_title AS meta_title_4, t0.meta_description AS meta_description_5, t0.frontend_description AS frontend_description_6, t0.meta_h1 AS meta_h1_7, t0.meta_h2 AS meta_h2_8, t0.custom_category_id AS custom_category_id_9, t0.lang_id AS lang_id_10 FROM custom_categories_lang t0 WHERE t0.custom_category_id = ?
Parameters:
[
  84
]
10.67 ms
(13.40%)
1
SELECT DISTINCT p.*, pt.name AS translated_product_name, pt.description AS translated_product_description,
                (
                    SELECT c.color
                    FROM colors AS c
                    INNER JOIN products_skews AS ps ON ps.color_id = c.id AND ps.qty > 0
                    INNER JOIN skews_photos AS sp ON sp.product_id = ps.product_id AND sp.color_id = c.id
                    WHERE ps.product_id = p.id 
                    AND ps.is_online = 1
                    LIMIT 1
                ) AS color,
                (
                    SELECT GROUP_CONCAT(DISTINCT CONCAT(c.color, '|', cd.color_start, '|', IFNULL(cd.color_end, '')))
                    FROM colors AS c
                    INNER JOIN products_skews AS ps ON ps.color_id = c.id AND ps.qty > 0
                    INNER JOIN colors_description AS cd ON cd.color = c.color
                    INNER JOIN skews_photos AS sp ON sp.product_id = ps.product_id AND sp.color_id = c.id
                    WHERE ps.product_id = p.id
                    AND ps.is_online = 1
                ) AS available_colors,
                (
                    SELECT COUNT(br.id)
                    FROM custom_categories_products_br AS br
                    WHERE br.product_id = p.id
                ) AS nr_associations,
                (
                    SELECT MAX(price)
                    FROM prices AS pr
                    WHERE pr.shipping_region_id = 1
                    AND pr.skew_id IN(
                        SELECT ps.id
                            FROM products_skews AS ps
                            WHERE ps.product_id = p.id
                            AND ps.qty > 0
                            AND ps.is_online = 1
                    )
                ) AS max_price,
                (
                  SELECT MIN(price)
                      FROM prices AS pr
                      WHERE pr.shipping_region_id = 1
                      AND pr.skew_id IN(
                        SELECT ps.id
                            FROM products_skews AS ps
                            WHERE ps.product_id = p.id
                            AND ps.qty > 0
                            AND ps.is_online = 1
                      )
                ) AS min_price,
                (
                  SELECT MAX(discounted_price)
                  FROM prices AS pr
                  WHERE pr.shipping_region_id = 1
                  AND (pr.discounted_price_from IS NULL OR pr.discounted_price_from <= '2025-10-27 16:57:59')
                  AND (pr.discounted_price_to IS NULL OR pr.discounted_price_to >= '2025-10-27 16:57:59')
                  AND pr.skew_id IN(
                    SELECT ps.id
                    FROM products_skews AS ps
                    WHERE ps.product_id = p.id
                    AND ps.qty > 0
                    AND ps.is_online = 1
                  )
                ) AS max_discounted_price,
                (
                  SELECT MIN(discounted_price)
                  FROM prices AS pr
                  WHERE pr.shipping_region_id = 1
                  AND (pr.discounted_price_from IS NULL OR pr.discounted_price_from <= '2025-10-27 16:57:59')
                  AND (pr.discounted_price_to IS NULL OR pr.discounted_price_to >= '2025-10-27 16:57:59')
                  AND pr.skew_id IN(
                    SELECT ps.id
                    FROM products_skews AS ps
                    WHERE ps.product_id = p.id
                    AND ps.qty > 0
                    AND ps.is_online = 1
                  )
                ) AS min_discounted_price,
                (
                    SELECT GREATEST(MAX(price), COALESCE(MAX(discounted_price),0))
                    FROM prices AS pr
                    WHERE pr.skew_id IN(
                        SELECT ps.id
                        FROM products_skews AS ps
                        WHERE ps.product_id = p.id
                        AND ps.qty > 0
                        AND ps.is_online = 1
                      )
                    AND pr.shipping_region_id = 1
                ) AS absolute_max_price,
                (
                    SELECT IF(
                        pr.discounted_price_from IS NULL OR pr.discounted_price_from <= '2025-10-27 16:57:59'
                        AND
                        pr.discounted_price_to IS NULL OR pr.discounted_price_to >= '2025-10-27 16:57:59',

                        LEAST(MIN(pr.price), COALESCE(MIN(pr.discounted_price),999999)), 
                        MIN(pr.price)
                    )
                    FROM prices AS pr
                    WHERE pr.skew_id IN(
                        SELECT ps.id
                        FROM products_skews AS ps
                        WHERE ps.product_id = p.id
                        AND ps.qty > 0
                        AND ps.is_online = 1
                      )
                    AND pr.shipping_region_id = 1
                ) AS absolute_min_price,
                (
                    SELECT REPLACE(pdi.img_path, '400x570', '400x400_TE') 
                    FROM products_default_image AS pdi 
                    WHERE pdi.product_id = p.id
                ) AS default_path,
                (
                    SELECT sp.photo_path_reduced
                    FROM skews_photos sp
                    INNER JOIN products_skews AS ps on ps.product_id = sp.product_id AND ps.color_id = sp.color_id
                    WHERE sp.product_id = p.id 
                    AND ps.is_online = 1
                    LIMIT 1
                ) as path,
                (
                    SELECT SUM(qty) FROM products_skews AS ps WHERE ps.product_id = p.id
                ) AS sum_global_qty,
                (
                  SELECT SUM(qty)
                  FROM products_skews AS ps
                  WHERE ps.product_id = p.id
                  AND ps.is_online = 1
                ) AS sum_online_qty,
                (
                    SELECT l.label
                    FROM labels_products_br AS lpb
                    INNER JOIN labels AS l ON l.id = lpb.label_id
                    WHERE lpb.product_id = p.id
                    AND l.image IS NULL
                    AND (l.valid_from IS NULL OR l.valid_from <= '2025-10-27 16:57:59')
                    AND (l.valid_to IS NULL OR l.valid_to >= '2025-10-27 16:57:59')
                    ORDER BY lpb.id DESC
                    LIMIT 0,1
                ) AS product_label,
                (
                    SELECT GROUP_CONCAT(l.image)
                    FROM labels_products_br AS lpb
                    INNER JOIN labels AS l ON l.id = lpb.label_id
                    WHERE lpb.product_id = p.id
                    AND (l.valid_from IS NULL OR l.valid_from <= '2025-10-27 16:57:59')
                    AND (l.valid_to IS NULL OR l.valid_to >= '2025-10-27 16:57:59')
                    ORDER BY lpb.id DESC
                ) AS product_icon_labels,
                (
                    SELECT GROUP_CONCAT(l.label)
                    FROM labels_products_br AS lpb
                    INNER JOIN labels AS l ON l.id = lpb.label_id
                    WHERE lpb.product_id = p.id
                    AND (l.valid_from IS NULL OR l.valid_from <= '2025-10-27 16:57:59')
                    AND (l.valid_to IS NULL OR l.valid_to >= '2025-10-27 16:57:59')
                    AND l.image is NOT NULL
                    ORDER BY lpb.id DESC
                ) AS product_icon_labels_captions,
                (
                    SELECT l.exa_color
                    FROM labels_products_br AS lpb
                    INNER JOIN labels AS l ON l.id = lpb.label_id
                    WHERE lpb.product_id = p.id
                    AND l.image IS NULL
                    AND (l.valid_from IS NULL OR l.valid_from <= '2025-10-27 16:57:59')
                    AND (l.valid_to IS NULL OR l.valid_to >= '2025-10-27 16:57:59')
                    ORDER BY lpb.id DESC
                    LIMIT 0,1
                ) AS product_label_color,
                (
                    SELECT l.font_color
                    FROM labels_products_br AS lpb
                    INNER JOIN labels AS l ON l.id = lpb.label_id
                    WHERE lpb.product_id = p.id
                    AND l.image IS NULL
                    AND (l.valid_from IS NULL OR l.valid_from <= '2025-10-27 16:57:59')
                    AND (l.valid_to IS NULL OR l.valid_to >= '2025-10-27 16:57:59')
                    ORDER BY lpb.id DESC
                    LIMIT 0,1
                ) AS product_label_font_color,
                (
                    SELECT GROUP_CONCAT(pe.color_id) 
                    FROM products_exploded AS pe
                    LEFT JOIN product_colors_order AS pco ON pco.product_id = pe.product_id AND pco.color_id = pe.color_id
                    WHERE pe.product_id = p.id  AND pe.custom_category_id = 87 ORDER BY pco.sequence ASC, pe.ordine ASC
                ) AS exploded_colors , cco.ordine FROM products AS p
                  LEFT JOIN products_texts AS pt ON pt.product_id = p.id AND lang_id = 1 LEFT JOIN products_custom_category_order AS cco ON cco.product_id = p.id AND cco.custom_category_id IN (0, 87) WHERE p.is_online = 1 AND p.id NOT IN (24138) AND p.id IN (
                        SELECT product_id
                        FROM custom_categories_products_br
                        WHERE custom_category_id IN (0, 87)
                    ) HAVING min_price > 0
                  AND color IS NOT NULL
                  AND nr_associations > 0
                  AND sum_online_qty > 0
                  AND path != ''  ORDER BY RAND()
Parameters:
[]
8.62 ms
(10.82%)
1
SELECT ps.*, c.color, s.size, sc.conversion, pr.price, pr.discounted_price, pr.lowest_price, pr.discount_percentage, pr.discounted_price_from, pr.discounted_price_to, pr.shipping_region_id,
                (
                    SELECT
                       CONVERT(GROUP_CONCAT(
                           CONCAT_WS(
                                '|',
                                phototype_id, phototype_name, photo_path, photo_path_reduced
                            )
                       ) USING utf8mb4)
                    FROM skews_photos sp
                    WHERE sp.product_id = ps.product_id
                    AND sp.color_id = ps.color_id
                    AND season_id IN (
                        SELECT MAX(season_id)
                            FROM skews_photos
                            WHERE product_id = ps.product_id
                            AND color_id = ps.color_id
                    )
                    ORDER BY phototype_id ASC
                ) AS path
                FROM products_skews AS ps
                INNER JOIN colors AS c ON c.id = ps.color_id
                INNER JOIN sizes AS s ON s.id = ps.size_id
                LEFT JOIN size_conversion AS sc ON sc.size = s.size AND linea_id = 14 /* AND listino = 'it'*/
                LEFT JOIN product_colors_order AS pco ON pco.product_id = ps.product_id ANd pco.color_id = ps.color_id
                INNER JOIN prices AS pr ON pr.skew_id = ps.id AND pr.shipping_region_id = 1

                WHERE ps.product_id = 24138
                AND ps.qty > 0
                AND ps.is_online = 1
                HAVING path != ''
                ORDER BY pco.sequence ASC, sc.sequence ASC

                /*ORDER BY ps.size_id ASC*/
Parameters:
[]
7.99 ms
(10.03%)
12
SELECT c0_.id AS id_0, c0_.custom_category AS custom_category_1, c0_.ordine AS ordine_2, c0_.is_online AS is_online_3, c0_.show_in_menu AS show_in_menu_4, c0_.parent_id AS parent_id_5 FROM custom_categories c0_ INNER JOIN custom_categories_lang c1_ ON (c1_.custom_category_id = c0_.id) WHERE c0_.is_online = 1 AND c0_.show_in_menu = 1 AND c0_.parent_id = ? AND c1_.lang_id = ? ORDER BY c0_.ordine ASC
Parameters:
[
  84
  1
]
4.95 ms
(6.22%)
14
SELECT t0.id AS id_1, t0.color AS color_2, t0.description AS description_3 FROM colors_description t0 WHERE t0.color = ? LIMIT 1
Parameters:
[
  "MLW"
]
4.52 ms
(5.67%)
12
SELECT t0.id AS id_1, t0.sku_code AS sku_code_2, t0.barcode AS barcode_3, t0.qty AS qty_4, t0.is_qty_blocked AS is_qty_blocked_5, t0.is_future AS is_future_6, t0.sent_to_splio AS sent_to_splio_7, t0.is_online AS is_online_8, t0.product_id AS product_id_9, t0.color_id AS color_id_10, t0.size_id AS size_id_11 FROM products_skews t0 WHERE t0.id = ?
Parameters:
[
  756364
]
2.33 ms
(2.93%)
5
SELECT t0.id AS id_1, t0.lang AS lang_2, t0.label AS label_3 FROM langs t0 WHERE t0.lang = ? LIMIT 1
Parameters:
[
  "it"
]
1.94 ms
(2.43%)
6
SELECT t0.id AS id_1, t0.color AS color_2 FROM colors t0 WHERE t0.color = ? LIMIT 1
Parameters:
[
  "SKB"
]
1.55 ms
(1.95%)
3
SELECT t0.id AS id_1, t0.region_name AS region_name_2, t0.region_code AS region_code_3, t0.ordine AS ordine_4, t0.lang_id AS lang_id_5, t0.currency_id AS currency_id_6, t0.listino_id AS listino_id_7 FROM shipping_regions t0 WHERE t0.region_code = ? LIMIT 1
Parameters:
[
  "it"
]
1.53 ms
(1.91%)
3
SELECT p0_.id AS id_0, p0_.price AS price_1, p0_.discount_percentage AS discount_percentage_2, p0_.discounted_price AS discounted_price_3, p0_.discounted_price_from AS discounted_price_from_4, p0_.discounted_price_to AS discounted_price_to_5, p0_.is_price_blocked AS is_price_blocked_6, p0_.lowest_price AS lowest_price_7, p0_.skew_id AS skew_id_8, p0_.currency_id AS currency_id_9, p0_.product_id AS product_id_10, p0_.shipping_region_id AS shipping_region_id_11 FROM prices p0_ INNER JOIN products_skews p1_ ON (p1_.id = p0_.skew_id) INNER JOIN colors c2_ ON (c2_.id = p1_.color_id) WHERE p0_.product_id = ? AND c2_.color = ? AND p0_.shipping_region_id = ? LIMIT 1
Parameters:
[
  25812
  "SKB"
  1
]
1.48 ms
(1.86%)
3
SELECT t0.id AS id_1, t0.photo_path AS photo_path_2, t0.photo_path_reduced AS photo_path_reduced_3, t0.brand_name AS brand_name_4, t0.color_name AS color_name_5, t0.season_label AS season_label_6, t0.insert_timestamp AS insert_timestamp_7, t0.product_id AS product_id_8, t0.color_id AS color_id_9, t0.phototype_id AS phototype_id_10, t0.season_id AS season_id_11 FROM skews_photos t0 WHERE t0.product_id = ? AND t0.color_id = ? AND t0.phototype_id = ? ORDER BY t0.season_id DESC LIMIT 1
Parameters:
[
  25812
  13874
  1
]
1.37 ms
(1.72%)
3
SELECT t0.id AS id_1, t0.photo_path AS photo_path_2, t0.photo_path_reduced AS photo_path_reduced_3, t0.brand_name AS brand_name_4, t0.color_name AS color_name_5, t0.season_label AS season_label_6, t0.insert_timestamp AS insert_timestamp_7, t0.product_id AS product_id_8, t0.color_id AS color_id_9, t0.phototype_id AS phototype_id_10, t0.season_id AS season_id_11 FROM skews_photos t0 WHERE t0.product_id = ? AND t0.color_id = ? ORDER BY t0.season_id DESC, t0.phototype_id ASC
Parameters:
[
  25812
  13874
]
1.24 ms
(1.56%)
1
SELECT t0.id AS id_1, t0.name AS name_2, t0.description AS description_3, t0.video AS video_4, t0.product_id AS product_id_5, t0.lang_id AS lang_id_6 FROM products_texts t0 WHERE t0.product_id = ? AND t0.lang_id = ? LIMIT 1
Parameters:
[
  24138
  1
]
1.23 ms
(1.55%)
3
SELECT t0.id AS id_1, t0.product AS product_2, t0.ean13 AS ean13_3, t0.product_name AS product_name_4, t0.product_url AS product_url_5, t0.commodity_code AS commodity_code_6, t0.brand AS brand_7, t0.collection AS collection_8, t0.category AS category_9, t0.is_online AS is_online_10, t0.in_home AS in_home_11, t0.is_to_show AS is_to_show_12, t0.label AS label_13, t0.linea_id AS linea_id_14 FROM products t0 WHERE t0.id = ?
Parameters:
[
  25812
]
0.96 ms
(1.21%)
1
SELECT t0.id AS id_1, t0.product AS product_2, t0.ean13 AS ean13_3, t0.product_name AS product_name_4, t0.product_url AS product_url_5, t0.commodity_code AS commodity_code_6, t0.brand AS brand_7, t0.collection AS collection_8, t0.category AS category_9, t0.is_online AS is_online_10, t0.in_home AS in_home_11, t0.is_to_show AS is_to_show_12, t0.label AS label_13, t0.linea_id AS linea_id_14 FROM products t0 WHERE t0.product = ? LIMIT 1
Parameters:
[
  "TE.1170193"
]
0.93 ms
(1.17%)
1
SELECT COUNT(l0_.id) AS sclr_0 FROM listini l0_
Parameters:
[]
0.90 ms
(1.13%)
2
SELECT t0.id AS id_1, t0.custom_category_id AS custom_category_id_2, t0.product_id AS product_id_3 FROM custom_categories_products_br t0 WHERE t0.product_id = ? LIMIT 1
Parameters:
[
  24138
]
0.81 ms
(1.02%)
1
SELECT t0.id AS id_1, t0.lang AS lang_2, t0.label AS label_3 FROM langs t0 WHERE t0.id = ?
Parameters:
[
  "1"
]
0.73 ms
(0.91%)
2
SELECT t0.id AS id_1, t0.color AS color_2 FROM colors t0 WHERE t0.id = ?
Parameters:
[
  11036
]
0.72 ms
(0.91%)
1
SELECT t0.id AS id_1, t0.product_id AS product_id_2, t0.related_id AS related_id_3 FROM products_related t0 WHERE t0.product_id = ?
Parameters:
[
  24138
]
0.71 ms
(0.89%)
1
SELECT t0.id AS id_1, t0.linea AS linea_2 FROM linee t0 WHERE t0.id = ?
Parameters:
[
  14
]
0.68 ms
(0.85%)
1
SELECT s0_.id AS id_0, s0_.type AS type_1, s0_.text AS text_2, s0_.exa_color AS exa_color_3, s0_.font_color AS font_color_4, s0_.valid_from AS valid_from_5, s0_.valid_to AS valid_to_6 FROM static_texts s0_ INNER JOIN static_text_langs s1_ ON (s0_.id = s1_.static_text_id) WHERE s0_.type = ? AND s1_.lang_id = ? AND (s0_.valid_from IS NULL OR s0_.valid_from <= ?) AND (s0_.valid_to IS NULL OR s0_.valid_to >= ?) ORDER BY s0_.id DESC LIMIT 1
Parameters:
[
  "header"
  1
  "2025-10-27 16:57:59"
  "2025-10-27 16:57:59"
]
0.66 ms
(0.83%)
2
SELECT t0.id AS id_1, t0.category_name AS category_name_2, t0.category_url AS category_url_3, t0.meta_title AS meta_title_4, t0.meta_description AS meta_description_5, t0.frontend_description AS frontend_description_6, t0.meta_h1 AS meta_h1_7, t0.meta_h2 AS meta_h2_8, t0.custom_category_id AS custom_category_id_9, t0.lang_id AS lang_id_10 FROM custom_categories_lang t0 WHERE t0.lang_id = ? AND t0.custom_category_id = ? LIMIT 1
Parameters:
[
  1
  87
]
0.60 ms
(0.75%)
1
SELECT t0.id AS id_1, t0.name AS name_2, t0.symbol AS symbol_3, t0.label AS label_4 FROM currencies t0 WHERE t0.id = ?
Parameters:
[
  1
]
0.53 ms
(0.66%)
1
SELECT l0_.id AS id_0, l1_.id AS id_1, l1_.label AS label_2, l1_.valid_from AS valid_from_3, l1_.valid_to AS valid_to_4, l1_.image AS image_5, l1_.exa_color AS exa_color_6, l1_.font_color AS font_color_7, l1_.position AS position_8, l1_.old_id AS old_id_9, l0_.label_id AS label_id_10, l0_.product_id AS product_id_11 FROM labels_products_br l0_ INNER JOIN labels l1_ ON l0_.label_id = l1_.id WHERE l0_.product_id = 24138 AND (l1_.valid_from IS NULL OR l1_.valid_from <= '2025-10-27 16:57:59') AND (l1_.valid_to IS NULL OR l1_.valid_to >= '2025-10-27 16:57:59') AND l1_.image IS NULL ORDER BY l1_.id DESC LIMIT 1
Parameters:
[]
0.52 ms
(0.65%)
1
SELECT c0_.id AS id_0, c0_.custom_category AS custom_category_1, c0_.ordine AS ordine_2, c0_.is_online AS is_online_3, c0_.show_in_menu AS show_in_menu_4, c0_.parent_id AS parent_id_5 FROM custom_categories c0_ INNER JOIN custom_categories_lang c1_ ON (c1_.custom_category_id = c0_.id) WHERE c0_.is_online = 1 AND c0_.show_in_menu = 1 AND c0_.parent_id IS NULL AND c1_.lang_id = ? ORDER BY c0_.ordine ASC
Parameters:
[
  1
]
0.51 ms
(0.64%)
1
SELECT t0.id AS id_1, t0.listino AS listino_2, t0.currency_id AS currency_id_3 FROM listini t0 WHERE t0.id = ?
Parameters:
[
  "1"
]
0.37 ms
(0.47%)
1
SELECT l0_.id AS id_0, l1_.id AS id_1, l1_.label AS label_2, l1_.valid_from AS valid_from_3, l1_.valid_to AS valid_to_4, l1_.image AS image_5, l1_.exa_color AS exa_color_6, l1_.font_color AS font_color_7, l1_.position AS position_8, l1_.old_id AS old_id_9, l0_.label_id AS label_id_10, l0_.product_id AS product_id_11 FROM labels_products_br l0_ INNER JOIN labels l1_ ON l0_.label_id = l1_.id WHERE l0_.product_id = 24138 AND (l1_.valid_from IS NULL OR l1_.valid_from <= '2025-10-27 16:57:59') AND (l1_.valid_to IS NULL OR l1_.valid_to >= '2025-10-27 16:57:59') AND l1_.image IS NOT NULL ORDER BY l1_.id DESC
Parameters:
[]
0.33 ms
(0.41%)
1
SELECT t0.id AS id_1, t0.name AS name_2, t0.html_it AS html_it_3, t0.html_en AS html_en_4 FROM size_tables t0 WHERE t0.name = ? LIMIT 1
Parameters:
[
  "default_donna"
]
0.29 ms
(0.37%)
1
SELECT t0.id AS id_1, t0.custom_category AS custom_category_2, t0.ordine AS ordine_3, t0.is_online AS is_online_4, t0.show_in_menu AS show_in_menu_5, t0.parent_id AS parent_id_6 FROM custom_categories t0 WHERE t0.id = ?
Parameters:
[
  87
]

Database Connections

Name Service
default doctrine.dbal.default_connection

Entity Managers

Name Service
default doctrine.orm.default_entity_manager

Second Level Cache

Second Level Cache is not enabled.

Managed Entities

default entity manager

Class Amount of managed objects
App\Entity\CustomCategory 56
App\Entity\CustomCategoriesLang 56
App\Entity\SkewPhotos 18
App\Entity\ProductsSkew 15
App\Entity\Size 6
App\Entity\PhotoType 6
App\Entity\Color 5
App\Entity\Product 4
App\Entity\Prices 3
App\Entity\Linea 2
App\Entity\Language 1
App\Entity\Listini 1
App\Entity\Currencies 1
App\Entity\ShippingRegion 1
App\Entity\ColorsDescription 1
App\Entity\ProductTexts 1
App\Entity\CustomCategoriesProductsBridge 1
App\Entity\Season 1
App\Entity\StaticTexts 1