1
1.06 ms
SELECT e0_ . id AS id_0 , e0_ . exchange_rate AS exchange_rate_1 , e0_ . last_automatic_update AS last_automatic_update_2 , e0_ . created_at AS created_at_3 , e0_ . updated_at AS updated_at_4 , e0_ . currency_from_id AS currency_from_id_5 , e0_ . currency_to_id AS currency_to_id_6 FROM exchange_rate e0_
SELECT e0_ . id AS id_0 , e0_ . exchange_rate AS exchange_rate_1 , e0_ . last_automatic_update AS last_automatic_update_2 , e0_ . created_at AS created_at_3 , e0_ . updated_at AS updated_at_4 , e0_ . currency_from_id AS currency_from_id_5 , e0_ . currency_to_id AS currency_to_id_6 FROM exchange_rate e0_ ;
Copy
2
2.03 ms
SELECT c0_ . code AS code_0 , c0_ . is_default AS is_default_1 , c0_ . is_active AS is_active_2 , c0_ . decimal_places AS decimal_places_3 , e1_ . id AS id_4 , e1_ . exchange_rate AS exchange_rate_5 , e1_ . last_automatic_update AS last_automatic_update_6 , e1_ . created_at AS created_at_7 , e1_ . updated_at AS updated_at_8 , e2_ . id AS id_9 , e2_ . exchange_rate AS exchange_rate_10 , e2_ . last_automatic_update AS last_automatic_update_11 , e2_ . created_at AS created_at_12 , e2_ . updated_at AS updated_at_13 , e1_ . currency_from_id AS currency_from_id_14 , e1_ . currency_to_id AS currency_to_id_15 , e2_ . currency_from_id AS currency_from_id_16 , e2_ . currency_to_id AS currency_to_id_17 FROM currency c0_ LEFT JOIN exchange_rate e1_ ON c0_ . code = e1_ . currency_to_id LEFT JOIN exchange_rate e2_ ON c0_ . code = e2_ . currency_from_id WHERE c0_ . is_default = ?
SELECT c0_ . code AS code_0 , c0_ . is_default AS is_default_1 , c0_ . is_active AS is_active_2 , c0_ . decimal_places AS decimal_places_3 , e1_ . id AS id_4 , e1_ . exchange_rate AS exchange_rate_5 , e1_ . last_automatic_update AS last_automatic_update_6 , e1_ . created_at AS created_at_7 , e1_ . updated_at AS updated_at_8 , e2_ . id AS id_9 , e2_ . exchange_rate AS exchange_rate_10 , e2_ . last_automatic_update AS last_automatic_update_11 , e2_ . created_at AS created_at_12 , e2_ . updated_at AS updated_at_13 , e1_ . currency_from_id AS currency_from_id_14 , e1_ . currency_to_id AS currency_to_id_15 , e2_ . currency_from_id AS currency_from_id_16 , e2_ . currency_to_id AS currency_to_id_17 FROM currency c0_ LEFT JOIN exchange_rate e1_ ON c0_ . code = e1_ . currency_to_id LEFT JOIN exchange_rate e2_ ON c0_ . code = e2_ . currency_from_id WHERE c0_ . is_default = 1 ;
Copy
3
0.63 ms
SELECT c0_ . code AS code_0 , c0_ . is_default AS is_default_1 , c0_ . is_active AS is_active_2 , c0_ . decimal_places AS decimal_places_3 , e1_ . id AS id_4 , e1_ . exchange_rate AS exchange_rate_5 , e1_ . last_automatic_update AS last_automatic_update_6 , e1_ . created_at AS created_at_7 , e1_ . updated_at AS updated_at_8 , e2_ . id AS id_9 , e2_ . exchange_rate AS exchange_rate_10 , e2_ . last_automatic_update AS last_automatic_update_11 , e2_ . created_at AS created_at_12 , e2_ . updated_at AS updated_at_13 , e1_ . currency_from_id AS currency_from_id_14 , e1_ . currency_to_id AS currency_to_id_15 , e2_ . currency_from_id AS currency_from_id_16 , e2_ . currency_to_id AS currency_to_id_17 FROM currency c0_ LEFT JOIN exchange_rate e1_ ON c0_ . code = e1_ . currency_to_id LEFT JOIN exchange_rate e2_ ON c0_ . code = e2_ . currency_from_id WHERE c0_ . is_default = ?
SELECT c0_ . code AS code_0 , c0_ . is_default AS is_default_1 , c0_ . is_active AS is_active_2 , c0_ . decimal_places AS decimal_places_3 , e1_ . id AS id_4 , e1_ . exchange_rate AS exchange_rate_5 , e1_ . last_automatic_update AS last_automatic_update_6 , e1_ . created_at AS created_at_7 , e1_ . updated_at AS updated_at_8 , e2_ . id AS id_9 , e2_ . exchange_rate AS exchange_rate_10 , e2_ . last_automatic_update AS last_automatic_update_11 , e2_ . created_at AS created_at_12 , e2_ . updated_at AS updated_at_13 , e1_ . currency_from_id AS currency_from_id_14 , e1_ . currency_to_id AS currency_to_id_15 , e2_ . currency_from_id AS currency_from_id_16 , e2_ . currency_to_id AS currency_to_id_17 FROM currency c0_ LEFT JOIN exchange_rate e1_ ON c0_ . code = e1_ . currency_to_id LEFT JOIN exchange_rate e2_ ON c0_ . code = e2_ . currency_from_id WHERE c0_ . is_default = 1 ;
Copy
4
0.90 ms
SELECT c0_ . code AS code_0 , c0_ . is_default AS is_default_1 , c0_ . is_active AS is_active_2 , c0_ . decimal_places AS decimal_places_3 , e1_ . id AS id_4 , e1_ . exchange_rate AS exchange_rate_5 , e1_ . last_automatic_update AS last_automatic_update_6 , e1_ . created_at AS created_at_7 , e1_ . updated_at AS updated_at_8 , e2_ . id AS id_9 , e2_ . exchange_rate AS exchange_rate_10 , e2_ . last_automatic_update AS last_automatic_update_11 , e2_ . created_at AS created_at_12 , e2_ . updated_at AS updated_at_13 , e1_ . currency_from_id AS currency_from_id_14 , e1_ . currency_to_id AS currency_to_id_15 , e2_ . currency_from_id AS currency_from_id_16 , e2_ . currency_to_id AS currency_to_id_17 FROM currency c0_ LEFT JOIN exchange_rate e1_ ON c0_ . code = e1_ . currency_to_id LEFT JOIN exchange_rate e2_ ON c0_ . code = e2_ . currency_from_id ORDER BY c0_ . is_default DESC , c0_ . code ASC
SELECT c0_ . code AS code_0 , c0_ . is_default AS is_default_1 , c0_ . is_active AS is_active_2 , c0_ . decimal_places AS decimal_places_3 , e1_ . id AS id_4 , e1_ . exchange_rate AS exchange_rate_5 , e1_ . last_automatic_update AS last_automatic_update_6 , e1_ . created_at AS created_at_7 , e1_ . updated_at AS updated_at_8 , e2_ . id AS id_9 , e2_ . exchange_rate AS exchange_rate_10 , e2_ . last_automatic_update AS last_automatic_update_11 , e2_ . created_at AS created_at_12 , e2_ . updated_at AS updated_at_13 , e1_ . currency_from_id AS currency_from_id_14 , e1_ . currency_to_id AS currency_to_id_15 , e2_ . currency_from_id AS currency_from_id_16 , e2_ . currency_to_id AS currency_to_id_17 FROM currency c0_ LEFT JOIN exchange_rate e1_ ON c0_ . code = e1_ . currency_to_id LEFT JOIN exchange_rate e2_ ON c0_ . code = e2_ . currency_from_id ORDER BY c0_ . is_default DESC , c0_ . code ASC ;
Copy
5
3.65 ms
SELECT c0_ . id AS id_0 , c0_ . session_id AS session_id_1 , c0_ . status AS status_2 , c0_ . last_activity_at AS last_activity_at_3 , c0_ . email AS email_4 , c0_ . firstname AS firstname_5 , c0_ . lastname AS lastname_6 , c0_ . telephone AS telephone_7 , c0_ . company_name AS company_name_8 , c0_ . cin AS cin_9 , c0_ . vat_id AS vat_id_10 , c0_ . pickup_point_id AS pickup_point_id_11 , c0_ . pickup_point_name AS pickup_point_name_12 , c0_ . note AS note_13 , c0_ . payment_method AS payment_method_14 , c0_ . created_at AS created_at_15 , c0_ . updated_at AS updated_at_16 , c0_ . address_street AS address_street_17 , c0_ . address_descriptive_number AS address_descriptive_number_18 , c0_ . address_city AS address_city_19 , c0_ . address_country AS address_country_20 , c0_ . address_zip_code AS address_zip_code_21 , c0_ . invoice_street AS invoice_street_22 , c0_ . invoice_descriptive_number AS invoice_descriptive_number_23 , c0_ . invoice_city AS invoice_city_24 , c0_ . invoice_country AS invoice_country_25 , c0_ . invoice_zip_code AS invoice_zip_code_26 , c1_ . id AS id_27 , c1_ . quantity AS quantity_28 , c1_ . created_at AS created_at_29 , c1_ . updated_at AS updated_at_30 , p2_ . id AS id_31 , p2_ . code AS code_32 , p2_ . is_default AS is_default_33 , p2_ . weight_modification AS weight_modification_34 , p2_ . price_modification_amount AS price_modification_amount_35 , p2_ . price_modification_currency AS price_modification_currency_36 , p2_ . stock_stock AS stock_stock_37 , p2_ . stock_reserved AS stock_reserved_38 , p3_ . id AS id_39 , p3_ . public_id AS public_id_40 , p3_ . name AS name_41 , p3_ . description AS description_42 , p3_ . short_description AS short_description_43 , p3_ . code AS code_44 , p3_ . ean AS ean_45 , p3_ . unit AS unit_46 , p3_ . active AS active_47 , p3_ . can_be_bought AS can_be_bought_48 , p3_ . searchable AS searchable_49 , p3_ . show_price AS show_price_50 , p3_ . in_stock_text AS in_stock_text_51 , p3_ . out_of_stock_text AS out_of_stock_text_52 , p3_ . filter_parameter_value_ids AS filter_parameter_value_ids_53 , p3_ . filter_variant_value_ids AS filter_variant_value_ids_54 , p3_ . search_vector_cs AS search_vector_cs_55 , p3_ . search_vector_en AS search_vector_en_56 , p3_ . seo_title AS seo_title_57 , p3_ . seo_description AS seo_description_58 , p3_ . seo_url AS seo_url_59 , p3_ . stock_stock AS stock_stock_60 , p3_ . stock_reserved AS stock_reserved_61 , p3_ . logistic_weight AS logistic_weight_62 , p3_ . logistic_size_width AS logistic_size_width_63 , p3_ . logistic_size_height AS logistic_size_height_64 , p3_ . logistic_size_length AS logistic_size_length_65 , p3_ . price_amount AS price_amount_66 , p3_ . price_currency AS price_currency_67 , p3_ . purchase_price_amount AS purchase_price_amount_68 , p3_ . purchase_price_currency AS purchase_price_currency_69 , c0_ . customer_id AS customer_id_70 , c0_ . shipping_method_id AS shipping_method_id_71 , c0_ . discount_code_id AS discount_code_id_72 , c1_ . cart_id AS cart_id_73 , c1_ . product_variant_id AS product_variant_id_74 , p2_ . product_id AS product_id_75 , p3_ . vat_id AS vat_id_76 , p3_ . main_category_id AS main_category_id_77 FROM cart c0_ LEFT JOIN cart_item c1_ ON c0_ . id = c1_ . cart_id LEFT JOIN product_variant p2_ ON c1_ . product_variant_id = p2_ . id LEFT JOIN product p3_ ON p2_ . product_id = p3_ . id WHERE c0_ . session_id = ? AND c0_ . status = ? ORDER BY c1_ . id ASC
Parameters :
[
"658bfc3b4039d97c103114ab634350c2 "
"active "
]
SELECT
c0_ . id AS id_0 ,
c0_ . session_id AS session_id_1 ,
c0_ . status AS status_2 ,
c0_ . last_activity_at AS last_activity_at_3 ,
c0_ . email AS email_4 ,
c0_ . firstname AS firstname_5 ,
c0_ . lastname AS lastname_6 ,
c0_ . telephone AS telephone_7 ,
c0_ . company_name AS company_name_8 ,
c0_ . cin AS cin_9 ,
c0_ . vat_id AS vat_id_10 ,
c0_ . pickup_point_id AS pickup_point_id_11 ,
c0_ . pickup_point_name AS pickup_point_name_12 ,
c0_ . note AS note_13 ,
c0_ . payment_method AS payment_method_14 ,
c0_ . created_at AS created_at_15 ,
c0_ . updated_at AS updated_at_16 ,
c0_ . address_street AS address_street_17 ,
c0_ . address_descriptive_number AS address_descriptive_number_18 ,
c0_ . address_city AS address_city_19 ,
c0_ . address_country AS address_country_20 ,
c0_ . address_zip_code AS address_zip_code_21 ,
c0_ . invoice_street AS invoice_street_22 ,
c0_ . invoice_descriptive_number AS invoice_descriptive_number_23 ,
c0_ . invoice_city AS invoice_city_24 ,
c0_ . invoice_country AS invoice_country_25 ,
c0_ . invoice_zip_code AS invoice_zip_code_26 ,
c1_ . id AS id_27 ,
c1_ . quantity AS quantity_28 ,
c1_ . created_at AS created_at_29 ,
c1_ . updated_at AS updated_at_30 ,
p2_ . id AS id_31 ,
p2_ . code AS code_32 ,
p2_ . is_default AS is_default_33 ,
p2_ . weight_modification AS weight_modification_34 ,
p2_ . price_modification_amount AS price_modification_amount_35 ,
p2_ . price_modification_currency AS price_modification_currency_36 ,
p2_ . stock_stock AS stock_stock_37 ,
p2_ . stock_reserved AS stock_reserved_38 ,
p3_ . id AS id_39 ,
p3_ . public_id AS public_id_40 ,
p3_ . name AS name_41 ,
p3_ . description AS description_42 ,
p3_ . short_description AS short_description_43 ,
p3_ . code AS code_44 ,
p3_ . ean AS ean_45 ,
p3_ . unit AS unit_46 ,
p3_ . active AS active_47 ,
p3_ . can_be_bought AS can_be_bought_48 ,
p3_ . searchable AS searchable_49 ,
p3_ . show_price AS show_price_50 ,
p3_ . in_stock_text AS in_stock_text_51 ,
p3_ . out_of_stock_text AS out_of_stock_text_52 ,
p3_ . filter_parameter_value_ids AS filter_parameter_value_ids_53 ,
p3_ . filter_variant_value_ids AS filter_variant_value_ids_54 ,
p3_ . search_vector_cs AS search_vector_cs_55 ,
p3_ . search_vector_en AS search_vector_en_56 ,
p3_ . seo_title AS seo_title_57 ,
p3_ . seo_description AS seo_description_58 ,
p3_ . seo_url AS seo_url_59 ,
p3_ . stock_stock AS stock_stock_60 ,
p3_ . stock_reserved AS stock_reserved_61 ,
p3_ . logistic_weight AS logistic_weight_62 ,
p3_ . logistic_size_width AS logistic_size_width_63 ,
p3_ . logistic_size_height AS logistic_size_height_64 ,
p3_ . logistic_size_length AS logistic_size_length_65 ,
p3_ . price_amount AS price_amount_66 ,
p3_ . price_currency AS price_currency_67 ,
p3_ . purchase_price_amount AS purchase_price_amount_68 ,
p3_ . purchase_price_currency AS purchase_price_currency_69 ,
c0_ . customer_id AS customer_id_70 ,
c0_ . shipping_method_id AS shipping_method_id_71 ,
c0_ . discount_code_id AS discount_code_id_72 ,
c1_ . cart_id AS cart_id_73 ,
c1_ . product_variant_id AS product_variant_id_74 ,
p2_ . product_id AS product_id_75 ,
p3_ . vat_id AS vat_id_76 ,
p3_ . main_category_id AS main_category_id_77
FROM
cart c0_
LEFT JOIN cart_item c1_ ON c0_ . id = c1_ . cart_id
LEFT JOIN product_variant p2_ ON c1_ . product_variant_id = p2_ . id
LEFT JOIN product p3_ ON p2_ . product_id = p3_ . id
WHERE
c0_ . session_id = ?
AND c0_ . status = ?
ORDER BY
c1_ . id ASC
Copy
SELECT c0_ . id AS id_0 , c0_ . session_id AS session_id_1 , c0_ . status AS status_2 , c0_ . last_activity_at AS last_activity_at_3 , c0_ . email AS email_4 , c0_ . firstname AS firstname_5 , c0_ . lastname AS lastname_6 , c0_ . telephone AS telephone_7 , c0_ . company_name AS company_name_8 , c0_ . cin AS cin_9 , c0_ . vat_id AS vat_id_10 , c0_ . pickup_point_id AS pickup_point_id_11 , c0_ . pickup_point_name AS pickup_point_name_12 , c0_ . note AS note_13 , c0_ . payment_method AS payment_method_14 , c0_ . created_at AS created_at_15 , c0_ . updated_at AS updated_at_16 , c0_ . address_street AS address_street_17 , c0_ . address_descriptive_number AS address_descriptive_number_18 , c0_ . address_city AS address_city_19 , c0_ . address_country AS address_country_20 , c0_ . address_zip_code AS address_zip_code_21 , c0_ . invoice_street AS invoice_street_22 , c0_ . invoice_descriptive_number AS invoice_descriptive_number_23 , c0_ . invoice_city AS invoice_city_24 , c0_ . invoice_country AS invoice_country_25 , c0_ . invoice_zip_code AS invoice_zip_code_26 , c1_ . id AS id_27 , c1_ . quantity AS quantity_28 , c1_ . created_at AS created_at_29 , c1_ . updated_at AS updated_at_30 , p2_ . id AS id_31 , p2_ . code AS code_32 , p2_ . is_default AS is_default_33 , p2_ . weight_modification AS weight_modification_34 , p2_ . price_modification_amount AS price_modification_amount_35 , p2_ . price_modification_currency AS price_modification_currency_36 , p2_ . stock_stock AS stock_stock_37 , p2_ . stock_reserved AS stock_reserved_38 , p3_ . id AS id_39 , p3_ . public_id AS public_id_40 , p3_ . name AS name_41 , p3_ . description AS description_42 , p3_ . short_description AS short_description_43 , p3_ . code AS code_44 , p3_ . ean AS ean_45 , p3_ . unit AS unit_46 , p3_ . active AS active_47 , p3_ . can_be_bought AS can_be_bought_48 , p3_ . searchable AS searchable_49 , p3_ . show_price AS show_price_50 , p3_ . in_stock_text AS in_stock_text_51 , p3_ . out_of_stock_text AS out_of_stock_text_52 , p3_ . filter_parameter_value_ids AS filter_parameter_value_ids_53 , p3_ . filter_variant_value_ids AS filter_variant_value_ids_54 , p3_ . search_vector_cs AS search_vector_cs_55 , p3_ . search_vector_en AS search_vector_en_56 , p3_ . seo_title AS seo_title_57 , p3_ . seo_description AS seo_description_58 , p3_ . seo_url AS seo_url_59 , p3_ . stock_stock AS stock_stock_60 , p3_ . stock_reserved AS stock_reserved_61 , p3_ . logistic_weight AS logistic_weight_62 , p3_ . logistic_size_width AS logistic_size_width_63 , p3_ . logistic_size_height AS logistic_size_height_64 , p3_ . logistic_size_length AS logistic_size_length_65 , p3_ . price_amount AS price_amount_66 , p3_ . price_currency AS price_currency_67 , p3_ . purchase_price_amount AS purchase_price_amount_68 , p3_ . purchase_price_currency AS purchase_price_currency_69 , c0_ . customer_id AS customer_id_70 , c0_ . shipping_method_id AS shipping_method_id_71 , c0_ . discount_code_id AS discount_code_id_72 , c1_ . cart_id AS cart_id_73 , c1_ . product_variant_id AS product_variant_id_74 , p2_ . product_id AS product_id_75 , p3_ . vat_id AS vat_id_76 , p3_ . main_category_id AS main_category_id_77 FROM cart c0_ LEFT JOIN cart_item c1_ ON c0_ . id = c1_ . cart_id LEFT JOIN product_variant p2_ ON c1_ . product_variant_id = p2_ . id LEFT JOIN product p3_ ON p2_ . product_id = p3_ . id WHERE c0_ . session_id = '658bfc3b4039d97c103114ab634350c2' AND c0_ . status = 'active' ORDER BY c1_ . id ASC ;
Copy
6
0.21 ms
"START TRANSACTION"
"START TRANSACTION" ;
Copy
7
0.81 ms
INSERT INTO cart (id , session_id , status , last_activity_at , email , firstname , lastname , telephone , company_name , cin , vat_id , pickup_point_id , pickup_point_name , note , payment_method , created_at , updated_at , address_street , address_descriptive_number , address_city , address_country , address_zip_code , invoice_street , invoice_descriptive_number , invoice_city , invoice_country , invoice_zip_code , customer_id , shipping_method_id , discount_code_id ) VALUES (? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )
Parameters :
[
"edc3fd59-ce9b-408d-bb6c-ea8d387e14f8 "
"658bfc3b4039d97c103114ab634350c2 "
"active "
"2026-06-12 17:06:27 "
null
null
null
null
null
null
null
null
null
null
null
"2026-06-12 17:06:27 "
"2026-06-12 17:06:27 "
null
null
null
null
null
null
null
null
null
null
null
null
null
]
INSERT INTO cart (
id , session_id , status , last_activity_at ,
email , firstname , lastname , telephone ,
company_name , cin , vat_id , pickup_point_id ,
pickup_point_name , note , payment_method ,
created_at , updated_at , address_street ,
address_descriptive_number , address_city ,
address_country , address_zip_code ,
invoice_street , invoice_descriptive_number ,
invoice_city , invoice_country , invoice_zip_code ,
customer_id , shipping_method_id ,
discount_code_id
)
VALUES
(
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ?
)
Copy
INSERT INTO cart (id , session_id , status , last_activity_at , email , firstname , lastname , telephone , company_name , cin , vat_id , pickup_point_id , pickup_point_name , note , payment_method , created_at , updated_at , address_street , address_descriptive_number , address_city , address_country , address_zip_code , invoice_street , invoice_descriptive_number , invoice_city , invoice_country , invoice_zip_code , customer_id , shipping_method_id , discount_code_id ) VALUES ('edc3fd59-ce9b-408d-bb6c-ea8d387e14f8' , '658bfc3b4039d97c103114ab634350c2' , 'active' , '2026-06-12 17:06:27' , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , '2026-06-12 17:06:27' , '2026-06-12 17:06:27' , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL , NULL );
Copy
8
1.21 ms
"COMMIT"
9
0.79 ms
SELECT t0 . id AS id_1 , t0 . public_id AS public_id_2 , t0 . name AS name_3 , t0 . slug AS slug_4 , t0 . description AS description_5 , t0 . lft AS lft_6 , t0 . lvl AS lvl_7 , t0 . rgt AS rgt_8 , t0 . position AS position_9 , t0 . image_id AS image_id_10 , t0 . tree_root AS tree_root_11 , t0 . parent_id AS parent_id_12 FROM category t0 WHERE t0 . public_id = ? LIMIT 1
SELECT t0 . id AS id_1 , t0 . public_id AS public_id_2 , t0 . name AS name_3 , t0 . slug AS slug_4 , t0 . description AS description_5 , t0 . lft AS lft_6 , t0 . lvl AS lvl_7 , t0 . rgt AS rgt_8 , t0 . position AS position_9 , t0 . image_id AS image_id_10 , t0 . tree_root AS tree_root_11 , t0 . parent_id AS parent_id_12 FROM category t0 WHERE t0 . public_id = '9133' LIMIT 1 ;
Copy
10
0.65 ms
SELECT c0_ . id AS id_0 FROM category c0_ WHERE c0_ . lft > ? AND c0_ . rgt < ? AND c0_ . tree_root = ?
SELECT c0_ . id AS id_0 FROM category c0_ WHERE c0_ . lft > 10 AND c0_ . rgt < 17 AND c0_ . tree_root = '4b2d0c6f-8e5a-4f9b-0d3c-2a7e9f4b5d6c' ;
Copy
11
0.57 ms
SELECT c0_ . id AS id_0 , c0_ . public_id AS public_id_1 , c0_ . name AS name_2 , c0_ . slug AS slug_3 , c0_ . description AS description_4 , c0_ . lft AS lft_5 , c0_ . lvl AS lvl_6 , c0_ . rgt AS rgt_7 , c0_ . position AS position_8 , c0_ . image_id AS image_id_9 , c0_ . tree_root AS tree_root_10 , c0_ . parent_id AS parent_id_11 FROM category c0_ WHERE c0_ . lft < ? AND c0_ . rgt > ? AND c0_ . tree_root = ? ORDER BY c0_ . lft ASC
SELECT c0_ . id AS id_0 , c0_ . public_id AS public_id_1 , c0_ . name AS name_2 , c0_ . slug AS slug_3 , c0_ . description AS description_4 , c0_ . lft AS lft_5 , c0_ . lvl AS lvl_6 , c0_ . rgt AS rgt_7 , c0_ . position AS position_8 , c0_ . image_id AS image_id_9 , c0_ . tree_root AS tree_root_10 , c0_ . parent_id AS parent_id_11 FROM category c0_ WHERE c0_ . lft < 10 AND c0_ . rgt > 17 AND c0_ . tree_root = '4b2d0c6f-8e5a-4f9b-0d3c-2a7e9f4b5d6c' ORDER BY c0_ . lft ASC ;
Copy
12
0.92 ms
SELECT c0_ . id AS id_0 , c0_ . public_id AS public_id_1 , c0_ . name AS name_2 , c0_ . slug AS slug_3 , c0_ . description AS description_4 , c0_ . lft AS lft_5 , c0_ . lvl AS lvl_6 , c0_ . rgt AS rgt_7 , c0_ . position AS position_8 , f1_ . id AS id_9 , f1_ . size AS size_10 , f1_ . mime_type AS mime_type_11 , c0_ . image_id AS image_id_12 , c0_ . tree_root AS tree_root_13 , c0_ . parent_id AS parent_id_14 FROM category c0_ LEFT JOIN file f1_ ON c0_ . image_id = f1_ . id WHERE c0_ . parent_id = ? ORDER BY c0_ . lft ASC
SELECT c0_ . id AS id_0 , c0_ . public_id AS public_id_1 , c0_ . name AS name_2 , c0_ . slug AS slug_3 , c0_ . description AS description_4 , c0_ . lft AS lft_5 , c0_ . lvl AS lvl_6 , c0_ . rgt AS rgt_7 , c0_ . position AS position_8 , f1_ . id AS id_9 , f1_ . size AS size_10 , f1_ . mime_type AS mime_type_11 , c0_ . image_id AS image_id_12 , c0_ . tree_root AS tree_root_13 , c0_ . parent_id AS parent_id_14 FROM category c0_ LEFT JOIN file f1_ ON c0_ . image_id = f1_ . id WHERE c0_ . parent_id = '8d6f4e0b-2a9c-4b3d-4f7e-6c1a3b8d9f0e' ORDER BY c0_ . lft ASC ;
Copy
13
0.52 ms
SELECT c0_ . id AS id_0 , c0_ . public_id AS public_id_1 , c0_ . name AS name_2 , c0_ . slug AS slug_3 , c0_ . description AS description_4 , c0_ . lft AS lft_5 , c0_ . lvl AS lvl_6 , c0_ . rgt AS rgt_7 , c0_ . position AS position_8 , f1_ . id AS id_9 , f1_ . size AS size_10 , f1_ . mime_type AS mime_type_11 , c0_ . image_id AS image_id_12 , c0_ . tree_root AS tree_root_13 , c0_ . parent_id AS parent_id_14 FROM category c0_ LEFT JOIN file f1_ ON c0_ . image_id = f1_ . id WHERE c0_ . parent_id IS NULL ORDER BY c0_ . position ASC
SELECT c0_ . id AS id_0 , c0_ . public_id AS public_id_1 , c0_ . name AS name_2 , c0_ . slug AS slug_3 , c0_ . description AS description_4 , c0_ . lft AS lft_5 , c0_ . lvl AS lvl_6 , c0_ . rgt AS rgt_7 , c0_ . position AS position_8 , f1_ . id AS id_9 , f1_ . size AS size_10 , f1_ . mime_type AS mime_type_11 , c0_ . image_id AS image_id_12 , c0_ . tree_root AS tree_root_13 , c0_ . parent_id AS parent_id_14 FROM category c0_ LEFT JOIN file f1_ ON c0_ . image_id = f1_ . id WHERE c0_ . parent_id IS NULL ORDER BY c0_ . position ASC ;
Copy
14
1.48 ms
SELECT f0_ . id AS id_0 , f0_ . name AS name_1 , f0_ . type AS type_2 , f0_ . is_enabled AS is_enabled_3 , p1_ . id AS id_4 , p1_ . name AS name_5 , p1_ . slug AS slug_6 , p1_ . position AS position_7 , p2_ . id AS id_8 , p2_ . name AS name_9 , p2_ . slug AS slug_10 , p2_ . position AS position_11 , f0_ . entity AS entity_12 , f0_ . parameter_id AS parameter_id_13 , p2_ . parameter_id AS parameter_id_14 FROM filter_configuration f0_ LEFT JOIN parameter p1_ ON f0_ . parameter_id = p1_ . id LEFT JOIN parameter_value p2_ ON p1_ . id = p2_ . parameter_id WHERE (f0_ . is_enabled = ? ) AND f0_ . entity IN ('parameter' ) ORDER BY f0_ . name ASC
SELECT f0_ . id AS id_0 , f0_ . name AS name_1 , f0_ . type AS type_2 , f0_ . is_enabled AS is_enabled_3 , p1_ . id AS id_4 , p1_ . name AS name_5 , p1_ . slug AS slug_6 , p1_ . position AS position_7 , p2_ . id AS id_8 , p2_ . name AS name_9 , p2_ . slug AS slug_10 , p2_ . position AS position_11 , f0_ . entity AS entity_12 , f0_ . parameter_id AS parameter_id_13 , p2_ . parameter_id AS parameter_id_14 FROM filter_configuration f0_ LEFT JOIN parameter p1_ ON f0_ . parameter_id = p1_ . id LEFT JOIN parameter_value p2_ ON p1_ . id = p2_ . parameter_id WHERE (f0_ . is_enabled = 1 ) AND f0_ . entity IN ('parameter' ) ORDER BY f0_ . name ASC ;
Copy
15
1.01 ms
SELECT f0_ . id AS id_0 , f0_ . name AS name_1 , f0_ . type AS type_2 , f0_ . is_enabled AS is_enabled_3 , v1_ . id AS id_4 , v1_ . name AS name_5 , v1_ . slug AS slug_6 , v1_ . type AS type_7 , v1_ . position AS position_8 , v2_ . id AS id_9 , v2_ . name AS name_10 , v2_ . slug AS slug_11 , v2_ . color AS color_12 , v2_ . position AS position_13 , f0_ . entity AS entity_14 , f0_ . variant_id AS variant_id_15 , v2_ . variant_id AS variant_id_16 FROM filter_configuration f0_ LEFT JOIN variant v1_ ON f0_ . variant_id = v1_ . id LEFT JOIN variant_value v2_ ON v1_ . id = v2_ . variant_id WHERE (f0_ . is_enabled = ? ) AND f0_ . entity IN ('variant' ) ORDER BY f0_ . name ASC
SELECT f0_ . id AS id_0 , f0_ . name AS name_1 , f0_ . type AS type_2 , f0_ . is_enabled AS is_enabled_3 , v1_ . id AS id_4 , v1_ . name AS name_5 , v1_ . slug AS slug_6 , v1_ . type AS type_7 , v1_ . position AS position_8 , v2_ . id AS id_9 , v2_ . name AS name_10 , v2_ . slug AS slug_11 , v2_ . color AS color_12 , v2_ . position AS position_13 , f0_ . entity AS entity_14 , f0_ . variant_id AS variant_id_15 , v2_ . variant_id AS variant_id_16 FROM filter_configuration f0_ LEFT JOIN variant v1_ ON f0_ . variant_id = v1_ . id LEFT JOIN variant_value v2_ ON v1_ . id = v2_ . variant_id WHERE (f0_ . is_enabled = 1 ) AND f0_ . entity IN ('variant' ) ORDER BY f0_ . name ASC ;
Copy
16
7.67 ms
SELECT CASE WHEN c0_ . position IS NULL THEN 1 ELSE 0 END AS sclr_0 , p1_ . id AS id_1 , p1_ . public_id AS public_id_2 , p1_ . name AS name_3 , p1_ . description AS description_4 , p1_ . short_description AS short_description_5 , p1_ . code AS code_6 , p1_ . ean AS ean_7 , p1_ . unit AS unit_8 , p1_ . active AS active_9 , p1_ . can_be_bought AS can_be_bought_10 , p1_ . searchable AS searchable_11 , p1_ . show_price AS show_price_12 , p1_ . in_stock_text AS in_stock_text_13 , p1_ . out_of_stock_text AS out_of_stock_text_14 , p1_ . filter_parameter_value_ids AS filter_parameter_value_ids_15 , p1_ . filter_variant_value_ids AS filter_variant_value_ids_16 , p1_ . search_vector_cs AS search_vector_cs_17 , p1_ . search_vector_en AS search_vector_en_18 , p1_ . seo_title AS seo_title_19 , p1_ . seo_description AS seo_description_20 , p1_ . seo_url AS seo_url_21 , p1_ . stock_stock AS stock_stock_22 , p1_ . stock_reserved AS stock_reserved_23 , p1_ . logistic_weight AS logistic_weight_24 , p1_ . logistic_size_width AS logistic_size_width_25 , p1_ . logistic_size_height AS logistic_size_height_26 , p1_ . logistic_size_length AS logistic_size_length_27 , p1_ . price_amount AS price_amount_28 , p1_ . price_currency AS price_currency_29 , p1_ . purchase_price_amount AS purchase_price_amount_30 , p1_ . purchase_price_currency AS purchase_price_currency_31 , p2_ . id AS id_32 , p2_ . code AS code_33 , p2_ . is_default AS is_default_34 , p2_ . weight_modification AS weight_modification_35 , p2_ . price_modification_amount AS price_modification_amount_36 , p2_ . price_modification_currency AS price_modification_currency_37 , p2_ . stock_stock AS stock_stock_38 , p2_ . stock_reserved AS stock_reserved_39 , v3_ . id AS id_40 , v3_ . name AS name_41 , v3_ . slug AS slug_42 , v3_ . color AS color_43 , v3_ . position AS position_44 , v4_ . id AS id_45 , v4_ . name AS name_46 , v4_ . slug AS slug_47 , v4_ . type AS type_48 , v4_ . position AS position_49 , p5_ . id AS id_50 , p5_ . custom_value AS custom_value_51 , p6_ . id AS id_52 , p6_ . name AS name_53 , p6_ . slug AS slug_54 , p6_ . position AS position_55 , p7_ . id AS id_56 , p7_ . name AS name_57 , p7_ . slug AS slug_58 , p7_ . position AS position_59 , c8_ . id AS id_60 , c8_ . public_id AS public_id_61 , c8_ . name AS name_62 , c8_ . slug AS slug_63 , c8_ . description AS description_64 , c8_ . lft AS lft_65 , c8_ . lvl AS lvl_66 , c8_ . rgt AS rgt_67 , c8_ . position AS position_68 , p9_ . id AS id_69 , p9_ . amount AS amount_70 , p9_ . type AS type_71 , p9_ . created_at AS created_at_72 , p9_ . updated_at AS updated_at_73 , c10_ . code AS code_74 , c10_ . is_default AS is_default_75 , c10_ . is_active AS is_active_76 , c10_ . decimal_places AS decimal_places_77 , p1_ . vat_id AS vat_id_78 , p1_ . main_category_id AS main_category_id_79 , p2_ . product_id AS product_id_80 , v3_ . variant_id AS variant_id_81 , p5_ . product_id AS product_id_82 , p5_ . parameter_id AS parameter_id_83 , p5_ . parameter_value_id AS parameter_value_id_84 , p7_ . parameter_id AS parameter_id_85 , c8_ . image_id AS image_id_86 , c8_ . tree_root AS tree_root_87 , c8_ . parent_id AS parent_id_88 , p9_ . product_id AS product_id_89 , p9_ . currency_code AS currency_code_90 FROM product p1_ LEFT JOIN product_variant p2_ ON p1_ . id = p2_ . product_id LEFT JOIN product_variant_variant_value p11_ ON p2_ . id = p11_ . product_variant_id LEFT JOIN variant_value v3_ ON v3_ . id = p11_ . variant_value_id LEFT JOIN variant v4_ ON v3_ . variant_id = v4_ . id LEFT JOIN product_parameter p5_ ON p1_ . id = p5_ . product_id LEFT JOIN parameter p6_ ON p5_ . parameter_id = p6_ . id LEFT JOIN parameter_value p7_ ON p5_ . parameter_value_id = p7_ . id LEFT JOIN category c8_ ON p1_ . main_category_id = c8_ . id LEFT JOIN product_price p9_ ON p1_ . id = p9_ . product_id LEFT JOIN currency c10_ ON p9_ . currency_code = c10_ . code INNER JOIN product_category p13_ ON p1_ . id = p13_ . product_id INNER JOIN category c12_ ON c12_ . id = p13_ . category_id LEFT JOIN category_product_position c0_ ON (c0_ . product_id = p1_ . id AND c0_ . category_id = ? ) WHERE p1_ . active = true AND (SELECT COUNT (* ) FROM product_category p14_ WHERE p14_ . product_id = p1_ . id ) > 0 AND c12_ . id IN (? , ? , ? , ? ) ORDER BY sclr_0 ASC , c0_ . position ASC , (p1_ . name - > > ? ) ASC
Parameters :
[
"8d6f4e0b-2a9c-4b3d-4f7e-6c1a3b8d9f0e "
"5c3e1d7a-9f6b-4a0c-1e4d-3b8f0a5c6e7f "
"6d4f2e8b-0a7c-4b1d-2f5e-4c9a1b6d7f8a "
"7e5a3f9c-1b8d-4c2e-3a6f-5d0b2c7e8a9b "
"8d6f4e0b-2a9c-4b3d-4f7e-6c1a3b8d9f0e "
"cs "
]
SELECT
CASE WHEN c0_ . position IS NULL THEN
1
ELSE
0
END AS sclr_0 ,
p1_ . id AS id_1 ,
p1_ . public_id AS public_id_2 ,
p1_ . name AS name_3 ,
p1_ . description AS description_4 ,
p1_ . short_description AS short_description_5 ,
p1_ . code AS code_6 ,
p1_ . ean AS ean_7 ,
p1_ . unit AS unit_8 ,
p1_ . active AS active_9 ,
p1_ . can_be_bought AS can_be_bought_10 ,
p1_ . searchable AS searchable_11 ,
p1_ . show_price AS show_price_12 ,
p1_ . in_stock_text AS in_stock_text_13 ,
p1_ . out_of_stock_text AS out_of_stock_text_14 ,
p1_ . filter_parameter_value_ids AS filter_parameter_value_ids_15 ,
p1_ . filter_variant_value_ids AS filter_variant_value_ids_16 ,
p1_ . search_vector_cs AS search_vector_cs_17 ,
p1_ . search_vector_en AS search_vector_en_18 ,
p1_ . seo_title AS seo_title_19 ,
p1_ . seo_description AS seo_description_20 ,
p1_ . seo_url AS seo_url_21 ,
p1_ . stock_stock AS stock_stock_22 ,
p1_ . stock_reserved AS stock_reserved_23 ,
p1_ . logistic_weight AS logistic_weight_24 ,
p1_ . logistic_size_width AS logistic_size_width_25 ,
p1_ . logistic_size_height AS logistic_size_height_26 ,
p1_ . logistic_size_length AS logistic_size_length_27 ,
p1_ . price_amount AS price_amount_28 ,
p1_ . price_currency AS price_currency_29 ,
p1_ . purchase_price_amount AS purchase_price_amount_30 ,
p1_ . purchase_price_currency AS purchase_price_currency_31 ,
p2_ . id AS id_32 ,
p2_ . code AS code_33 ,
p2_ . is_default AS is_default_34 ,
p2_ . weight_modification AS weight_modification_35 ,
p2_ . price_modification_amount AS price_modification_amount_36 ,
p2_ . price_modification_currency AS price_modification_currency_37 ,
p2_ . stock_stock AS stock_stock_38 ,
p2_ . stock_reserved AS stock_reserved_39 ,
v3_ . id AS id_40 ,
v3_ . name AS name_41 ,
v3_ . slug AS slug_42 ,
v3_ . color AS color_43 ,
v3_ . position AS position_44 ,
v4_ . id AS id_45 ,
v4_ . name AS name_46 ,
v4_ . slug AS slug_47 ,
v4_ . type AS type_48 ,
v4_ . position AS position_49 ,
p5_ . id AS id_50 ,
p5_ . custom_value AS custom_value_51 ,
p6_ . id AS id_52 ,
p6_ . name AS name_53 ,
p6_ . slug AS slug_54 ,
p6_ . position AS position_55 ,
p7_ . id AS id_56 ,
p7_ . name AS name_57 ,
p7_ . slug AS slug_58 ,
p7_ . position AS position_59 ,
c8_ . id AS id_60 ,
c8_ . public_id AS public_id_61 ,
c8_ . name AS name_62 ,
c8_ . slug AS slug_63 ,
c8_ . description AS description_64 ,
c8_ . lft AS lft_65 ,
c8_ . lvl AS lvl_66 ,
c8_ . rgt AS rgt_67 ,
c8_ . position AS position_68 ,
p9_ . id AS id_69 ,
p9_ . amount AS amount_70 ,
p9_ . type AS type_71 ,
p9_ . created_at AS created_at_72 ,
p9_ . updated_at AS updated_at_73 ,
c10_ . code AS code_74 ,
c10_ . is_default AS is_default_75 ,
c10_ . is_active AS is_active_76 ,
c10_ . decimal_places AS decimal_places_77 ,
p1_ . vat_id AS vat_id_78 ,
p1_ . main_category_id AS main_category_id_79 ,
p2_ . product_id AS product_id_80 ,
v3_ . variant_id AS variant_id_81 ,
p5_ . product_id AS product_id_82 ,
p5_ . parameter_id AS parameter_id_83 ,
p5_ . parameter_value_id AS parameter_value_id_84 ,
p7_ . parameter_id AS parameter_id_85 ,
c8_ . image_id AS image_id_86 ,
c8_ . tree_root AS tree_root_87 ,
c8_ . parent_id AS parent_id_88 ,
p9_ . product_id AS product_id_89 ,
p9_ . currency_code AS currency_code_90
FROM
product p1_
LEFT JOIN product_variant p2_ ON p1_ . id = p2_ . product_id
LEFT JOIN product_variant_variant_value p11_ ON p2_ . id = p11_ . product_variant_id
LEFT JOIN variant_value v3_ ON v3_ . id = p11_ . variant_value_id
LEFT JOIN variant v4_ ON v3_ . variant_id = v4_ . id
LEFT JOIN product_parameter p5_ ON p1_ . id = p5_ . product_id
LEFT JOIN parameter p6_ ON p5_ . parameter_id = p6_ . id
LEFT JOIN parameter_value p7_ ON p5_ . parameter_value_id = p7_ . id
LEFT JOIN category c8_ ON p1_ . main_category_id = c8_ . id
LEFT JOIN product_price p9_ ON p1_ . id = p9_ . product_id
LEFT JOIN currency c10_ ON p9_ . currency_code = c10_ . code
INNER JOIN product_category p13_ ON p1_ . id = p13_ . product_id
INNER JOIN category c12_ ON c12_ . id = p13_ . category_id
LEFT JOIN category_product_position c0_ ON (
c0_ . product_id = p1_ . id
AND c0_ . category_id = ?
)
WHERE
p1_ . active = true
AND (
SELECT
COUNT (* )
FROM
product_category p14_
WHERE
p14_ . product_id = p1_ . id
) > 0
AND c12_ . id IN (? , ? , ? , ? )
ORDER BY
sclr_0 ASC ,
c0_ . position ASC ,
(p1_ . name - > > ? ) ASC
Copy
SELECT CASE WHEN c0_ . position IS NULL THEN 1 ELSE 0 END AS sclr_0 , p1_ . id AS id_1 , p1_ . public_id AS public_id_2 , p1_ . name AS name_3 , p1_ . description AS description_4 , p1_ . short_description AS short_description_5 , p1_ . code AS code_6 , p1_ . ean AS ean_7 , p1_ . unit AS unit_8 , p1_ . active AS active_9 , p1_ . can_be_bought AS can_be_bought_10 , p1_ . searchable AS searchable_11 , p1_ . show_price AS show_price_12 , p1_ . in_stock_text AS in_stock_text_13 , p1_ . out_of_stock_text AS out_of_stock_text_14 , p1_ . filter_parameter_value_ids AS filter_parameter_value_ids_15 , p1_ . filter_variant_value_ids AS filter_variant_value_ids_16 , p1_ . search_vector_cs AS search_vector_cs_17 , p1_ . search_vector_en AS search_vector_en_18 , p1_ . seo_title AS seo_title_19 , p1_ . seo_description AS seo_description_20 , p1_ . seo_url AS seo_url_21 , p1_ . stock_stock AS stock_stock_22 , p1_ . stock_reserved AS stock_reserved_23 , p1_ . logistic_weight AS logistic_weight_24 , p1_ . logistic_size_width AS logistic_size_width_25 , p1_ . logistic_size_height AS logistic_size_height_26 , p1_ . logistic_size_length AS logistic_size_length_27 , p1_ . price_amount AS price_amount_28 , p1_ . price_currency AS price_currency_29 , p1_ . purchase_price_amount AS purchase_price_amount_30 , p1_ . purchase_price_currency AS purchase_price_currency_31 , p2_ . id AS id_32 , p2_ . code AS code_33 , p2_ . is_default AS is_default_34 , p2_ . weight_modification AS weight_modification_35 , p2_ . price_modification_amount AS price_modification_amount_36 , p2_ . price_modification_currency AS price_modification_currency_37 , p2_ . stock_stock AS stock_stock_38 , p2_ . stock_reserved AS stock_reserved_39 , v3_ . id AS id_40 , v3_ . name AS name_41 , v3_ . slug AS slug_42 , v3_ . color AS color_43 , v3_ . position AS position_44 , v4_ . id AS id_45 , v4_ . name AS name_46 , v4_ . slug AS slug_47 , v4_ . type AS type_48 , v4_ . position AS position_49 , p5_ . id AS id_50 , p5_ . custom_value AS custom_value_51 , p6_ . id AS id_52 , p6_ . name AS name_53 , p6_ . slug AS slug_54 , p6_ . position AS position_55 , p7_ . id AS id_56 , p7_ . name AS name_57 , p7_ . slug AS slug_58 , p7_ . position AS position_59 , c8_ . id AS id_60 , c8_ . public_id AS public_id_61 , c8_ . name AS name_62 , c8_ . slug AS slug_63 , c8_ . description AS description_64 , c8_ . lft AS lft_65 , c8_ . lvl AS lvl_66 , c8_ . rgt AS rgt_67 , c8_ . position AS position_68 , p9_ . id AS id_69 , p9_ . amount AS amount_70 , p9_ . type AS type_71 , p9_ . created_at AS created_at_72 , p9_ . updated_at AS updated_at_73 , c10_ . code AS code_74 , c10_ . is_default AS is_default_75 , c10_ . is_active AS is_active_76 , c10_ . decimal_places AS decimal_places_77 , p1_ . vat_id AS vat_id_78 , p1_ . main_category_id AS main_category_id_79 , p2_ . product_id AS product_id_80 , v3_ . variant_id AS variant_id_81 , p5_ . product_id AS product_id_82 , p5_ . parameter_id AS parameter_id_83 , p5_ . parameter_value_id AS parameter_value_id_84 , p7_ . parameter_id AS parameter_id_85 , c8_ . image_id AS image_id_86 , c8_ . tree_root AS tree_root_87 , c8_ . parent_id AS parent_id_88 , p9_ . product_id AS product_id_89 , p9_ . currency_code AS currency_code_90 FROM product p1_ LEFT JOIN product_variant p2_ ON p1_ . id = p2_ . product_id LEFT JOIN product_variant_variant_value p11_ ON p2_ . id = p11_ . product_variant_id LEFT JOIN variant_value v3_ ON v3_ . id = p11_ . variant_value_id LEFT JOIN variant v4_ ON v3_ . variant_id = v4_ . id LEFT JOIN product_parameter p5_ ON p1_ . id = p5_ . product_id LEFT JOIN parameter p6_ ON p5_ . parameter_id = p6_ . id LEFT JOIN parameter_value p7_ ON p5_ . parameter_value_id = p7_ . id LEFT JOIN category c8_ ON p1_ . main_category_id = c8_ . id LEFT JOIN product_price p9_ ON p1_ . id = p9_ . product_id LEFT JOIN currency c10_ ON p9_ . currency_code = c10_ . code INNER JOIN product_category p13_ ON p1_ . id = p13_ . product_id INNER JOIN category c12_ ON c12_ . id = p13_ . category_id LEFT JOIN category_product_position c0_ ON (c0_ . product_id = p1_ . id AND c0_ . category_id = '8d6f4e0b-2a9c-4b3d-4f7e-6c1a3b8d9f0e' ) WHERE p1_ . active = true AND (SELECT COUNT (* ) FROM product_category p14_ WHERE p14_ . product_id = p1_ . id ) > 0 AND c12_ . id IN ('5c3e1d7a-9f6b-4a0c-1e4d-3b8f0a5c6e7f' , '6d4f2e8b-0a7c-4b1d-2f5e-4c9a1b6d7f8a' , '7e5a3f9c-1b8d-4c2e-3a6f-5d0b2c7e8a9b' , '8d6f4e0b-2a9c-4b3d-4f7e-6c1a3b8d9f0e' ) ORDER BY sclr_0 ASC , c0_ . position ASC , (p1_ . name - > > 'cs' ) ASC ;
Copy
17
1.12 ms
SELECT c0_ . id AS id_0 , c0_ . session_id AS session_id_1 , c0_ . status AS status_2 , c0_ . last_activity_at AS last_activity_at_3 , c0_ . email AS email_4 , c0_ . firstname AS firstname_5 , c0_ . lastname AS lastname_6 , c0_ . telephone AS telephone_7 , c0_ . company_name AS company_name_8 , c0_ . cin AS cin_9 , c0_ . vat_id AS vat_id_10 , c0_ . pickup_point_id AS pickup_point_id_11 , c0_ . pickup_point_name AS pickup_point_name_12 , c0_ . note AS note_13 , c0_ . payment_method AS payment_method_14 , c0_ . created_at AS created_at_15 , c0_ . updated_at AS updated_at_16 , c0_ . address_street AS address_street_17 , c0_ . address_descriptive_number AS address_descriptive_number_18 , c0_ . address_city AS address_city_19 , c0_ . address_country AS address_country_20 , c0_ . address_zip_code AS address_zip_code_21 , c0_ . invoice_street AS invoice_street_22 , c0_ . invoice_descriptive_number AS invoice_descriptive_number_23 , c0_ . invoice_city AS invoice_city_24 , c0_ . invoice_country AS invoice_country_25 , c0_ . invoice_zip_code AS invoice_zip_code_26 , c1_ . id AS id_27 , c1_ . quantity AS quantity_28 , c1_ . created_at AS created_at_29 , c1_ . updated_at AS updated_at_30 , p2_ . id AS id_31 , p2_ . code AS code_32 , p2_ . is_default AS is_default_33 , p2_ . weight_modification AS weight_modification_34 , p2_ . price_modification_amount AS price_modification_amount_35 , p2_ . price_modification_currency AS price_modification_currency_36 , p2_ . stock_stock AS stock_stock_37 , p2_ . stock_reserved AS stock_reserved_38 , p3_ . id AS id_39 , p3_ . public_id AS public_id_40 , p3_ . name AS name_41 , p3_ . description AS description_42 , p3_ . short_description AS short_description_43 , p3_ . code AS code_44 , p3_ . ean AS ean_45 , p3_ . unit AS unit_46 , p3_ . active AS active_47 , p3_ . can_be_bought AS can_be_bought_48 , p3_ . searchable AS searchable_49 , p3_ . show_price AS show_price_50 , p3_ . in_stock_text AS in_stock_text_51 , p3_ . out_of_stock_text AS out_of_stock_text_52 , p3_ . filter_parameter_value_ids AS filter_parameter_value_ids_53 , p3_ . filter_variant_value_ids AS filter_variant_value_ids_54 , p3_ . search_vector_cs AS search_vector_cs_55 , p3_ . search_vector_en AS search_vector_en_56 , p3_ . seo_title AS seo_title_57 , p3_ . seo_description AS seo_description_58 , p3_ . seo_url AS seo_url_59 , p3_ . stock_stock AS stock_stock_60 , p3_ . stock_reserved AS stock_reserved_61 , p3_ . logistic_weight AS logistic_weight_62 , p3_ . logistic_size_width AS logistic_size_width_63 , p3_ . logistic_size_height AS logistic_size_height_64 , p3_ . logistic_size_length AS logistic_size_length_65 , p3_ . price_amount AS price_amount_66 , p3_ . price_currency AS price_currency_67 , p3_ . purchase_price_amount AS purchase_price_amount_68 , p3_ . purchase_price_currency AS purchase_price_currency_69 , c0_ . customer_id AS customer_id_70 , c0_ . shipping_method_id AS shipping_method_id_71 , c0_ . discount_code_id AS discount_code_id_72 , c1_ . cart_id AS cart_id_73 , c1_ . product_variant_id AS product_variant_id_74 , p2_ . product_id AS product_id_75 , p3_ . vat_id AS vat_id_76 , p3_ . main_category_id AS main_category_id_77 FROM cart c0_ LEFT JOIN cart_item c1_ ON c0_ . id = c1_ . cart_id LEFT JOIN product_variant p2_ ON c1_ . product_variant_id = p2_ . id LEFT JOIN product p3_ ON p2_ . product_id = p3_ . id WHERE c0_ . session_id = ? AND c0_ . status = ? ORDER BY c1_ . id ASC
Parameters :
[
"658bfc3b4039d97c103114ab634350c2 "
"active "
]
SELECT
c0_ . id AS id_0 ,
c0_ . session_id AS session_id_1 ,
c0_ . status AS status_2 ,
c0_ . last_activity_at AS last_activity_at_3 ,
c0_ . email AS email_4 ,
c0_ . firstname AS firstname_5 ,
c0_ . lastname AS lastname_6 ,
c0_ . telephone AS telephone_7 ,
c0_ . company_name AS company_name_8 ,
c0_ . cin AS cin_9 ,
c0_ . vat_id AS vat_id_10 ,
c0_ . pickup_point_id AS pickup_point_id_11 ,
c0_ . pickup_point_name AS pickup_point_name_12 ,
c0_ . note AS note_13 ,
c0_ . payment_method AS payment_method_14 ,
c0_ . created_at AS created_at_15 ,
c0_ . updated_at AS updated_at_16 ,
c0_ . address_street AS address_street_17 ,
c0_ . address_descriptive_number AS address_descriptive_number_18 ,
c0_ . address_city AS address_city_19 ,
c0_ . address_country AS address_country_20 ,
c0_ . address_zip_code AS address_zip_code_21 ,
c0_ . invoice_street AS invoice_street_22 ,
c0_ . invoice_descriptive_number AS invoice_descriptive_number_23 ,
c0_ . invoice_city AS invoice_city_24 ,
c0_ . invoice_country AS invoice_country_25 ,
c0_ . invoice_zip_code AS invoice_zip_code_26 ,
c1_ . id AS id_27 ,
c1_ . quantity AS quantity_28 ,
c1_ . created_at AS created_at_29 ,
c1_ . updated_at AS updated_at_30 ,
p2_ . id AS id_31 ,
p2_ . code AS code_32 ,
p2_ . is_default AS is_default_33 ,
p2_ . weight_modification AS weight_modification_34 ,
p2_ . price_modification_amount AS price_modification_amount_35 ,
p2_ . price_modification_currency AS price_modification_currency_36 ,
p2_ . stock_stock AS stock_stock_37 ,
p2_ . stock_reserved AS stock_reserved_38 ,
p3_ . id AS id_39 ,
p3_ . public_id AS public_id_40 ,
p3_ . name AS name_41 ,
p3_ . description AS description_42 ,
p3_ . short_description AS short_description_43 ,
p3_ . code AS code_44 ,
p3_ . ean AS ean_45 ,
p3_ . unit AS unit_46 ,
p3_ . active AS active_47 ,
p3_ . can_be_bought AS can_be_bought_48 ,
p3_ . searchable AS searchable_49 ,
p3_ . show_price AS show_price_50 ,
p3_ . in_stock_text AS in_stock_text_51 ,
p3_ . out_of_stock_text AS out_of_stock_text_52 ,
p3_ . filter_parameter_value_ids AS filter_parameter_value_ids_53 ,
p3_ . filter_variant_value_ids AS filter_variant_value_ids_54 ,
p3_ . search_vector_cs AS search_vector_cs_55 ,
p3_ . search_vector_en AS search_vector_en_56 ,
p3_ . seo_title AS seo_title_57 ,
p3_ . seo_description AS seo_description_58 ,
p3_ . seo_url AS seo_url_59 ,
p3_ . stock_stock AS stock_stock_60 ,
p3_ . stock_reserved AS stock_reserved_61 ,
p3_ . logistic_weight AS logistic_weight_62 ,
p3_ . logistic_size_width AS logistic_size_width_63 ,
p3_ . logistic_size_height AS logistic_size_height_64 ,
p3_ . logistic_size_length AS logistic_size_length_65 ,
p3_ . price_amount AS price_amount_66 ,
p3_ . price_currency AS price_currency_67 ,
p3_ . purchase_price_amount AS purchase_price_amount_68 ,
p3_ . purchase_price_currency AS purchase_price_currency_69 ,
c0_ . customer_id AS customer_id_70 ,
c0_ . shipping_method_id AS shipping_method_id_71 ,
c0_ . discount_code_id AS discount_code_id_72 ,
c1_ . cart_id AS cart_id_73 ,
c1_ . product_variant_id AS product_variant_id_74 ,
p2_ . product_id AS product_id_75 ,
p3_ . vat_id AS vat_id_76 ,
p3_ . main_category_id AS main_category_id_77
FROM
cart c0_
LEFT JOIN cart_item c1_ ON c0_ . id = c1_ . cart_id
LEFT JOIN product_variant p2_ ON c1_ . product_variant_id = p2_ . id
LEFT JOIN product p3_ ON p2_ . product_id = p3_ . id
WHERE
c0_ . session_id = ?
AND c0_ . status = ?
ORDER BY
c1_ . id ASC
Copy
SELECT c0_ . id AS id_0 , c0_ . session_id AS session_id_1 , c0_ . status AS status_2 , c0_ . last_activity_at AS last_activity_at_3 , c0_ . email AS email_4 , c0_ . firstname AS firstname_5 , c0_ . lastname AS lastname_6 , c0_ . telephone AS telephone_7 , c0_ . company_name AS company_name_8 , c0_ . cin AS cin_9 , c0_ . vat_id AS vat_id_10 , c0_ . pickup_point_id AS pickup_point_id_11 , c0_ . pickup_point_name AS pickup_point_name_12 , c0_ . note AS note_13 , c0_ . payment_method AS payment_method_14 , c0_ . created_at AS created_at_15 , c0_ . updated_at AS updated_at_16 , c0_ . address_street AS address_street_17 , c0_ . address_descriptive_number AS address_descriptive_number_18 , c0_ . address_city AS address_city_19 , c0_ . address_country AS address_country_20 , c0_ . address_zip_code AS address_zip_code_21 , c0_ . invoice_street AS invoice_street_22 , c0_ . invoice_descriptive_number AS invoice_descriptive_number_23 , c0_ . invoice_city AS invoice_city_24 , c0_ . invoice_country AS invoice_country_25 , c0_ . invoice_zip_code AS invoice_zip_code_26 , c1_ . id AS id_27 , c1_ . quantity AS quantity_28 , c1_ . created_at AS created_at_29 , c1_ . updated_at AS updated_at_30 , p2_ . id AS id_31 , p2_ . code AS code_32 , p2_ . is_default AS is_default_33 , p2_ . weight_modification AS weight_modification_34 , p2_ . price_modification_amount AS price_modification_amount_35 , p2_ . price_modification_currency AS price_modification_currency_36 , p2_ . stock_stock AS stock_stock_37 , p2_ . stock_reserved AS stock_reserved_38 , p3_ . id AS id_39 , p3_ . public_id AS public_id_40 , p3_ . name AS name_41 , p3_ . description AS description_42 , p3_ . short_description AS short_description_43 , p3_ . code AS code_44 , p3_ . ean AS ean_45 , p3_ . unit AS unit_46 , p3_ . active AS active_47 , p3_ . can_be_bought AS can_be_bought_48 , p3_ . searchable AS searchable_49 , p3_ . show_price AS show_price_50 , p3_ . in_stock_text AS in_stock_text_51 , p3_ . out_of_stock_text AS out_of_stock_text_52 , p3_ . filter_parameter_value_ids AS filter_parameter_value_ids_53 , p3_ . filter_variant_value_ids AS filter_variant_value_ids_54 , p3_ . search_vector_cs AS search_vector_cs_55 , p3_ . search_vector_en AS search_vector_en_56 , p3_ . seo_title AS seo_title_57 , p3_ . seo_description AS seo_description_58 , p3_ . seo_url AS seo_url_59 , p3_ . stock_stock AS stock_stock_60 , p3_ . stock_reserved AS stock_reserved_61 , p3_ . logistic_weight AS logistic_weight_62 , p3_ . logistic_size_width AS logistic_size_width_63 , p3_ . logistic_size_height AS logistic_size_height_64 , p3_ . logistic_size_length AS logistic_size_length_65 , p3_ . price_amount AS price_amount_66 , p3_ . price_currency AS price_currency_67 , p3_ . purchase_price_amount AS purchase_price_amount_68 , p3_ . purchase_price_currency AS purchase_price_currency_69 , c0_ . customer_id AS customer_id_70 , c0_ . shipping_method_id AS shipping_method_id_71 , c0_ . discount_code_id AS discount_code_id_72 , c1_ . cart_id AS cart_id_73 , c1_ . product_variant_id AS product_variant_id_74 , p2_ . product_id AS product_id_75 , p3_ . vat_id AS vat_id_76 , p3_ . main_category_id AS main_category_id_77 FROM cart c0_ LEFT JOIN cart_item c1_ ON c0_ . id = c1_ . cart_id LEFT JOIN product_variant p2_ ON c1_ . product_variant_id = p2_ . id LEFT JOIN product p3_ ON p2_ . product_id = p3_ . id WHERE c0_ . session_id = '658bfc3b4039d97c103114ab634350c2' AND c0_ . status = 'active' ORDER BY c1_ . id ASC ;
Copy
18
0.47 ms
SELECT t0 . id AS id_1 , t0 . public_id AS public_id_2 , t0 . name AS name_3 , t0 . slug AS slug_4 , t0 . description AS description_5 , t0 . lft AS lft_6 , t0 . lvl AS lvl_7 , t0 . rgt AS rgt_8 , t0 . position AS position_9 , t0 . image_id AS image_id_10 , t0 . tree_root AS tree_root_11 , t0 . parent_id AS parent_id_12 FROM category t0 INNER JOIN product_category ON t0 . id = product_category . category_id WHERE product_category . product_id = ?
Parameters :
[
"7d3e9f2b-4c8a-6e1d-9f5a-2b7c4e8d1a6f "
]
SELECT t0 . id AS id_1 , t0 . public_id AS public_id_2 , t0 . name AS name_3 , t0 . slug AS slug_4 , t0 . description AS description_5 , t0 . lft AS lft_6 , t0 . lvl AS lvl_7 , t0 . rgt AS rgt_8 , t0 . position AS position_9 , t0 . image_id AS image_id_10 , t0 . tree_root AS tree_root_11 , t0 . parent_id AS parent_id_12 FROM category t0 INNER JOIN product_category ON t0 . id = product_category . category_id WHERE product_category . product_id = '7d3e9f2b-4c8a-6e1d-9f5a-2b7c4e8d1a6f' ;
Copy
19
0.44 ms
SELECT t0 . id AS id_1 , t0 . public_id AS public_id_2 , t0 . name AS name_3 , t0 . slug AS slug_4 , t0 . description AS description_5 , t0 . lft AS lft_6 , t0 . lvl AS lvl_7 , t0 . rgt AS rgt_8 , t0 . position AS position_9 , t0 . image_id AS image_id_10 , t0 . tree_root AS tree_root_11 , t0 . parent_id AS parent_id_12 FROM category t0 INNER JOIN product_category ON t0 . id = product_category . category_id WHERE product_category . product_id = ?
Parameters :
[
"375716f5-bea6-4773-a211-135132f63f89 "
]
SELECT t0 . id AS id_1 , t0 . public_id AS public_id_2 , t0 . name AS name_3 , t0 . slug AS slug_4 , t0 . description AS description_5 , t0 . lft AS lft_6 , t0 . lvl AS lvl_7 , t0 . rgt AS rgt_8 , t0 . position AS position_9 , t0 . image_id AS image_id_10 , t0 . tree_root AS tree_root_11 , t0 . parent_id AS parent_id_12 FROM category t0 INNER JOIN product_category ON t0 . id = product_category . category_id WHERE product_category . product_id = '375716f5-bea6-4773-a211-135132f63f89' ;
Copy
20
0.37 ms
SELECT t0 . id AS id_1 , t0 . public_id AS public_id_2 , t0 . name AS name_3 , t0 . slug AS slug_4 , t0 . description AS description_5 , t0 . lft AS lft_6 , t0 . lvl AS lvl_7 , t0 . rgt AS rgt_8 , t0 . position AS position_9 , t0 . image_id AS image_id_10 , t0 . tree_root AS tree_root_11 , t0 . parent_id AS parent_id_12 FROM category t0 INNER JOIN product_category ON t0 . id = product_category . category_id WHERE product_category . product_id = ?
Parameters :
[
"5e59db33-d2d4-4c37-b6f5-8949dd3ebf87 "
]
SELECT t0 . id AS id_1 , t0 . public_id AS public_id_2 , t0 . name AS name_3 , t0 . slug AS slug_4 , t0 . description AS description_5 , t0 . lft AS lft_6 , t0 . lvl AS lvl_7 , t0 . rgt AS rgt_8 , t0 . position AS position_9 , t0 . image_id AS image_id_10 , t0 . tree_root AS tree_root_11 , t0 . parent_id AS parent_id_12 FROM category t0 INNER JOIN product_category ON t0 . id = product_category . category_id WHERE product_category . product_id = '5e59db33-d2d4-4c37-b6f5-8949dd3ebf87' ;
Copy
21
0.34 ms
SELECT t0 . id AS id_1 , t0 . public_id AS public_id_2 , t0 . name AS name_3 , t0 . slug AS slug_4 , t0 . description AS description_5 , t0 . lft AS lft_6 , t0 . lvl AS lvl_7 , t0 . rgt AS rgt_8 , t0 . position AS position_9 , t0 . image_id AS image_id_10 , t0 . tree_root AS tree_root_11 , t0 . parent_id AS parent_id_12 FROM category t0 INNER JOIN product_category ON t0 . id = product_category . category_id WHERE product_category . product_id = ?
Parameters :
[
"46f9b13b-30a8-4646-ad0a-17311d2d52cd "
]
SELECT t0 . id AS id_1 , t0 . public_id AS public_id_2 , t0 . name AS name_3 , t0 . slug AS slug_4 , t0 . description AS description_5 , t0 . lft AS lft_6 , t0 . lvl AS lvl_7 , t0 . rgt AS rgt_8 , t0 . position AS position_9 , t0 . image_id AS image_id_10 , t0 . tree_root AS tree_root_11 , t0 . parent_id AS parent_id_12 FROM category t0 INNER JOIN product_category ON t0 . id = product_category . category_id WHERE product_category . product_id = '46f9b13b-30a8-4646-ad0a-17311d2d52cd' ;
Copy
22
0.34 ms
SELECT t0 . id AS id_1 , t0 . public_id AS public_id_2 , t0 . name AS name_3 , t0 . slug AS slug_4 , t0 . description AS description_5 , t0 . lft AS lft_6 , t0 . lvl AS lvl_7 , t0 . rgt AS rgt_8 , t0 . position AS position_9 , t0 . image_id AS image_id_10 , t0 . tree_root AS tree_root_11 , t0 . parent_id AS parent_id_12 FROM category t0 INNER JOIN product_category ON t0 . id = product_category . category_id WHERE product_category . product_id = ?
Parameters :
[
"cb798ac5-9cc6-455c-981c-5f8ddb847048 "
]
SELECT t0 . id AS id_1 , t0 . public_id AS public_id_2 , t0 . name AS name_3 , t0 . slug AS slug_4 , t0 . description AS description_5 , t0 . lft AS lft_6 , t0 . lvl AS lvl_7 , t0 . rgt AS rgt_8 , t0 . position AS position_9 , t0 . image_id AS image_id_10 , t0 . tree_root AS tree_root_11 , t0 . parent_id AS parent_id_12 FROM category t0 INNER JOIN product_category ON t0 . id = product_category . category_id WHERE product_category . product_id = 'cb798ac5-9cc6-455c-981c-5f8ddb847048' ;
Copy
23
1.61 ms
SELECT d0_ . id AS id_0 , d0_ . name AS name_1 , d0_ . code AS code_2 , d0_ . target AS target_3 , d0_ . type AS type_4 , d0_ . value AS value_5 , d0_ . active_from AS active_from_6 , d0_ . active_to AS active_to_7 , d0_ . minimum_quantity AS minimum_quantity_8 , d0_ . active AS active_9 , p1_ . id AS id_10 , p1_ . public_id AS public_id_11 , p1_ . name AS name_12 , p1_ . description AS description_13 , p1_ . short_description AS short_description_14 , p1_ . code AS code_15 , p1_ . ean AS ean_16 , p1_ . unit AS unit_17 , p1_ . active AS active_18 , p1_ . can_be_bought AS can_be_bought_19 , p1_ . searchable AS searchable_20 , p1_ . show_price AS show_price_21 , p1_ . in_stock_text AS in_stock_text_22 , p1_ . out_of_stock_text AS out_of_stock_text_23 , p1_ . filter_parameter_value_ids AS filter_parameter_value_ids_24 , p1_ . filter_variant_value_ids AS filter_variant_value_ids_25 , p1_ . search_vector_cs AS search_vector_cs_26 , p1_ . search_vector_en AS search_vector_en_27 , p1_ . seo_title AS seo_title_28 , p1_ . seo_description AS seo_description_29 , p1_ . seo_url AS seo_url_30 , p1_ . stock_stock AS stock_stock_31 , p1_ . stock_reserved AS stock_reserved_32 , p1_ . logistic_weight AS logistic_weight_33 , p1_ . logistic_size_width AS logistic_size_width_34 , p1_ . logistic_size_height AS logistic_size_height_35 , p1_ . logistic_size_length AS logistic_size_length_36 , p1_ . price_amount AS price_amount_37 , p1_ . price_currency AS price_currency_38 , p1_ . purchase_price_amount AS purchase_price_amount_39 , p1_ . purchase_price_currency AS purchase_price_currency_40 , p2_ . id AS id_41 , p2_ . code AS code_42 , p2_ . is_default AS is_default_43 , p2_ . weight_modification AS weight_modification_44 , p2_ . price_modification_amount AS price_modification_amount_45 , p2_ . price_modification_currency AS price_modification_currency_46 , p2_ . stock_stock AS stock_stock_47 , p2_ . stock_reserved AS stock_reserved_48 , c3_ . id AS id_49 , c3_ . public_id AS public_id_50 , c3_ . name AS name_51 , c3_ . slug AS slug_52 , c3_ . description AS description_53 , c3_ . lft AS lft_54 , c3_ . lvl AS lvl_55 , c3_ . rgt AS rgt_56 , c3_ . position AS position_57 , d0_ . product_id AS product_id_58 , d0_ . product_variant_id AS product_variant_id_59 , d0_ . category_id AS category_id_60 , d0_ . customer_group_id AS customer_group_id_61 , p1_ . vat_id AS vat_id_62 , p1_ . main_category_id AS main_category_id_63 , p2_ . product_id AS product_id_64 , c3_ . image_id AS image_id_65 , c3_ . tree_root AS tree_root_66 , c3_ . parent_id AS parent_id_67 FROM discount d0_ LEFT JOIN product p1_ ON d0_ . product_id = p1_ . id LEFT JOIN product_variant p2_ ON d0_ . product_variant_id = p2_ . id LEFT JOIN category c3_ ON d0_ . category_id = c3_ . id WHERE d0_ . active = ? AND d0_ . code IS NULL AND ((d0_ . active_from IS NULL OR d0_ . active_from < = ? )) AND ((d0_ . active_to IS NULL OR d0_ . active_to > = ? )) AND d0_ . customer_group_id IS NULL AND ((d0_ . target = ? AND d0_ . product_variant_id IN (? , ? , ? , ? , ? )) OR (d0_ . target = ? AND d0_ . product_id IN (? , ? , ? , ? , ? )) OR (d0_ . target = ? AND d0_ . category_id IN (SELECT c4_ . id FROM category c4_ WHERE EXISTS (SELECT c5_ . id FROM category c5_ WHERE c5_ . id IN (? , ? ) AND c5_ . tree_root = c4_ . tree_root AND c5_ . lft > = c4_ . lft AND c5_ . rgt < = c4_ . rgt ))))
Parameters :
[
1
"2026-06-12 17:06:27 "
"2026-06-12 17:06:27 "
"product_variant "
"3cfc1115-3c8c-4463-ba40-92afeb8d18c5 "
"b14f00df-fdb9-415f-950f-b9cd8705525f "
"6ce4fc87-e09f-4e65-97d4-40e8c809c399 "
"1d203df6-529c-4420-a050-30b8e54a3ea3 "
"e9273af0-315f-481e-97f4-56e7ca9ef95c "
"product "
"7d3e9f2b-4c8a-6e1d-9f5a-2b7c4e8d1a6f "
"375716f5-bea6-4773-a211-135132f63f89 "
"5e59db33-d2d4-4c37-b6f5-8949dd3ebf87 "
"46f9b13b-30a8-4646-ad0a-17311d2d52cd "
"cb798ac5-9cc6-455c-981c-5f8ddb847048 "
"category "
"6f4b2a8d-0c7e-4d1f-2b5a-4e9c1d6f7b8a "
"5c3e1d7a-9f6b-4a0c-1e4d-3b8f0a5c6e7f "
]
SELECT
d0_ . id AS id_0 ,
d0_ . name AS name_1 ,
d0_ . code AS code_2 ,
d0_ . target AS target_3 ,
d0_ . type AS type_4 ,
d0_ . value AS value_5 ,
d0_ . active_from AS active_from_6 ,
d0_ . active_to AS active_to_7 ,
d0_ . minimum_quantity AS minimum_quantity_8 ,
d0_ . active AS active_9 ,
p1_ . id AS id_10 ,
p1_ . public_id AS public_id_11 ,
p1_ . name AS name_12 ,
p1_ . description AS description_13 ,
p1_ . short_description AS short_description_14 ,
p1_ . code AS code_15 ,
p1_ . ean AS ean_16 ,
p1_ . unit AS unit_17 ,
p1_ . active AS active_18 ,
p1_ . can_be_bought AS can_be_bought_19 ,
p1_ . searchable AS searchable_20 ,
p1_ . show_price AS show_price_21 ,
p1_ . in_stock_text AS in_stock_text_22 ,
p1_ . out_of_stock_text AS out_of_stock_text_23 ,
p1_ . filter_parameter_value_ids AS filter_parameter_value_ids_24 ,
p1_ . filter_variant_value_ids AS filter_variant_value_ids_25 ,
p1_ . search_vector_cs AS search_vector_cs_26 ,
p1_ . search_vector_en AS search_vector_en_27 ,
p1_ . seo_title AS seo_title_28 ,
p1_ . seo_description AS seo_description_29 ,
p1_ . seo_url AS seo_url_30 ,
p1_ . stock_stock AS stock_stock_31 ,
p1_ . stock_reserved AS stock_reserved_32 ,
p1_ . logistic_weight AS logistic_weight_33 ,
p1_ . logistic_size_width AS logistic_size_width_34 ,
p1_ . logistic_size_height AS logistic_size_height_35 ,
p1_ . logistic_size_length AS logistic_size_length_36 ,
p1_ . price_amount AS price_amount_37 ,
p1_ . price_currency AS price_currency_38 ,
p1_ . purchase_price_amount AS purchase_price_amount_39 ,
p1_ . purchase_price_currency AS purchase_price_currency_40 ,
p2_ . id AS id_41 ,
p2_ . code AS code_42 ,
p2_ . is_default AS is_default_43 ,
p2_ . weight_modification AS weight_modification_44 ,
p2_ . price_modification_amount AS price_modification_amount_45 ,
p2_ . price_modification_currency AS price_modification_currency_46 ,
p2_ . stock_stock AS stock_stock_47 ,
p2_ . stock_reserved AS stock_reserved_48 ,
c3_ . id AS id_49 ,
c3_ . public_id AS public_id_50 ,
c3_ . name AS name_51 ,
c3_ . slug AS slug_52 ,
c3_ . description AS description_53 ,
c3_ . lft AS lft_54 ,
c3_ . lvl AS lvl_55 ,
c3_ . rgt AS rgt_56 ,
c3_ . position AS position_57 ,
d0_ . product_id AS product_id_58 ,
d0_ . product_variant_id AS product_variant_id_59 ,
d0_ . category_id AS category_id_60 ,
d0_ . customer_group_id AS customer_group_id_61 ,
p1_ . vat_id AS vat_id_62 ,
p1_ . main_category_id AS main_category_id_63 ,
p2_ . product_id AS product_id_64 ,
c3_ . image_id AS image_id_65 ,
c3_ . tree_root AS tree_root_66 ,
c3_ . parent_id AS parent_id_67
FROM
discount d0_
LEFT JOIN product p1_ ON d0_ . product_id = p1_ . id
LEFT JOIN product_variant p2_ ON d0_ . product_variant_id = p2_ . id
LEFT JOIN category c3_ ON d0_ . category_id = c3_ . id
WHERE
d0_ . active = ?
AND d0_ . code IS NULL
AND (
(
d0_ . active_from IS NULL
OR d0_ . active_from < = ?
)
)
AND (
(
d0_ . active_to IS NULL
OR d0_ . active_to > = ?
)
)
AND d0_ . customer_group_id IS NULL
AND (
(
d0_ . target = ?
AND d0_ . product_variant_id IN (? , ? , ? , ? , ? )
)
OR (
d0_ . target = ?
AND d0_ . product_id IN (? , ? , ? , ? , ? )
)
OR (
d0_ . target = ?
AND d0_ . category_id IN (
SELECT
c4_ . id
FROM
category c4_
WHERE
EXISTS (
SELECT
c5_ . id
FROM
category c5_
WHERE
c5_ . id IN (? , ? )
AND c5_ . tree_root = c4_ . tree_root
AND c5_ . lft > = c4_ . lft
AND c5_ . rgt < = c4_ . rgt
)
)
)
)
Copy
SELECT d0_ . id AS id_0 , d0_ . name AS name_1 , d0_ . code AS code_2 , d0_ . target AS target_3 , d0_ . type AS type_4 , d0_ . value AS value_5 , d0_ . active_from AS active_from_6 , d0_ . active_to AS active_to_7 , d0_ . minimum_quantity AS minimum_quantity_8 , d0_ . active AS active_9 , p1_ . id AS id_10 , p1_ . public_id AS public_id_11 , p1_ . name AS name_12 , p1_ . description AS description_13 , p1_ . short_description AS short_description_14 , p1_ . code AS code_15 , p1_ . ean AS ean_16 , p1_ . unit AS unit_17 , p1_ . active AS active_18 , p1_ . can_be_bought AS can_be_bought_19 , p1_ . searchable AS searchable_20 , p1_ . show_price AS show_price_21 , p1_ . in_stock_text AS in_stock_text_22 , p1_ . out_of_stock_text AS out_of_stock_text_23 , p1_ . filter_parameter_value_ids AS filter_parameter_value_ids_24 , p1_ . filter_variant_value_ids AS filter_variant_value_ids_25 , p1_ . search_vector_cs AS search_vector_cs_26 , p1_ . search_vector_en AS search_vector_en_27 , p1_ . seo_title AS seo_title_28 , p1_ . seo_description AS seo_description_29 , p1_ . seo_url AS seo_url_30 , p1_ . stock_stock AS stock_stock_31 , p1_ . stock_reserved AS stock_reserved_32 , p1_ . logistic_weight AS logistic_weight_33 , p1_ . logistic_size_width AS logistic_size_width_34 , p1_ . logistic_size_height AS logistic_size_height_35 , p1_ . logistic_size_length AS logistic_size_length_36 , p1_ . price_amount AS price_amount_37 , p1_ . price_currency AS price_currency_38 , p1_ . purchase_price_amount AS purchase_price_amount_39 , p1_ . purchase_price_currency AS purchase_price_currency_40 , p2_ . id AS id_41 , p2_ . code AS code_42 , p2_ . is_default AS is_default_43 , p2_ . weight_modification AS weight_modification_44 , p2_ . price_modification_amount AS price_modification_amount_45 , p2_ . price_modification_currency AS price_modification_currency_46 , p2_ . stock_stock AS stock_stock_47 , p2_ . stock_reserved AS stock_reserved_48 , c3_ . id AS id_49 , c3_ . public_id AS public_id_50 , c3_ . name AS name_51 , c3_ . slug AS slug_52 , c3_ . description AS description_53 , c3_ . lft AS lft_54 , c3_ . lvl AS lvl_55 , c3_ . rgt AS rgt_56 , c3_ . position AS position_57 , d0_ . product_id AS product_id_58 , d0_ . product_variant_id AS product_variant_id_59 , d0_ . category_id AS category_id_60 , d0_ . customer_group_id AS customer_group_id_61 , p1_ . vat_id AS vat_id_62 , p1_ . main_category_id AS main_category_id_63 , p2_ . product_id AS product_id_64 , c3_ . image_id AS image_id_65 , c3_ . tree_root AS tree_root_66 , c3_ . parent_id AS parent_id_67 FROM discount d0_ LEFT JOIN product p1_ ON d0_ . product_id = p1_ . id LEFT JOIN product_variant p2_ ON d0_ . product_variant_id = p2_ . id LEFT JOIN category c3_ ON d0_ . category_id = c3_ . id WHERE d0_ . active = 1 AND d0_ . code IS NULL AND ((d0_ . active_from IS NULL OR d0_ . active_from < = '2026-06-12 17:06:27' )) AND ((d0_ . active_to IS NULL OR d0_ . active_to > = '2026-06-12 17:06:27' )) AND d0_ . customer_group_id IS NULL AND ((d0_ . target = 'product_variant' AND d0_ . product_variant_id IN ('3cfc1115-3c8c-4463-ba40-92afeb8d18c5' , 'b14f00df-fdb9-415f-950f-b9cd8705525f' , '6ce4fc87-e09f-4e65-97d4-40e8c809c399' , '1d203df6-529c-4420-a050-30b8e54a3ea3' , 'e9273af0-315f-481e-97f4-56e7ca9ef95c' )) OR (d0_ . target = 'product' AND d0_ . product_id IN ('7d3e9f2b-4c8a-6e1d-9f5a-2b7c4e8d1a6f' , '375716f5-bea6-4773-a211-135132f63f89' , '5e59db33-d2d4-4c37-b6f5-8949dd3ebf87' , '46f9b13b-30a8-4646-ad0a-17311d2d52cd' , 'cb798ac5-9cc6-455c-981c-5f8ddb847048' )) OR (d0_ . target = 'category' AND d0_ . category_id IN (SELECT c4_ . id FROM category c4_ WHERE EXISTS (SELECT c5_ . id FROM category c5_ WHERE c5_ . id IN ('6f4b2a8d-0c7e-4d1f-2b5a-4e9c1d6f7b8a' , '5c3e1d7a-9f6b-4a0c-1e4d-3b8f0a5c6e7f' ) AND c5_ . tree_root = c4_ . tree_root AND c5_ . lft > = c4_ . lft AND c5_ . rgt < = c4_ . rgt ))));
Copy
24
0.78 ms
SELECT
unnested_value :: text as value_id ,
COUNT (* ) as count
FROM product p ,
LATERAL unnest (p . filter_parameter_value_ids ) as unnested_value
WHERE p . active = true
AND unnested_value = ANY (? )
AND EXISTS (SELECT 1 FROM product_category pc WHERE pc . product_id = p . id AND pc . category_id = ANY (? )) GROUP BY unnested_value
Parameters :
[
"{7f904120-f8b3-4566-b409-472698f59584,dd1b5415-c000-494b-92f0-ed10c8b7e16d} "
"{5c3e1d7a-9f6b-4a0c-1e4d-3b8f0a5c6e7f,6d4f2e8b-0a7c-4b1d-2f5e-4c9a1b6d7f8a,7e5a3f9c-1b8d-4c2e-3a6f-5d0b2c7e8a9b,8d6f4e0b-2a9c-4b3d-4f7e-6c1a3b8d9f0e} "
]
SELECT
unnested_value :: text as value_id ,
COUNT (* ) as count
FROM product p ,
LATERAL unnest (p . filter_parameter_value_ids ) as unnested_value
WHERE p . active = true
AND unnested_value = ANY ('{7f904120-f8b3-4566-b409-472698f59584,dd1b5415-c000-494b-92f0-ed10c8b7e16d}' )
AND EXISTS (SELECT 1 FROM product_category pc WHERE pc . product_id = p . id AND pc . category_id = ANY ('{5c3e1d7a-9f6b-4a0c-1e4d-3b8f0a5c6e7f,6d4f2e8b-0a7c-4b1d-2f5e-4c9a1b6d7f8a,7e5a3f9c-1b8d-4c2e-3a6f-5d0b2c7e8a9b,8d6f4e0b-2a9c-4b3d-4f7e-6c1a3b8d9f0e}' )) GROUP BY unnested_value ;
Copy
25
0.51 ms
SELECT
unnested_value :: text as value_id ,
COUNT (* ) as count
FROM product p ,
LATERAL unnest (p . filter_parameter_value_ids ) as unnested_value
WHERE p . active = true
AND unnested_value = ANY (? )
AND EXISTS (SELECT 1 FROM product_category pc WHERE pc . product_id = p . id AND pc . category_id = ANY (? )) GROUP BY unnested_value
Parameters :
[
"{8e85442d-8616-48ff-8b24-2e8aec165027,77d73b6e-ba4c-461c-a022-d80f824b116b,bf3d495a-37c3-4c0a-8f61-fed434ff2d13} "
"{5c3e1d7a-9f6b-4a0c-1e4d-3b8f0a5c6e7f,6d4f2e8b-0a7c-4b1d-2f5e-4c9a1b6d7f8a,7e5a3f9c-1b8d-4c2e-3a6f-5d0b2c7e8a9b,8d6f4e0b-2a9c-4b3d-4f7e-6c1a3b8d9f0e} "
]
SELECT
unnested_value :: text as value_id ,
COUNT (* ) as count
FROM product p ,
LATERAL unnest (p . filter_parameter_value_ids ) as unnested_value
WHERE p . active = true
AND unnested_value = ANY ('{8e85442d-8616-48ff-8b24-2e8aec165027,77d73b6e-ba4c-461c-a022-d80f824b116b,bf3d495a-37c3-4c0a-8f61-fed434ff2d13}' )
AND EXISTS (SELECT 1 FROM product_category pc WHERE pc . product_id = p . id AND pc . category_id = ANY ('{5c3e1d7a-9f6b-4a0c-1e4d-3b8f0a5c6e7f,6d4f2e8b-0a7c-4b1d-2f5e-4c9a1b6d7f8a,7e5a3f9c-1b8d-4c2e-3a6f-5d0b2c7e8a9b,8d6f4e0b-2a9c-4b3d-4f7e-6c1a3b8d9f0e}' )) GROUP BY unnested_value ;
Copy
26
0.56 ms
SELECT
unnested_value :: text as value_id ,
COUNT (* ) as count
FROM product p ,
LATERAL unnest (p . filter_variant_value_ids ) as unnested_value
WHERE p . active = true
AND unnested_value = ANY (? )
AND EXISTS (SELECT 1 FROM product_category pc WHERE pc . product_id = p . id AND pc . category_id = ANY (? )) GROUP BY unnested_value
Parameters :
[
"{6fbf9bb2-99ad-4078-9225-439fcef7824e,55308aae-972f-4347-8591-e2f032497d39} "
"{5c3e1d7a-9f6b-4a0c-1e4d-3b8f0a5c6e7f,6d4f2e8b-0a7c-4b1d-2f5e-4c9a1b6d7f8a,7e5a3f9c-1b8d-4c2e-3a6f-5d0b2c7e8a9b,8d6f4e0b-2a9c-4b3d-4f7e-6c1a3b8d9f0e} "
]
SELECT
unnested_value :: text as value_id ,
COUNT (* ) as count
FROM product p ,
LATERAL unnest (p . filter_variant_value_ids ) as unnested_value
WHERE p . active = true
AND unnested_value = ANY ('{6fbf9bb2-99ad-4078-9225-439fcef7824e,55308aae-972f-4347-8591-e2f032497d39}' )
AND EXISTS (SELECT 1 FROM product_category pc WHERE pc . product_id = p . id AND pc . category_id = ANY ('{5c3e1d7a-9f6b-4a0c-1e4d-3b8f0a5c6e7f,6d4f2e8b-0a7c-4b1d-2f5e-4c9a1b6d7f8a,7e5a3f9c-1b8d-4c2e-3a6f-5d0b2c7e8a9b,8d6f4e0b-2a9c-4b3d-4f7e-6c1a3b8d9f0e}' )) GROUP BY unnested_value ;
Copy
27
0.41 ms
SELECT
unnested_value :: text as value_id ,
COUNT (* ) as count
FROM product p ,
LATERAL unnest (p . filter_variant_value_ids ) as unnested_value
WHERE p . active = true
AND unnested_value = ANY (? )
AND EXISTS (SELECT 1 FROM product_category pc WHERE pc . product_id = p . id AND pc . category_id = ANY (? )) GROUP BY unnested_value
Parameters :
[
"{9b880df1-482c-4f0e-ac91-304c0554dd93,8a6a4c62-3a9a-47fa-8935-5b2c8edef512,63a4b4eb-5b5d-48a1-94a7-7af3764f5642} "
"{5c3e1d7a-9f6b-4a0c-1e4d-3b8f0a5c6e7f,6d4f2e8b-0a7c-4b1d-2f5e-4c9a1b6d7f8a,7e5a3f9c-1b8d-4c2e-3a6f-5d0b2c7e8a9b,8d6f4e0b-2a9c-4b3d-4f7e-6c1a3b8d9f0e} "
]
SELECT
unnested_value :: text as value_id ,
COUNT (* ) as count
FROM product p ,
LATERAL unnest (p . filter_variant_value_ids ) as unnested_value
WHERE p . active = true
AND unnested_value = ANY ('{9b880df1-482c-4f0e-ac91-304c0554dd93,8a6a4c62-3a9a-47fa-8935-5b2c8edef512,63a4b4eb-5b5d-48a1-94a7-7af3764f5642}' )
AND EXISTS (SELECT 1 FROM product_category pc WHERE pc . product_id = p . id AND pc . category_id = ANY ('{5c3e1d7a-9f6b-4a0c-1e4d-3b8f0a5c6e7f,6d4f2e8b-0a7c-4b1d-2f5e-4c9a1b6d7f8a,7e5a3f9c-1b8d-4c2e-3a6f-5d0b2c7e8a9b,8d6f4e0b-2a9c-4b3d-4f7e-6c1a3b8d9f0e}' )) GROUP BY unnested_value ;
Copy
28
0.51 ms
SELECT
unnested_value :: text as value_id ,
COUNT (* ) as count
FROM product p ,
LATERAL unnest (p . filter_variant_value_ids ) as unnested_value
WHERE p . active = true
AND unnested_value = ANY (? )
AND EXISTS (SELECT 1 FROM product_category pc WHERE pc . product_id = p . id AND pc . category_id = ANY (? )) GROUP BY unnested_value
Parameters :
[
"{7efc6872-b156-4bf2-afb8-33d03ede6097,cbb9595f-a34d-4ddc-aa9b-e58e92bf8cf4,cef1c56c-c574-4e6b-a3f7-7643f0376f35} "
"{5c3e1d7a-9f6b-4a0c-1e4d-3b8f0a5c6e7f,6d4f2e8b-0a7c-4b1d-2f5e-4c9a1b6d7f8a,7e5a3f9c-1b8d-4c2e-3a6f-5d0b2c7e8a9b,8d6f4e0b-2a9c-4b3d-4f7e-6c1a3b8d9f0e} "
]
SELECT
unnested_value :: text as value_id ,
COUNT (* ) as count
FROM product p ,
LATERAL unnest (p . filter_variant_value_ids ) as unnested_value
WHERE p . active = true
AND unnested_value = ANY ('{7efc6872-b156-4bf2-afb8-33d03ede6097,cbb9595f-a34d-4ddc-aa9b-e58e92bf8cf4,cef1c56c-c574-4e6b-a3f7-7643f0376f35}' )
AND EXISTS (SELECT 1 FROM product_category pc WHERE pc . product_id = p . id AND pc . category_id = ANY ('{5c3e1d7a-9f6b-4a0c-1e4d-3b8f0a5c6e7f,6d4f2e8b-0a7c-4b1d-2f5e-4c9a1b6d7f8a,7e5a3f9c-1b8d-4c2e-3a6f-5d0b2c7e8a9b,8d6f4e0b-2a9c-4b3d-4f7e-6c1a3b8d9f0e}' )) GROUP BY unnested_value ;
Copy
29
0.43 ms
SELECT
unnested_value :: text as value_id ,
COUNT (* ) as count
FROM product p ,
LATERAL unnest (p . filter_parameter_value_ids ) as unnested_value
WHERE p . active = true
AND unnested_value = ANY (? )
AND EXISTS (SELECT 1 FROM product_category pc WHERE pc . product_id = p . id AND pc . category_id = ANY (? )) GROUP BY unnested_value
Parameters :
[
"{7f904120-f8b3-4566-b409-472698f59584,dd1b5415-c000-494b-92f0-ed10c8b7e16d,8e85442d-8616-48ff-8b24-2e8aec165027,77d73b6e-ba4c-461c-a022-d80f824b116b,bf3d495a-37c3-4c0a-8f61-fed434ff2d13} "
"{5c3e1d7a-9f6b-4a0c-1e4d-3b8f0a5c6e7f,6d4f2e8b-0a7c-4b1d-2f5e-4c9a1b6d7f8a,7e5a3f9c-1b8d-4c2e-3a6f-5d0b2c7e8a9b,8d6f4e0b-2a9c-4b3d-4f7e-6c1a3b8d9f0e} "
]
SELECT
unnested_value :: text as value_id ,
COUNT (* ) as count
FROM product p ,
LATERAL unnest (p . filter_parameter_value_ids ) as unnested_value
WHERE p . active = true
AND unnested_value = ANY ('{7f904120-f8b3-4566-b409-472698f59584,dd1b5415-c000-494b-92f0-ed10c8b7e16d,8e85442d-8616-48ff-8b24-2e8aec165027,77d73b6e-ba4c-461c-a022-d80f824b116b,bf3d495a-37c3-4c0a-8f61-fed434ff2d13}' )
AND EXISTS (SELECT 1 FROM product_category pc WHERE pc . product_id = p . id AND pc . category_id = ANY ('{5c3e1d7a-9f6b-4a0c-1e4d-3b8f0a5c6e7f,6d4f2e8b-0a7c-4b1d-2f5e-4c9a1b6d7f8a,7e5a3f9c-1b8d-4c2e-3a6f-5d0b2c7e8a9b,8d6f4e0b-2a9c-4b3d-4f7e-6c1a3b8d9f0e}' )) GROUP BY unnested_value ;
Copy
30
0.44 ms
SELECT
unnested_value :: text as value_id ,
COUNT (* ) as count
FROM product p ,
LATERAL unnest (p . filter_variant_value_ids ) as unnested_value
WHERE p . active = true
AND unnested_value = ANY (? )
AND EXISTS (SELECT 1 FROM product_category pc WHERE pc . product_id = p . id AND pc . category_id = ANY (? )) GROUP BY unnested_value
Parameters :
[
"{6fbf9bb2-99ad-4078-9225-439fcef7824e,55308aae-972f-4347-8591-e2f032497d39,9b880df1-482c-4f0e-ac91-304c0554dd93,8a6a4c62-3a9a-47fa-8935-5b2c8edef512,63a4b4eb-5b5d-48a1-94a7-7af3764f5642,7efc6872-b156-4bf2-afb8-33d03ede6097,cbb9595f-a34d-4ddc-aa9b-e58e92bf8cf4,cef1c56c-c574-4e6b-a3f7-7643f0376f35} "
"{5c3e1d7a-9f6b-4a0c-1e4d-3b8f0a5c6e7f,6d4f2e8b-0a7c-4b1d-2f5e-4c9a1b6d7f8a,7e5a3f9c-1b8d-4c2e-3a6f-5d0b2c7e8a9b,8d6f4e0b-2a9c-4b3d-4f7e-6c1a3b8d9f0e} "
]
SELECT
unnested_value :: text as value_id ,
COUNT (* ) as count
FROM product p ,
LATERAL unnest (p . filter_variant_value_ids ) as unnested_value
WHERE p . active = true
AND unnested_value = ANY ('{6fbf9bb2-99ad-4078-9225-439fcef7824e,55308aae-972f-4347-8591-e2f032497d39,9b880df1-482c-4f0e-ac91-304c0554dd93,8a6a4c62-3a9a-47fa-8935-5b2c8edef512,63a4b4eb-5b5d-48a1-94a7-7af3764f5642,7efc6872-b156-4bf2-afb8-33d03ede6097,cbb9595f-a34d-4ddc-aa9b-e58e92bf8cf4,cef1c56c-c574-4e6b-a3f7-7643f0376f35}' )
AND EXISTS (SELECT 1 FROM product_category pc WHERE pc . product_id = p . id AND pc . category_id = ANY ('{5c3e1d7a-9f6b-4a0c-1e4d-3b8f0a5c6e7f,6d4f2e8b-0a7c-4b1d-2f5e-4c9a1b6d7f8a,7e5a3f9c-1b8d-4c2e-3a6f-5d0b2c7e8a9b,8d6f4e0b-2a9c-4b3d-4f7e-6c1a3b8d9f0e}' )) GROUP BY unnested_value ;
Copy
31
0.40 ms
SELECT c0_ . id AS id_0 , c0_ . public_id AS public_id_1 , c0_ . name AS name_2 , c0_ . slug AS slug_3 , c0_ . description AS description_4 , c0_ . lft AS lft_5 , c0_ . lvl AS lvl_6 , c0_ . rgt AS rgt_7 , c0_ . position AS position_8 FROM category c0_ ORDER BY c0_ . tree_root ASC , c0_ . lft ASC
SELECT c0_ . id AS id_0 , c0_ . public_id AS public_id_1 , c0_ . name AS name_2 , c0_ . slug AS slug_3 , c0_ . description AS description_4 , c0_ . lft AS lft_5 , c0_ . lvl AS lvl_6 , c0_ . rgt AS rgt_7 , c0_ . position AS position_8 FROM category c0_ ORDER BY c0_ . tree_root ASC , c0_ . lft ASC ;
Copy
32
1.01 ms
SELECT s0_ . id AS id_0 , s0_ . public_id AS public_id_1 , s0_ . title AS title_2 , s0_ . slug AS slug_3 , s0_ . content AS content_4 , s0_ . show_contact_form AS show_contact_form_5 , s0_ . active AS active_6 , s0_ . created_at AS created_at_7 , s0_ . updated_at AS updated_at_8 , s0_ . seo_title AS seo_title_9 , s0_ . seo_description AS seo_description_10 , s0_ . seo_url AS seo_url_11 FROM static_page s0_ WHERE s0_ . active = true ORDER BY s0_ . created_at ASC
SELECT s0_ . id AS id_0 , s0_ . public_id AS public_id_1 , s0_ . title AS title_2 , s0_ . slug AS slug_3 , s0_ . content AS content_4 , s0_ . show_contact_form AS show_contact_form_5 , s0_ . active AS active_6 , s0_ . created_at AS created_at_7 , s0_ . updated_at AS updated_at_8 , s0_ . seo_title AS seo_title_9 , s0_ . seo_description AS seo_description_10 , s0_ . seo_url AS seo_url_11 FROM static_page s0_ WHERE s0_ . active = true ORDER BY s0_ . created_at ASC ;
Copy
33
0.38 ms
SELECT t0 . id AS id_1 , t0 . public_id AS public_id_2 , t0 . name AS name_3 , t0 . slug AS slug_4 , t0 . description AS description_5 , t0 . lft AS lft_6 , t0 . lvl AS lvl_7 , t0 . rgt AS rgt_8 , t0 . position AS position_9 , t0 . image_id AS image_id_10 , t0 . tree_root AS tree_root_11 , t0 . parent_id AS parent_id_12 FROM category t0 WHERE t0 . public_id = ? LIMIT 1
SELECT t0 . id AS id_1 , t0 . public_id AS public_id_2 , t0 . name AS name_3 , t0 . slug AS slug_4 , t0 . description AS description_5 , t0 . lft AS lft_6 , t0 . lvl AS lvl_7 , t0 . rgt AS rgt_8 , t0 . position AS position_9 , t0 . image_id AS image_id_10 , t0 . tree_root AS tree_root_11 , t0 . parent_id AS parent_id_12 FROM category t0 WHERE t0 . public_id = 9133 LIMIT 1 ;
Copy
34
0.43 ms
SELECT c0_ . code AS code_0 , c0_ . is_default AS is_default_1 , c0_ . is_active AS is_active_2 , c0_ . decimal_places AS decimal_places_3 , e1_ . id AS id_4 , e1_ . exchange_rate AS exchange_rate_5 , e1_ . last_automatic_update AS last_automatic_update_6 , e1_ . created_at AS created_at_7 , e1_ . updated_at AS updated_at_8 , e2_ . id AS id_9 , e2_ . exchange_rate AS exchange_rate_10 , e2_ . last_automatic_update AS last_automatic_update_11 , e2_ . created_at AS created_at_12 , e2_ . updated_at AS updated_at_13 , e1_ . currency_from_id AS currency_from_id_14 , e1_ . currency_to_id AS currency_to_id_15 , e2_ . currency_from_id AS currency_from_id_16 , e2_ . currency_to_id AS currency_to_id_17 FROM currency c0_ LEFT JOIN exchange_rate e1_ ON c0_ . code = e1_ . currency_to_id LEFT JOIN exchange_rate e2_ ON c0_ . code = e2_ . currency_from_id WHERE c0_ . is_default = ?
SELECT c0_ . code AS code_0 , c0_ . is_default AS is_default_1 , c0_ . is_active AS is_active_2 , c0_ . decimal_places AS decimal_places_3 , e1_ . id AS id_4 , e1_ . exchange_rate AS exchange_rate_5 , e1_ . last_automatic_update AS last_automatic_update_6 , e1_ . created_at AS created_at_7 , e1_ . updated_at AS updated_at_8 , e2_ . id AS id_9 , e2_ . exchange_rate AS exchange_rate_10 , e2_ . last_automatic_update AS last_automatic_update_11 , e2_ . created_at AS created_at_12 , e2_ . updated_at AS updated_at_13 , e1_ . currency_from_id AS currency_from_id_14 , e1_ . currency_to_id AS currency_to_id_15 , e2_ . currency_from_id AS currency_from_id_16 , e2_ . currency_to_id AS currency_to_id_17 FROM currency c0_ LEFT JOIN exchange_rate e1_ ON c0_ . code = e1_ . currency_to_id LEFT JOIN exchange_rate e2_ ON c0_ . code = e2_ . currency_from_id WHERE c0_ . is_default = 1 ;
Copy
35
0.47 ms
SELECT c0_ . code AS code_0 , c0_ . is_default AS is_default_1 , c0_ . is_active AS is_active_2 , c0_ . decimal_places AS decimal_places_3 , e1_ . id AS id_4 , e1_ . exchange_rate AS exchange_rate_5 , e1_ . last_automatic_update AS last_automatic_update_6 , e1_ . created_at AS created_at_7 , e1_ . updated_at AS updated_at_8 , e2_ . id AS id_9 , e2_ . exchange_rate AS exchange_rate_10 , e2_ . last_automatic_update AS last_automatic_update_11 , e2_ . created_at AS created_at_12 , e2_ . updated_at AS updated_at_13 , e1_ . currency_from_id AS currency_from_id_14 , e1_ . currency_to_id AS currency_to_id_15 , e2_ . currency_from_id AS currency_from_id_16 , e2_ . currency_to_id AS currency_to_id_17 FROM currency c0_ LEFT JOIN exchange_rate e1_ ON c0_ . code = e1_ . currency_to_id LEFT JOIN exchange_rate e2_ ON c0_ . code = e2_ . currency_from_id ORDER BY c0_ . is_default DESC , c0_ . code ASC
SELECT c0_ . code AS code_0 , c0_ . is_default AS is_default_1 , c0_ . is_active AS is_active_2 , c0_ . decimal_places AS decimal_places_3 , e1_ . id AS id_4 , e1_ . exchange_rate AS exchange_rate_5 , e1_ . last_automatic_update AS last_automatic_update_6 , e1_ . created_at AS created_at_7 , e1_ . updated_at AS updated_at_8 , e2_ . id AS id_9 , e2_ . exchange_rate AS exchange_rate_10 , e2_ . last_automatic_update AS last_automatic_update_11 , e2_ . created_at AS created_at_12 , e2_ . updated_at AS updated_at_13 , e1_ . currency_from_id AS currency_from_id_14 , e1_ . currency_to_id AS currency_to_id_15 , e2_ . currency_from_id AS currency_from_id_16 , e2_ . currency_to_id AS currency_to_id_17 FROM currency c0_ LEFT JOIN exchange_rate e1_ ON c0_ . code = e1_ . currency_to_id LEFT JOIN exchange_rate e2_ ON c0_ . code = e2_ . currency_from_id ORDER BY c0_ . is_default DESC , c0_ . code ASC ;
Copy
36
0.53 ms
SELECT s0_ . id AS id_0 , s0_ . public_id AS public_id_1 , s0_ . title AS title_2 , s0_ . slug AS slug_3 , s0_ . content AS content_4 , s0_ . show_contact_form AS show_contact_form_5 , s0_ . active AS active_6 , s0_ . created_at AS created_at_7 , s0_ . updated_at AS updated_at_8 , s0_ . seo_title AS seo_title_9 , s0_ . seo_description AS seo_description_10 , s0_ . seo_url AS seo_url_11 FROM static_page s0_ WHERE s0_ . active = true ORDER BY s0_ . created_at ASC
SELECT s0_ . id AS id_0 , s0_ . public_id AS public_id_1 , s0_ . title AS title_2 , s0_ . slug AS slug_3 , s0_ . content AS content_4 , s0_ . show_contact_form AS show_contact_form_5 , s0_ . active AS active_6 , s0_ . created_at AS created_at_7 , s0_ . updated_at AS updated_at_8 , s0_ . seo_title AS seo_title_9 , s0_ . seo_description AS seo_description_10 , s0_ . seo_url AS seo_url_11 FROM static_page s0_ WHERE s0_ . active = true ORDER BY s0_ . created_at ASC ;
Copy
37
0.30 ms
SELECT t0 . id AS id_1 , t0 . public_id AS public_id_2 , t0 . name AS name_3 , t0 . slug AS slug_4 , t0 . description AS description_5 , t0 . lft AS lft_6 , t0 . lvl AS lvl_7 , t0 . rgt AS rgt_8 , t0 . position AS position_9 , t0 . image_id AS image_id_10 , t0 . tree_root AS tree_root_11 , t0 . parent_id AS parent_id_12 FROM category t0 WHERE t0 . public_id = ? LIMIT 1
SELECT t0 . id AS id_1 , t0 . public_id AS public_id_2 , t0 . name AS name_3 , t0 . slug AS slug_4 , t0 . description AS description_5 , t0 . lft AS lft_6 , t0 . lvl AS lvl_7 , t0 . rgt AS rgt_8 , t0 . position AS position_9 , t0 . image_id AS image_id_10 , t0 . tree_root AS tree_root_11 , t0 . parent_id AS parent_id_12 FROM category t0 WHERE t0 . public_id = 9133 LIMIT 1 ;
Copy
38
0.41 ms
SELECT c0_ . code AS code_0 , c0_ . is_default AS is_default_1 , c0_ . is_active AS is_active_2 , c0_ . decimal_places AS decimal_places_3 , e1_ . id AS id_4 , e1_ . exchange_rate AS exchange_rate_5 , e1_ . last_automatic_update AS last_automatic_update_6 , e1_ . created_at AS created_at_7 , e1_ . updated_at AS updated_at_8 , e2_ . id AS id_9 , e2_ . exchange_rate AS exchange_rate_10 , e2_ . last_automatic_update AS last_automatic_update_11 , e2_ . created_at AS created_at_12 , e2_ . updated_at AS updated_at_13 , e1_ . currency_from_id AS currency_from_id_14 , e1_ . currency_to_id AS currency_to_id_15 , e2_ . currency_from_id AS currency_from_id_16 , e2_ . currency_to_id AS currency_to_id_17 FROM currency c0_ LEFT JOIN exchange_rate e1_ ON c0_ . code = e1_ . currency_to_id LEFT JOIN exchange_rate e2_ ON c0_ . code = e2_ . currency_from_id WHERE c0_ . is_default = ?
SELECT c0_ . code AS code_0 , c0_ . is_default AS is_default_1 , c0_ . is_active AS is_active_2 , c0_ . decimal_places AS decimal_places_3 , e1_ . id AS id_4 , e1_ . exchange_rate AS exchange_rate_5 , e1_ . last_automatic_update AS last_automatic_update_6 , e1_ . created_at AS created_at_7 , e1_ . updated_at AS updated_at_8 , e2_ . id AS id_9 , e2_ . exchange_rate AS exchange_rate_10 , e2_ . last_automatic_update AS last_automatic_update_11 , e2_ . created_at AS created_at_12 , e2_ . updated_at AS updated_at_13 , e1_ . currency_from_id AS currency_from_id_14 , e1_ . currency_to_id AS currency_to_id_15 , e2_ . currency_from_id AS currency_from_id_16 , e2_ . currency_to_id AS currency_to_id_17 FROM currency c0_ LEFT JOIN exchange_rate e1_ ON c0_ . code = e1_ . currency_to_id LEFT JOIN exchange_rate e2_ ON c0_ . code = e2_ . currency_from_id WHERE c0_ . is_default = 1 ;
Copy
39
0.38 ms
SELECT c0_ . code AS code_0 , c0_ . is_default AS is_default_1 , c0_ . is_active AS is_active_2 , c0_ . decimal_places AS decimal_places_3 , e1_ . id AS id_4 , e1_ . exchange_rate AS exchange_rate_5 , e1_ . last_automatic_update AS last_automatic_update_6 , e1_ . created_at AS created_at_7 , e1_ . updated_at AS updated_at_8 , e2_ . id AS id_9 , e2_ . exchange_rate AS exchange_rate_10 , e2_ . last_automatic_update AS last_automatic_update_11 , e2_ . created_at AS created_at_12 , e2_ . updated_at AS updated_at_13 , e1_ . currency_from_id AS currency_from_id_14 , e1_ . currency_to_id AS currency_to_id_15 , e2_ . currency_from_id AS currency_from_id_16 , e2_ . currency_to_id AS currency_to_id_17 FROM currency c0_ LEFT JOIN exchange_rate e1_ ON c0_ . code = e1_ . currency_to_id LEFT JOIN exchange_rate e2_ ON c0_ . code = e2_ . currency_from_id ORDER BY c0_ . is_default DESC , c0_ . code ASC
SELECT c0_ . code AS code_0 , c0_ . is_default AS is_default_1 , c0_ . is_active AS is_active_2 , c0_ . decimal_places AS decimal_places_3 , e1_ . id AS id_4 , e1_ . exchange_rate AS exchange_rate_5 , e1_ . last_automatic_update AS last_automatic_update_6 , e1_ . created_at AS created_at_7 , e1_ . updated_at AS updated_at_8 , e2_ . id AS id_9 , e2_ . exchange_rate AS exchange_rate_10 , e2_ . last_automatic_update AS last_automatic_update_11 , e2_ . created_at AS created_at_12 , e2_ . updated_at AS updated_at_13 , e1_ . currency_from_id AS currency_from_id_14 , e1_ . currency_to_id AS currency_to_id_15 , e2_ . currency_from_id AS currency_from_id_16 , e2_ . currency_to_id AS currency_to_id_17 FROM currency c0_ LEFT JOIN exchange_rate e1_ ON c0_ . code = e1_ . currency_to_id LEFT JOIN exchange_rate e2_ ON c0_ . code = e2_ . currency_from_id ORDER BY c0_ . is_default DESC , c0_ . code ASC ;
Copy
40
0.48 ms
SELECT c0_ . id AS id_0 , c0_ . public_id AS public_id_1 , c0_ . name AS name_2 , c0_ . slug AS slug_3 , c0_ . description AS description_4 , c0_ . lft AS lft_5 , c0_ . lvl AS lvl_6 , c0_ . rgt AS rgt_7 , c0_ . position AS position_8 FROM category c0_ ORDER BY c0_ . tree_root ASC , c0_ . lft ASC
SELECT c0_ . id AS id_0 , c0_ . public_id AS public_id_1 , c0_ . name AS name_2 , c0_ . slug AS slug_3 , c0_ . description AS description_4 , c0_ . lft AS lft_5 , c0_ . lvl AS lvl_6 , c0_ . rgt AS rgt_7 , c0_ . position AS position_8 FROM category c0_ ORDER BY c0_ . tree_root ASC , c0_ . lft ASC ;
Copy
41
0.64 ms
SELECT s0_ . id AS id_0 , s0_ . position AS position_1 , s0_ . title AS title_2 , s0_ . content AS content_3 , s0_ . link_url AS link_url_4 , s0_ . link_label AS link_label_5 , s0_ . is_active AS is_active_6 , f1_ . id AS id_7 , f1_ . size AS size_8 , f1_ . mime_type AS mime_type_9 , s0_ . image_id AS image_id_10 FROM sidebar_block s0_ LEFT JOIN file f1_ ON s0_ . image_id = f1_ . id WHERE s0_ . is_active = true ORDER BY s0_ . position ASC , s0_ . id ASC
SELECT s0_ . id AS id_0 , s0_ . position AS position_1 , s0_ . title AS title_2 , s0_ . content AS content_3 , s0_ . link_url AS link_url_4 , s0_ . link_label AS link_label_5 , s0_ . is_active AS is_active_6 , f1_ . id AS id_7 , f1_ . size AS size_8 , f1_ . mime_type AS mime_type_9 , s0_ . image_id AS image_id_10 FROM sidebar_block s0_ LEFT JOIN file f1_ ON s0_ . image_id = f1_ . id WHERE s0_ . is_active = true ORDER BY s0_ . position ASC , s0_ . id ASC ;
Copy
42
0.51 ms
SELECT t0 . id AS id_1 , t0 . is_main AS is_main_2 , t0 . position AS position_3 , t0 . product_id AS product_id_4 , t0 . file_id AS file_id_5 FROM product_image t0 WHERE t0 . product_id = ?
Parameters :
[
"7d3e9f2b-4c8a-6e1d-9f5a-2b7c4e8d1a6f "
]
SELECT t0 . id AS id_1 , t0 . is_main AS is_main_2 , t0 . position AS position_3 , t0 . product_id AS product_id_4 , t0 . file_id AS file_id_5 FROM product_image t0 WHERE t0 . product_id = '7d3e9f2b-4c8a-6e1d-9f5a-2b7c4e8d1a6f' ;
Copy
43
0.27 ms
SELECT t0 . id AS id_1 , t0 . size AS size_2 , t0 . mime_type AS mime_type_3 FROM file t0 WHERE t0 . id = ?
Parameters :
[
"5cb413f9-78d0-49f5-8ebf-1c02a51b5704 "
]
SELECT t0 . id AS id_1 , t0 . size AS size_2 , t0 . mime_type AS mime_type_3 FROM file t0 WHERE t0 . id = '5cb413f9-78d0-49f5-8ebf-1c02a51b5704' ;
Copy
44
0.35 ms
SELECT t0 . id AS id_1 , t0 . rate AS rate_2 FROM tax_rate t0 WHERE t0 . id = ?
Parameters :
[
"d4cbf291-83a9-4c10-97a6-39675f525c02 "
]
SELECT t0 . id AS id_1 , t0 . rate AS rate_2 FROM tax_rate t0 WHERE t0 . id = 'd4cbf291-83a9-4c10-97a6-39675f525c02' ;
Copy
45
0.29 ms
SELECT t0 . id AS id_1 , t0 . is_main AS is_main_2 , t0 . position AS position_3 , t0 . product_id AS product_id_4 , t0 . file_id AS file_id_5 FROM product_image t0 WHERE t0 . product_id = ?
Parameters :
[
"375716f5-bea6-4773-a211-135132f63f89 "
]
SELECT t0 . id AS id_1 , t0 . is_main AS is_main_2 , t0 . position AS position_3 , t0 . product_id AS product_id_4 , t0 . file_id AS file_id_5 FROM product_image t0 WHERE t0 . product_id = '375716f5-bea6-4773-a211-135132f63f89' ;
Copy
46
0.21 ms
SELECT t0 . id AS id_1 , t0 . size AS size_2 , t0 . mime_type AS mime_type_3 FROM file t0 WHERE t0 . id = ?
Parameters :
[
"f3aa5612-8f8d-4691-8a00-33605ba2c3d2 "
]
SELECT t0 . id AS id_1 , t0 . size AS size_2 , t0 . mime_type AS mime_type_3 FROM file t0 WHERE t0 . id = 'f3aa5612-8f8d-4691-8a00-33605ba2c3d2' ;
Copy
47
0.21 ms
SELECT t0 . id AS id_1 , t0 . rate AS rate_2 FROM tax_rate t0 WHERE t0 . id = ?
Parameters :
[
"9fc197e0-507f-4666-a8d7-6059449c23a7 "
]
SELECT t0 . id AS id_1 , t0 . rate AS rate_2 FROM tax_rate t0 WHERE t0 . id = '9fc197e0-507f-4666-a8d7-6059449c23a7' ;
Copy
48
0.26 ms
SELECT t0 . id AS id_1 , t0 . is_main AS is_main_2 , t0 . position AS position_3 , t0 . product_id AS product_id_4 , t0 . file_id AS file_id_5 FROM product_image t0 WHERE t0 . product_id = ?
Parameters :
[
"5e59db33-d2d4-4c37-b6f5-8949dd3ebf87 "
]
SELECT t0 . id AS id_1 , t0 . is_main AS is_main_2 , t0 . position AS position_3 , t0 . product_id AS product_id_4 , t0 . file_id AS file_id_5 FROM product_image t0 WHERE t0 . product_id = '5e59db33-d2d4-4c37-b6f5-8949dd3ebf87' ;
Copy
49
0.24 ms
SELECT t0 . id AS id_1 , t0 . size AS size_2 , t0 . mime_type AS mime_type_3 FROM file t0 WHERE t0 . id = ?
Parameters :
[
"162c648c-784d-42e2-b6d3-2af5969d3a10 "
]
SELECT t0 . id AS id_1 , t0 . size AS size_2 , t0 . mime_type AS mime_type_3 FROM file t0 WHERE t0 . id = '162c648c-784d-42e2-b6d3-2af5969d3a10' ;
Copy
50
0.27 ms
SELECT t0 . id AS id_1 , t0 . is_main AS is_main_2 , t0 . position AS position_3 , t0 . product_id AS product_id_4 , t0 . file_id AS file_id_5 FROM product_image t0 WHERE t0 . product_id = ?
Parameters :
[
"46f9b13b-30a8-4646-ad0a-17311d2d52cd "
]
SELECT t0 . id AS id_1 , t0 . is_main AS is_main_2 , t0 . position AS position_3 , t0 . product_id AS product_id_4 , t0 . file_id AS file_id_5 FROM product_image t0 WHERE t0 . product_id = '46f9b13b-30a8-4646-ad0a-17311d2d52cd' ;
Copy
51
0.28 ms
SELECT t0 . id AS id_1 , t0 . size AS size_2 , t0 . mime_type AS mime_type_3 FROM file t0 WHERE t0 . id = ?
Parameters :
[
"4afd1122-d20a-4cfc-8a16-8f17376786ca "
]
SELECT t0 . id AS id_1 , t0 . size AS size_2 , t0 . mime_type AS mime_type_3 FROM file t0 WHERE t0 . id = '4afd1122-d20a-4cfc-8a16-8f17376786ca' ;
Copy
52
0.24 ms
SELECT t0 . id AS id_1 , t0 . is_main AS is_main_2 , t0 . position AS position_3 , t0 . product_id AS product_id_4 , t0 . file_id AS file_id_5 FROM product_image t0 WHERE t0 . product_id = ?
Parameters :
[
"cb798ac5-9cc6-455c-981c-5f8ddb847048 "
]
SELECT t0 . id AS id_1 , t0 . is_main AS is_main_2 , t0 . position AS position_3 , t0 . product_id AS product_id_4 , t0 . file_id AS file_id_5 FROM product_image t0 WHERE t0 . product_id = 'cb798ac5-9cc6-455c-981c-5f8ddb847048' ;
Copy
53
0.23 ms
SELECT t0 . id AS id_1 , t0 . size AS size_2 , t0 . mime_type AS mime_type_3 FROM file t0 WHERE t0 . id = ?
Parameters :
[
"2e0ff2cd-4846-462a-8d88-cfd32822bb9e "
]
SELECT t0 . id AS id_1 , t0 . size AS size_2 , t0 . mime_type AS mime_type_3 FROM file t0 WHERE t0 . id = '2e0ff2cd-4846-462a-8d88-cfd32822bb9e' ;
Copy
54
0.49 ms
SELECT f0_ . id AS id_0 , f0_ . position AS position_1 , f0_ . label AS label_2 , f0_ . url AS url_3 , f0_ . is_active AS is_active_4 FROM footer_link f0_ WHERE f0_ . is_active = true ORDER BY f0_ . position ASC , f0_ . id ASC
SELECT f0_ . id AS id_0 , f0_ . position AS position_1 , f0_ . label AS label_2 , f0_ . url AS url_3 , f0_ . is_active AS is_active_4 FROM footer_link f0_ WHERE f0_ . is_active = true ORDER BY f0_ . position ASC , f0_ . id ASC ;
Copy
55
0.47 ms
SELECT s0_ . id AS id_0 , s0_ . position AS position_1 , s0_ . network AS network_2 , s0_ . url AS url_3 , s0_ . is_active AS is_active_4 FROM social_link s0_ WHERE s0_ . is_active = true ORDER BY s0_ . position ASC , s0_ . id ASC
SELECT s0_ . id AS id_0 , s0_ . position AS position_1 , s0_ . network AS network_2 , s0_ . url AS url_3 , s0_ . is_active AS is_active_4 FROM social_link s0_ WHERE s0_ . is_active = true ORDER BY s0_ . position ASC , s0_ . id ASC ;
Copy