11.70 ms (36.43%)
2
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
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 = 22712
AND ps . qty > 0
AND ps . is_online = 1
HAVING path ! = ''
ORDER BY pco . sequence ASC , sc . sequence ASC
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
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 = 22712
AND ps . qty > 0
AND ps . is_online = 1
HAVING path ! = ''
ORDER BY pco . sequence ASC , sc . sequence ASC
;
Copy
7.32 ms (22.80%)
20
SELECT t0 . id AS id_1 , t0 . color AS color_2 , t0 . description AS description_3 , t0 . color_start AS color_start_4 , t0 . color_end AS color_end_5 FROM colors_description t0 WHERE t0 . color = ? LIMIT 1
SELECT t0 . id AS id_1 , t0 . color AS color_2 , t0 . description AS description_3 , t0 . color_start AS color_start_4 , t0 . color_end AS color_end_5 FROM colors_description t0 WHERE t0 . color = 'SS' LIMIT 1 ;
Copy
3.74 ms (11.66%)
9
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 = ?
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 = 738871 ;
Copy
1.59 ms (4.94%)
2
SELECT t0 . id AS id_1 , t0 . type AS type_2 , t0 . old_url AS old_url_3 , t0 . new_url AS new_url_4 FROM redirects t0 WHERE t0 . old_url = ? LIMIT 1
Parameters :
[
"/it/shoponline/gear-for-good-stripes-t-shirt.CX.S25474W1215 "
]
SELECT t0 . id AS id_1 , t0 . type AS type_2 , t0 . old_url AS old_url_3 , t0 . new_url AS new_url_4 FROM redirects t0 WHERE t0 . old_url = '/it/shoponline/gear-for-good-stripes-t-shirt.CX.S25474W1215' LIMIT 1 ;
Copy
1.32 ms (4.11%)
1
SELECT t0 . id AS id_1 , t0 . country AS country_2 , t0 . country_code AS country_code_3 , t0 . country_nav_code AS country_nav_code_4 , t0 . allowed AS allowed_5 , t0 . is_eu AS is_eu_6 , t0 . is_klarna_valid AS is_klarna_valid_7 , t0 . shipping_region_id AS shipping_region_id_8 FROM country t0 WHERE t0 . id = ?
SELECT t0 . id AS id_1 , t0 . country AS country_2 , t0 . country_code AS country_code_3 , t0 . country_nav_code AS country_nav_code_4 , t0 . allowed AS allowed_5 , t0 . is_eu AS is_eu_6 , t0 . is_klarna_valid AS is_klarna_valid_7 , t0 . shipping_region_id AS shipping_region_id_8 FROM country t0 WHERE t0 . id = 114 ;
Copy
1.26 ms (3.92%)
2
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
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 = 'it' LIMIT 1 ;
Copy
1.20 ms (3.73%)
2
SELECT COUNT (l0_ . id ) AS sclr_0 FROM listini l0_
SELECT COUNT (l0_ . id ) AS sclr_0 FROM listini l0_ ;
Copy
1.05 ms (3.28%)
1
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 . id = ?
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 . id = 1 ;
Copy
1.04 ms (3.22%)
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 :
[
"CX.S25474W1215 "
]
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 = 'CX.S25474W1215' LIMIT 1 ;
Copy
0.91 ms (2.85%)
2
SELECT t0 . id AS id_1 , t0 . color AS color_2 FROM colors t0 WHERE t0 . id = ?
SELECT t0 . id AS id_1 , t0 . color AS color_2 FROM colors t0 WHERE t0 . id = 9593 ;
Copy
0.65 ms (2.01%)
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 = ?
SELECT t0 . id AS id_1 , t0 . listino AS listino_2 , t0 . currency_id AS currency_id_3 FROM listini t0 WHERE t0 . id = 1 ;
Copy
0.34 ms (1.06%)
1
SELECT img_path
FROM products_default_image
WHERE product_id = 22712
SELECT img_path
FROM products_default_image
WHERE product_id = 22712 ;
Copy