Query | Affected | Num. rows | Took (ms) | Actions |
---|
SELECT `ShippingCost`.*, `ShippingCompany`.*, IF(cost IS NULL AND shipping_company_id <> 7, -1, 0) AS nullswitch, `ShippingCompany`.`id`, `Plant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_costs` AS `ShippingCost` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` ON (`ShippingCost`.`shipping_company_id` = `ShippingCompany`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`plants` AS `Plant` ON (`ShippingCost`.`plant_id` = `Plant`.`id`) WHERE `Plant`.`is_active` = '1' AND `ShippingCompany`.`is_active` = '1' AND `postcode_id` = 663 AND `plant_id` = 9 AND ((`cost` >= 0) OR (`cost` IS NULL)) AND NOT (`shipping_company_id` IS NULL) AND `shipping_company_id` != 6 ORDER BY `nullswitch` DESC, `cost` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductAttributeOptions`.`name`, `ProductAttributeOptions`.`description`, `Product`.`excludes_vat`, `VatRate`.`rate`, `ProductVariant`.`online_price`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, IF(ProductAttributeOptions.description LIKE "%forceprice%", 2, -1) AS force_price, IF(ProductAttributeOptions.description LIKE "%default%", 1, 0) AS is_default, IF(ProductAttributeOptions.description LIKE "%nosurcharge%", 0, 1) AS has_surcharge, IF(ProductAttributeOptions.description LIKE "%separatesurcharge%", 0, 1) AS separate_surcharge, IF(ProductAttributeOptions.description LIKE "%fromprice%", 1, 0) AS from_price, IF(ProductAttributeOptions.description LIKE "%poa%", 1, 0) AS is_poa FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOptions` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOptions`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 8 AND `ProductVariant`.`is_removed` = '0' AND `ProductVariant`.`price` IS NOT NULL AND `ProductVariant`.`price` > 0 AND ((`ProductAttributeOptions`.`description` LIKE '%\"main\"%') OR (`ProductAttributeOptions`.`description` LIKE '%\"default\"%')) ORDER BY `force_price` DESC, `is_default` ASC, `calculatedprice` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductVariant`.*, `VatRate`.*, `Product`.`excludes_vat`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, `ProductVariant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 48 AND `ProductVariant`.`is_removed` <> '1' | 12 | 12 | 1 | maybe slow |
SELECT `ProductAttributeOption`.`id`, `ProductAttributeOption`.`product_attribute_id`, `ProductAttributeOption`.`name`, `ProductAttributeOption`.`description`, `ProductAttributeOption`.`sequence`, `ProductAttributeOption`.`created`, `ProductAttributeOption`.`modified`, `EvShopProductAttributeOptionsProductVariant`.`id`, `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id`, `EvShopProductAttributeOptionsProductVariant`.`product_variant_id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `EvShopProductAttributeOptionsProductVariant` ON (`EvShopProductAttributeOptionsProductVariant`.`product_variant_id` IN (741, 742, 744, 746, 818, 2023) AND `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) WHERE `ProductAttributeOption`.`id` IN (129, 7, 120, 118, 55, 56, 8, 114, 123, 111, 9, 122, 110, 121, 11, 82, 57, 58, 53, 81, 80, 86, 117, 119, 124, 115, 42, 102, 101, 96, 95, 98, 97, 100, 99, 73, 14, 116, 104, 36, 37, 30, 31, 32, 18, 60, 107, 19, 106, 22, 92, 93, 94, 17, 16, 83, 23, 125, 126, 127, 128, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143) | 6 | 6 | 1 | maybe slow |
SELECT `Postcode`.`id`, `Postcode`.`outcode` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`postcodes` AS `Postcode` WHERE `outcode` LIKE 'DE4' LIMIT 1 | 1 | 1 | 0 | |
SELECT `ShippingCompany`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` WHERE `is_active` = '1' AND `pricing_only` = '1' | 0 | 0 | 0 | |
SELECT `ShippingCost`.*, `ShippingCompany`.*, IF(cost IS NULL AND shipping_company_id <> 7, -1, 0) AS nullswitch, `ShippingCompany`.`id`, `Plant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_costs` AS `ShippingCost` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` ON (`ShippingCost`.`shipping_company_id` = `ShippingCompany`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`plants` AS `Plant` ON (`ShippingCost`.`plant_id` = `Plant`.`id`) WHERE `Plant`.`is_active` = '1' AND `ShippingCompany`.`is_active` = '1' AND `postcode_id` = 663 AND `plant_id` = 9 AND ((`cost` >= 0) OR (`cost` IS NULL)) AND NOT (`shipping_company_id` IS NULL) AND `shipping_company_id` != 6 ORDER BY `nullswitch` DESC, `cost` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductAttributeOptions`.`name`, `ProductAttributeOptions`.`description`, `Product`.`excludes_vat`, `VatRate`.`rate`, `ProductVariant`.`online_price`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, IF(ProductAttributeOptions.description LIKE "%forceprice%", 2, -1) AS force_price, IF(ProductAttributeOptions.description LIKE "%default%", 1, 0) AS is_default, IF(ProductAttributeOptions.description LIKE "%nosurcharge%", 0, 1) AS has_surcharge, IF(ProductAttributeOptions.description LIKE "%separatesurcharge%", 0, 1) AS separate_surcharge, IF(ProductAttributeOptions.description LIKE "%fromprice%", 1, 0) AS from_price, IF(ProductAttributeOptions.description LIKE "%poa%", 1, 0) AS is_poa FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOptions` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOptions`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 48 AND `ProductVariant`.`is_removed` = '0' AND `ProductVariant`.`price` IS NOT NULL AND `ProductVariant`.`price` > 0 AND ((`ProductAttributeOptions`.`description` LIKE '%\"main\"%') OR (`ProductAttributeOptions`.`description` LIKE '%\"default\"%')) ORDER BY `force_price` DESC, `is_default` ASC, `calculatedprice` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductVariant`.*, `VatRate`.*, `Product`.`excludes_vat`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, `ProductVariant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 44 AND `ProductVariant`.`is_removed` <> '1' | 18 | 18 | 1 | maybe slow |
SELECT `ProductAttributeOption`.`id`, `ProductAttributeOption`.`product_attribute_id`, `ProductAttributeOption`.`name`, `ProductAttributeOption`.`description`, `ProductAttributeOption`.`sequence`, `ProductAttributeOption`.`created`, `ProductAttributeOption`.`modified`, `EvShopProductAttributeOptionsProductVariant`.`id`, `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id`, `EvShopProductAttributeOptionsProductVariant`.`product_variant_id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `EvShopProductAttributeOptionsProductVariant` ON (`EvShopProductAttributeOptionsProductVariant`.`product_variant_id` IN (1621, 1622, 1623, 1624, 1626, 2027) AND `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) WHERE `ProductAttributeOption`.`id` IN (129, 7, 120, 118, 55, 56, 8, 114, 123, 111, 9, 122, 110, 121, 11, 82, 57, 58, 53, 81, 80, 86, 117, 119, 124, 115, 42, 102, 101, 96, 95, 98, 97, 100, 99, 73, 14, 116, 104, 36, 37, 30, 31, 32, 18, 60, 107, 19, 106, 22, 92, 93, 94, 17, 16, 83, 23, 125, 126, 127, 128, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143) | 6 | 6 | 1 | maybe slow |
SELECT `Postcode`.`id`, `Postcode`.`outcode` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`postcodes` AS `Postcode` WHERE `outcode` LIKE 'DE4' LIMIT 1 | 1 | 1 | 0 | |
SELECT `ShippingCompany`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` WHERE `is_active` = '1' AND `pricing_only` = '1' | 0 | 0 | 0 | |
SELECT `ShippingCost`.*, `ShippingCompany`.*, IF(cost IS NULL AND shipping_company_id <> 7, -1, 0) AS nullswitch, `ShippingCompany`.`id`, `Plant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_costs` AS `ShippingCost` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` ON (`ShippingCost`.`shipping_company_id` = `ShippingCompany`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`plants` AS `Plant` ON (`ShippingCost`.`plant_id` = `Plant`.`id`) WHERE `Plant`.`is_active` = '1' AND `ShippingCompany`.`is_active` = '1' AND `postcode_id` = 663 AND `plant_id` = 9 AND ((`cost` >= 0) OR (`cost` IS NULL)) AND NOT (`shipping_company_id` IS NULL) AND `shipping_company_id` != 6 ORDER BY `nullswitch` DESC, `cost` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductAttributeOptions`.`name`, `ProductAttributeOptions`.`description`, `Product`.`excludes_vat`, `VatRate`.`rate`, `ProductVariant`.`online_price`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, IF(ProductAttributeOptions.description LIKE "%forceprice%", 2, -1) AS force_price, IF(ProductAttributeOptions.description LIKE "%default%", 1, 0) AS is_default, IF(ProductAttributeOptions.description LIKE "%nosurcharge%", 0, 1) AS has_surcharge, IF(ProductAttributeOptions.description LIKE "%separatesurcharge%", 0, 1) AS separate_surcharge, IF(ProductAttributeOptions.description LIKE "%fromprice%", 1, 0) AS from_price, IF(ProductAttributeOptions.description LIKE "%poa%", 1, 0) AS is_poa FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOptions` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOptions`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 44 AND `ProductVariant`.`is_removed` = '0' AND `ProductVariant`.`price` IS NOT NULL AND `ProductVariant`.`price` > 0 AND ((`ProductAttributeOptions`.`description` LIKE '%\"main\"%') OR (`ProductAttributeOptions`.`description` LIKE '%\"default\"%')) ORDER BY `force_price` DESC, `is_default` ASC, `calculatedprice` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductVariant`.*, `VatRate`.*, `Product`.`excludes_vat`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, `ProductVariant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 275 AND `ProductVariant`.`is_removed` <> '1' | 18 | 18 | 1 | maybe slow |
SELECT `ProductAttributeOption`.`id`, `ProductAttributeOption`.`product_attribute_id`, `ProductAttributeOption`.`name`, `ProductAttributeOption`.`description`, `ProductAttributeOption`.`sequence`, `ProductAttributeOption`.`created`, `ProductAttributeOption`.`modified`, `EvShopProductAttributeOptionsProductVariant`.`id`, `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id`, `EvShopProductAttributeOptionsProductVariant`.`product_variant_id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `EvShopProductAttributeOptionsProductVariant` ON (`EvShopProductAttributeOptionsProductVariant`.`product_variant_id` IN (1893, 1894, 1895, 1897, 2025, 2228) AND `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) WHERE `ProductAttributeOption`.`id` IN (129, 7, 120, 118, 55, 56, 8, 114, 123, 111, 9, 122, 110, 121, 11, 82, 57, 58, 53, 81, 80, 86, 117, 119, 124, 115, 42, 102, 101, 96, 95, 98, 97, 100, 99, 73, 14, 116, 104, 36, 37, 30, 31, 32, 18, 60, 107, 19, 106, 22, 92, 93, 94, 17, 16, 83, 23, 125, 126, 127, 128, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143) | 6 | 6 | 1 | maybe slow |
SELECT `Postcode`.`id`, `Postcode`.`outcode` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`postcodes` AS `Postcode` WHERE `outcode` LIKE 'DE4' LIMIT 1 | 1 | 1 | 0 | |
SELECT `ShippingCompany`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` WHERE `is_active` = '1' AND `pricing_only` = '1' | 0 | 0 | 0 | |
SELECT `ShippingCost`.*, `ShippingCompany`.*, IF(cost IS NULL AND shipping_company_id <> 7, -1, 0) AS nullswitch, `ShippingCompany`.`id`, `Plant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_costs` AS `ShippingCost` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` ON (`ShippingCost`.`shipping_company_id` = `ShippingCompany`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`plants` AS `Plant` ON (`ShippingCost`.`plant_id` = `Plant`.`id`) WHERE `Plant`.`is_active` = '1' AND `ShippingCompany`.`is_active` = '1' AND `postcode_id` = 663 AND `plant_id` = 9 AND ((`cost` >= 0) OR (`cost` IS NULL)) AND NOT (`shipping_company_id` IS NULL) AND `shipping_company_id` != 6 ORDER BY `nullswitch` DESC, `cost` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductAttributeOptions`.`name`, `ProductAttributeOptions`.`description`, `Product`.`excludes_vat`, `VatRate`.`rate`, `ProductVariant`.`online_price`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, IF(ProductAttributeOptions.description LIKE "%forceprice%", 2, -1) AS force_price, IF(ProductAttributeOptions.description LIKE "%default%", 1, 0) AS is_default, IF(ProductAttributeOptions.description LIKE "%nosurcharge%", 0, 1) AS has_surcharge, IF(ProductAttributeOptions.description LIKE "%separatesurcharge%", 0, 1) AS separate_surcharge, IF(ProductAttributeOptions.description LIKE "%fromprice%", 1, 0) AS from_price, IF(ProductAttributeOptions.description LIKE "%poa%", 1, 0) AS is_poa FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOptions` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOptions`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 275 AND `ProductVariant`.`is_removed` = '0' AND `ProductVariant`.`price` IS NOT NULL AND `ProductVariant`.`price` > 0 AND ((`ProductAttributeOptions`.`description` LIKE '%\"main\"%') OR (`ProductAttributeOptions`.`description` LIKE '%\"default\"%')) ORDER BY `force_price` DESC, `is_default` ASC, `calculatedprice` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductVariant`.*, `VatRate`.*, `Product`.`excludes_vat`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, `ProductVariant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 6 AND `ProductVariant`.`is_removed` <> '1' | 12 | 12 | 1 | maybe slow |
SELECT `ProductAttributeOption`.`id`, `ProductAttributeOption`.`product_attribute_id`, `ProductAttributeOption`.`name`, `ProductAttributeOption`.`description`, `ProductAttributeOption`.`sequence`, `ProductAttributeOption`.`created`, `ProductAttributeOption`.`modified`, `EvShopProductAttributeOptionsProductVariant`.`id`, `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id`, `EvShopProductAttributeOptionsProductVariant`.`product_variant_id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `EvShopProductAttributeOptionsProductVariant` ON (`EvShopProductAttributeOptionsProductVariant`.`product_variant_id` IN (65, 66, 103, 151, 545, 2039) AND `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) WHERE `ProductAttributeOption`.`id` IN (129, 7, 120, 118, 55, 56, 8, 114, 123, 111, 9, 122, 110, 121, 11, 82, 57, 58, 53, 81, 80, 86, 117, 119, 124, 115, 42, 102, 101, 96, 95, 98, 97, 100, 99, 73, 14, 116, 104, 36, 37, 30, 31, 32, 18, 60, 107, 19, 106, 22, 92, 93, 94, 17, 16, 83, 23, 125, 126, 127, 128, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143) | 6 | 6 | 1 | maybe slow |
SELECT `Postcode`.`id`, `Postcode`.`outcode` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`postcodes` AS `Postcode` WHERE `outcode` LIKE 'DE4' LIMIT 1 | 1 | 1 | 0 | |
SELECT `ShippingCompany`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` WHERE `is_active` = '1' AND `pricing_only` = '1' | 0 | 0 | 0 | |
SELECT `ShippingCost`.*, `ShippingCompany`.*, IF(cost IS NULL AND shipping_company_id <> 7, -1, 0) AS nullswitch, `ShippingCompany`.`id`, `Plant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_costs` AS `ShippingCost` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` ON (`ShippingCost`.`shipping_company_id` = `ShippingCompany`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`plants` AS `Plant` ON (`ShippingCost`.`plant_id` = `Plant`.`id`) WHERE `Plant`.`is_active` = '1' AND `ShippingCompany`.`is_active` = '1' AND `postcode_id` = 663 AND `plant_id` = 9 AND ((`cost` >= 0) OR (`cost` IS NULL)) AND NOT (`shipping_company_id` IS NULL) AND `shipping_company_id` != 6 ORDER BY `nullswitch` DESC, `cost` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductAttributeOptions`.`name`, `ProductAttributeOptions`.`description`, `Product`.`excludes_vat`, `VatRate`.`rate`, `ProductVariant`.`online_price`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, IF(ProductAttributeOptions.description LIKE "%forceprice%", 2, -1) AS force_price, IF(ProductAttributeOptions.description LIKE "%default%", 1, 0) AS is_default, IF(ProductAttributeOptions.description LIKE "%nosurcharge%", 0, 1) AS has_surcharge, IF(ProductAttributeOptions.description LIKE "%separatesurcharge%", 0, 1) AS separate_surcharge, IF(ProductAttributeOptions.description LIKE "%fromprice%", 1, 0) AS from_price, IF(ProductAttributeOptions.description LIKE "%poa%", 1, 0) AS is_poa FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOptions` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOptions`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 6 AND `ProductVariant`.`is_removed` = '0' AND `ProductVariant`.`price` IS NOT NULL AND `ProductVariant`.`price` > 0 AND ((`ProductAttributeOptions`.`description` LIKE '%\"main\"%') OR (`ProductAttributeOptions`.`description` LIKE '%\"default\"%')) ORDER BY `force_price` DESC, `is_default` ASC, `calculatedprice` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductVariant`.*, `VatRate`.*, `Product`.`excludes_vat`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, `ProductVariant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 47 AND `ProductVariant`.`is_removed` <> '1' | 18 | 18 | 1 | maybe slow |
SELECT `ProductAttributeOption`.`id`, `ProductAttributeOption`.`product_attribute_id`, `ProductAttributeOption`.`name`, `ProductAttributeOption`.`description`, `ProductAttributeOption`.`sequence`, `ProductAttributeOption`.`created`, `ProductAttributeOption`.`modified`, `EvShopProductAttributeOptionsProductVariant`.`id`, `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id`, `EvShopProductAttributeOptionsProductVariant`.`product_variant_id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `EvShopProductAttributeOptionsProductVariant` ON (`EvShopProductAttributeOptionsProductVariant`.`product_variant_id` IN (363, 2022, 2084, 2215, 2226, 2230) AND `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) WHERE `ProductAttributeOption`.`id` IN (129, 7, 120, 118, 55, 56, 8, 114, 123, 111, 9, 122, 110, 121, 11, 82, 57, 58, 53, 81, 80, 86, 117, 119, 124, 115, 42, 102, 101, 96, 95, 98, 97, 100, 99, 73, 14, 116, 104, 36, 37, 30, 31, 32, 18, 60, 107, 19, 106, 22, 92, 93, 94, 17, 16, 83, 23, 125, 126, 127, 128, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143) | 6 | 6 | 1 | maybe slow |
SELECT `Postcode`.`id`, `Postcode`.`outcode` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`postcodes` AS `Postcode` WHERE `outcode` LIKE 'DE4' LIMIT 1 | 1 | 1 | 0 | |
SELECT `ShippingCompany`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` WHERE `is_active` = '1' AND `pricing_only` = '1' | 0 | 0 | 0 | |
SELECT `ShippingCost`.*, `ShippingCompany`.*, IF(cost IS NULL AND shipping_company_id <> 7, -1, 0) AS nullswitch, `ShippingCompany`.`id`, `Plant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_costs` AS `ShippingCost` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` ON (`ShippingCost`.`shipping_company_id` = `ShippingCompany`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`plants` AS `Plant` ON (`ShippingCost`.`plant_id` = `Plant`.`id`) WHERE `Plant`.`is_active` = '1' AND `ShippingCompany`.`is_active` = '1' AND `postcode_id` = 663 AND `plant_id` = 9 AND ((`cost` >= 0) OR (`cost` IS NULL)) AND NOT (`shipping_company_id` IS NULL) AND `shipping_company_id` != 6 ORDER BY `nullswitch` DESC, `cost` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductAttributeOptions`.`name`, `ProductAttributeOptions`.`description`, `Product`.`excludes_vat`, `VatRate`.`rate`, `ProductVariant`.`online_price`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, IF(ProductAttributeOptions.description LIKE "%forceprice%", 2, -1) AS force_price, IF(ProductAttributeOptions.description LIKE "%default%", 1, 0) AS is_default, IF(ProductAttributeOptions.description LIKE "%nosurcharge%", 0, 1) AS has_surcharge, IF(ProductAttributeOptions.description LIKE "%separatesurcharge%", 0, 1) AS separate_surcharge, IF(ProductAttributeOptions.description LIKE "%fromprice%", 1, 0) AS from_price, IF(ProductAttributeOptions.description LIKE "%poa%", 1, 0) AS is_poa FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOptions` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOptions`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 47 AND `ProductVariant`.`is_removed` = '0' AND `ProductVariant`.`price` IS NOT NULL AND `ProductVariant`.`price` > 0 AND ((`ProductAttributeOptions`.`description` LIKE '%\"main\"%') OR (`ProductAttributeOptions`.`description` LIKE '%\"default\"%')) ORDER BY `force_price` DESC, `is_default` ASC, `calculatedprice` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductVariant`.*, `VatRate`.*, `Product`.`excludes_vat`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, `ProductVariant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 276 AND `ProductVariant`.`is_removed` <> '1' | 18 | 18 | 1 | maybe slow |
SELECT `ProductAttributeOption`.`id`, `ProductAttributeOption`.`product_attribute_id`, `ProductAttributeOption`.`name`, `ProductAttributeOption`.`description`, `ProductAttributeOption`.`sequence`, `ProductAttributeOption`.`created`, `ProductAttributeOption`.`modified`, `EvShopProductAttributeOptionsProductVariant`.`id`, `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id`, `EvShopProductAttributeOptionsProductVariant`.`product_variant_id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `EvShopProductAttributeOptionsProductVariant` ON (`EvShopProductAttributeOptionsProductVariant`.`product_variant_id` IN (1900, 1901, 1902, 1904, 2029, 2227) AND `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) WHERE `ProductAttributeOption`.`id` IN (129, 7, 120, 118, 55, 56, 8, 114, 123, 111, 9, 122, 110, 121, 11, 82, 57, 58, 53, 81, 80, 86, 117, 119, 124, 115, 42, 102, 101, 96, 95, 98, 97, 100, 99, 73, 14, 116, 104, 36, 37, 30, 31, 32, 18, 60, 107, 19, 106, 22, 92, 93, 94, 17, 16, 83, 23, 125, 126, 127, 128, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143) | 6 | 6 | 1 | maybe slow |
SELECT `Postcode`.`id`, `Postcode`.`outcode` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`postcodes` AS `Postcode` WHERE `outcode` LIKE 'DE4' LIMIT 1 | 1 | 1 | 0 | |
SELECT `ShippingCompany`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` WHERE `is_active` = '1' AND `pricing_only` = '1' | 0 | 0 | 0 | |
SELECT `ShippingCost`.*, `ShippingCompany`.*, IF(cost IS NULL AND shipping_company_id <> 7, -1, 0) AS nullswitch, `ShippingCompany`.`id`, `Plant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_costs` AS `ShippingCost` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` ON (`ShippingCost`.`shipping_company_id` = `ShippingCompany`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`plants` AS `Plant` ON (`ShippingCost`.`plant_id` = `Plant`.`id`) WHERE `Plant`.`is_active` = '1' AND `ShippingCompany`.`is_active` = '1' AND `postcode_id` = 663 AND `plant_id` = 9 AND ((`cost` >= 0) OR (`cost` IS NULL)) AND NOT (`shipping_company_id` IS NULL) AND `shipping_company_id` != 6 ORDER BY `nullswitch` DESC, `cost` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductAttributeOptions`.`name`, `ProductAttributeOptions`.`description`, `Product`.`excludes_vat`, `VatRate`.`rate`, `ProductVariant`.`online_price`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, IF(ProductAttributeOptions.description LIKE "%forceprice%", 2, -1) AS force_price, IF(ProductAttributeOptions.description LIKE "%default%", 1, 0) AS is_default, IF(ProductAttributeOptions.description LIKE "%nosurcharge%", 0, 1) AS has_surcharge, IF(ProductAttributeOptions.description LIKE "%separatesurcharge%", 0, 1) AS separate_surcharge, IF(ProductAttributeOptions.description LIKE "%fromprice%", 1, 0) AS from_price, IF(ProductAttributeOptions.description LIKE "%poa%", 1, 0) AS is_poa FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOptions` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOptions`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 276 AND `ProductVariant`.`is_removed` = '0' AND `ProductVariant`.`price` IS NOT NULL AND `ProductVariant`.`price` > 0 AND ((`ProductAttributeOptions`.`description` LIKE '%\"main\"%') OR (`ProductAttributeOptions`.`description` LIKE '%\"default\"%')) ORDER BY `force_price` DESC, `is_default` ASC, `calculatedprice` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductVariant`.*, `VatRate`.*, `Product`.`excludes_vat`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, `ProductVariant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 258 AND `ProductVariant`.`is_removed` <> '1' | 12 | 12 | 1 | maybe slow |
SELECT `ProductAttributeOption`.`id`, `ProductAttributeOption`.`product_attribute_id`, `ProductAttributeOption`.`name`, `ProductAttributeOption`.`description`, `ProductAttributeOption`.`sequence`, `ProductAttributeOption`.`created`, `ProductAttributeOption`.`modified`, `EvShopProductAttributeOptionsProductVariant`.`id`, `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id`, `EvShopProductAttributeOptionsProductVariant`.`product_variant_id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `EvShopProductAttributeOptionsProductVariant` ON (`EvShopProductAttributeOptionsProductVariant`.`product_variant_id` IN (1700, 1701, 1702, 1704, 1844, 2030) AND `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) WHERE `ProductAttributeOption`.`id` IN (129, 7, 120, 118, 55, 56, 8, 114, 123, 111, 9, 122, 110, 121, 11, 82, 57, 58, 53, 81, 80, 86, 117, 119, 124, 115, 42, 102, 101, 96, 95, 98, 97, 100, 99, 73, 14, 116, 104, 36, 37, 30, 31, 32, 18, 60, 107, 19, 106, 22, 92, 93, 94, 17, 16, 83, 23, 125, 126, 127, 128, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143) | 6 | 6 | 1 | maybe slow |
SELECT `Postcode`.`id`, `Postcode`.`outcode` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`postcodes` AS `Postcode` WHERE `outcode` LIKE 'DE4' LIMIT 1 | 1 | 1 | 1 | |
SELECT `ShippingCompany`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` WHERE `is_active` = '1' AND `pricing_only` = '1' | 0 | 0 | 0 | |
SELECT `ShippingCost`.*, `ShippingCompany`.*, IF(cost IS NULL AND shipping_company_id <> 7, -1, 0) AS nullswitch, `ShippingCompany`.`id`, `Plant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_costs` AS `ShippingCost` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` ON (`ShippingCost`.`shipping_company_id` = `ShippingCompany`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`plants` AS `Plant` ON (`ShippingCost`.`plant_id` = `Plant`.`id`) WHERE `Plant`.`is_active` = '1' AND `ShippingCompany`.`is_active` = '1' AND `postcode_id` = 663 AND `plant_id` = 9 AND ((`cost` >= 0) OR (`cost` IS NULL)) AND NOT (`shipping_company_id` IS NULL) AND `shipping_company_id` != 6 ORDER BY `nullswitch` DESC, `cost` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductAttributeOptions`.`name`, `ProductAttributeOptions`.`description`, `Product`.`excludes_vat`, `VatRate`.`rate`, `ProductVariant`.`online_price`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, IF(ProductAttributeOptions.description LIKE "%forceprice%", 2, -1) AS force_price, IF(ProductAttributeOptions.description LIKE "%default%", 1, 0) AS is_default, IF(ProductAttributeOptions.description LIKE "%nosurcharge%", 0, 1) AS has_surcharge, IF(ProductAttributeOptions.description LIKE "%separatesurcharge%", 0, 1) AS separate_surcharge, IF(ProductAttributeOptions.description LIKE "%fromprice%", 1, 0) AS from_price, IF(ProductAttributeOptions.description LIKE "%poa%", 1, 0) AS is_poa FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOptions` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOptions`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 258 AND `ProductVariant`.`is_removed` = '0' AND `ProductVariant`.`price` IS NOT NULL AND `ProductVariant`.`price` > 0 AND ((`ProductAttributeOptions`.`description` LIKE '%\"main\"%') OR (`ProductAttributeOptions`.`description` LIKE '%\"default\"%')) ORDER BY `force_price` DESC, `is_default` ASC, `calculatedprice` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductVariant`.*, `VatRate`.*, `Product`.`excludes_vat`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, `ProductVariant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 5 AND `ProductVariant`.`is_removed` <> '1' | 6 | 6 | 1 | maybe slow |
SELECT `ProductAttributeOption`.`id`, `ProductAttributeOption`.`product_attribute_id`, `ProductAttributeOption`.`name`, `ProductAttributeOption`.`description`, `ProductAttributeOption`.`sequence`, `ProductAttributeOption`.`created`, `ProductAttributeOption`.`modified`, `EvShopProductAttributeOptionsProductVariant`.`id`, `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id`, `EvShopProductAttributeOptionsProductVariant`.`product_variant_id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `EvShopProductAttributeOptionsProductVariant` ON (`EvShopProductAttributeOptionsProductVariant`.`product_variant_id` IN (101, 2034) AND `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) WHERE `ProductAttributeOption`.`id` IN (129, 7, 120, 118, 55, 56, 8, 114, 123, 111, 9, 122, 110, 121, 11, 82, 57, 58, 53, 81, 80, 86, 117, 119, 124, 115, 42, 102, 101, 96, 95, 98, 97, 100, 99, 73, 14, 116, 104, 36, 37, 30, 31, 32, 18, 60, 107, 19, 106, 22, 92, 93, 94, 17, 16, 83, 23, 125, 126, 127, 128, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143) | 2 | 2 | 1 | maybe slow |
SELECT `Postcode`.`id`, `Postcode`.`outcode` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`postcodes` AS `Postcode` WHERE `outcode` LIKE 'DE4' LIMIT 1 | 1 | 1 | 0 | |
SELECT `ShippingCompany`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` WHERE `is_active` = '1' AND `pricing_only` = '1' | 0 | 0 | 0 | |
SELECT `ShippingCost`.*, `ShippingCompany`.*, IF(cost IS NULL AND shipping_company_id <> 7, -1, 0) AS nullswitch, `ShippingCompany`.`id`, `Plant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_costs` AS `ShippingCost` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` ON (`ShippingCost`.`shipping_company_id` = `ShippingCompany`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`plants` AS `Plant` ON (`ShippingCost`.`plant_id` = `Plant`.`id`) WHERE `Plant`.`is_active` = '1' AND `ShippingCompany`.`is_active` = '1' AND `postcode_id` = 663 AND `plant_id` = 9 AND ((`cost` >= 0) OR (`cost` IS NULL)) AND NOT (`shipping_company_id` IS NULL) AND `shipping_company_id` != 6 ORDER BY `nullswitch` DESC, `cost` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductAttributeOptions`.`name`, `ProductAttributeOptions`.`description`, `Product`.`excludes_vat`, `VatRate`.`rate`, `ProductVariant`.`online_price`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, IF(ProductAttributeOptions.description LIKE "%forceprice%", 2, -1) AS force_price, IF(ProductAttributeOptions.description LIKE "%default%", 1, 0) AS is_default, IF(ProductAttributeOptions.description LIKE "%nosurcharge%", 0, 1) AS has_surcharge, IF(ProductAttributeOptions.description LIKE "%separatesurcharge%", 0, 1) AS separate_surcharge, IF(ProductAttributeOptions.description LIKE "%fromprice%", 1, 0) AS from_price, IF(ProductAttributeOptions.description LIKE "%poa%", 1, 0) AS is_poa FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOptions` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOptions`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 5 AND `ProductVariant`.`is_removed` = '0' AND `ProductVariant`.`price` IS NOT NULL AND `ProductVariant`.`price` > 0 AND ((`ProductAttributeOptions`.`description` LIKE '%\"main\"%') OR (`ProductAttributeOptions`.`description` LIKE '%\"default\"%')) ORDER BY `force_price` DESC, `is_default` ASC, `calculatedprice` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductVariant`.*, `VatRate`.*, `Product`.`excludes_vat`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, `ProductVariant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 45 AND `ProductVariant`.`is_removed` <> '1' | 18 | 18 | 1 | maybe slow |
SELECT `ProductAttributeOption`.`id`, `ProductAttributeOption`.`product_attribute_id`, `ProductAttributeOption`.`name`, `ProductAttributeOption`.`description`, `ProductAttributeOption`.`sequence`, `ProductAttributeOption`.`created`, `ProductAttributeOption`.`modified`, `EvShopProductAttributeOptionsProductVariant`.`id`, `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id`, `EvShopProductAttributeOptionsProductVariant`.`product_variant_id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `EvShopProductAttributeOptionsProductVariant` ON (`EvShopProductAttributeOptionsProductVariant`.`product_variant_id` IN (345, 346, 349, 351, 1723, 2035) AND `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) WHERE `ProductAttributeOption`.`id` IN (129, 7, 120, 118, 55, 56, 8, 114, 123, 111, 9, 122, 110, 121, 11, 82, 57, 58, 53, 81, 80, 86, 117, 119, 124, 115, 42, 102, 101, 96, 95, 98, 97, 100, 99, 73, 14, 116, 104, 36, 37, 30, 31, 32, 18, 60, 107, 19, 106, 22, 92, 93, 94, 17, 16, 83, 23, 125, 126, 127, 128, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143) | 6 | 6 | 1 | maybe slow |
SELECT `Postcode`.`id`, `Postcode`.`outcode` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`postcodes` AS `Postcode` WHERE `outcode` LIKE 'DE4' LIMIT 1 | 1 | 1 | 0 | |
SELECT `ShippingCompany`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` WHERE `is_active` = '1' AND `pricing_only` = '1' | 0 | 0 | 0 | |
SELECT `ShippingCost`.*, `ShippingCompany`.*, IF(cost IS NULL AND shipping_company_id <> 7, -1, 0) AS nullswitch, `ShippingCompany`.`id`, `Plant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_costs` AS `ShippingCost` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` ON (`ShippingCost`.`shipping_company_id` = `ShippingCompany`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`plants` AS `Plant` ON (`ShippingCost`.`plant_id` = `Plant`.`id`) WHERE `Plant`.`is_active` = '1' AND `ShippingCompany`.`is_active` = '1' AND `postcode_id` = 663 AND `plant_id` = 9 AND ((`cost` >= 0) OR (`cost` IS NULL)) AND NOT (`shipping_company_id` IS NULL) AND `shipping_company_id` != 6 ORDER BY `nullswitch` DESC, `cost` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductAttributeOptions`.`name`, `ProductAttributeOptions`.`description`, `Product`.`excludes_vat`, `VatRate`.`rate`, `ProductVariant`.`online_price`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, IF(ProductAttributeOptions.description LIKE "%forceprice%", 2, -1) AS force_price, IF(ProductAttributeOptions.description LIKE "%default%", 1, 0) AS is_default, IF(ProductAttributeOptions.description LIKE "%nosurcharge%", 0, 1) AS has_surcharge, IF(ProductAttributeOptions.description LIKE "%separatesurcharge%", 0, 1) AS separate_surcharge, IF(ProductAttributeOptions.description LIKE "%fromprice%", 1, 0) AS from_price, IF(ProductAttributeOptions.description LIKE "%poa%", 1, 0) AS is_poa FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOptions` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOptions`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 45 AND `ProductVariant`.`is_removed` = '0' AND `ProductVariant`.`price` IS NOT NULL AND `ProductVariant`.`price` > 0 AND ((`ProductAttributeOptions`.`description` LIKE '%\"main\"%') OR (`ProductAttributeOptions`.`description` LIKE '%\"default\"%')) ORDER BY `force_price` DESC, `is_default` ASC, `calculatedprice` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductVariant`.*, `VatRate`.*, `Product`.`excludes_vat`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, `ProductVariant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 26 AND `ProductVariant`.`is_removed` <> '1' | 18 | 18 | 1 | maybe slow |
SELECT `ProductAttributeOption`.`id`, `ProductAttributeOption`.`product_attribute_id`, `ProductAttributeOption`.`name`, `ProductAttributeOption`.`description`, `ProductAttributeOption`.`sequence`, `ProductAttributeOption`.`created`, `ProductAttributeOption`.`modified`, `EvShopProductAttributeOptionsProductVariant`.`id`, `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id`, `EvShopProductAttributeOptionsProductVariant`.`product_variant_id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `EvShopProductAttributeOptionsProductVariant` ON (`EvShopProductAttributeOptionsProductVariant`.`product_variant_id` IN (177, 178, 180, 181, 183, 2036) AND `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) WHERE `ProductAttributeOption`.`id` IN (129, 7, 120, 118, 55, 56, 8, 114, 123, 111, 9, 122, 110, 121, 11, 82, 57, 58, 53, 81, 80, 86, 117, 119, 124, 115, 42, 102, 101, 96, 95, 98, 97, 100, 99, 73, 14, 116, 104, 36, 37, 30, 31, 32, 18, 60, 107, 19, 106, 22, 92, 93, 94, 17, 16, 83, 23, 125, 126, 127, 128, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143) | 6 | 6 | 1 | maybe slow |
SELECT `Postcode`.`id`, `Postcode`.`outcode` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`postcodes` AS `Postcode` WHERE `outcode` LIKE 'DE4' LIMIT 1 | 1 | 1 | 0 | |
SELECT `ShippingCompany`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` WHERE `is_active` = '1' AND `pricing_only` = '1' | 0 | 0 | 0 | |
SELECT `ShippingCost`.*, `ShippingCompany`.*, IF(cost IS NULL AND shipping_company_id <> 7, -1, 0) AS nullswitch, `ShippingCompany`.`id`, `Plant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_costs` AS `ShippingCost` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` ON (`ShippingCost`.`shipping_company_id` = `ShippingCompany`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`plants` AS `Plant` ON (`ShippingCost`.`plant_id` = `Plant`.`id`) WHERE `Plant`.`is_active` = '1' AND `ShippingCompany`.`is_active` = '1' AND `postcode_id` = 663 AND `plant_id` = 9 AND ((`cost` >= 0) OR (`cost` IS NULL)) AND NOT (`shipping_company_id` IS NULL) AND `shipping_company_id` != 6 ORDER BY `nullswitch` DESC, `cost` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductAttributeOptions`.`name`, `ProductAttributeOptions`.`description`, `Product`.`excludes_vat`, `VatRate`.`rate`, `ProductVariant`.`online_price`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, IF(ProductAttributeOptions.description LIKE "%forceprice%", 2, -1) AS force_price, IF(ProductAttributeOptions.description LIKE "%default%", 1, 0) AS is_default, IF(ProductAttributeOptions.description LIKE "%nosurcharge%", 0, 1) AS has_surcharge, IF(ProductAttributeOptions.description LIKE "%separatesurcharge%", 0, 1) AS separate_surcharge, IF(ProductAttributeOptions.description LIKE "%fromprice%", 1, 0) AS from_price, IF(ProductAttributeOptions.description LIKE "%poa%", 1, 0) AS is_poa FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOptions` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOptions`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 26 AND `ProductVariant`.`is_removed` = '0' AND `ProductVariant`.`price` IS NOT NULL AND `ProductVariant`.`price` > 0 AND ((`ProductAttributeOptions`.`description` LIKE '%\"main\"%') OR (`ProductAttributeOptions`.`description` LIKE '%\"default\"%')) ORDER BY `force_price` DESC, `is_default` ASC, `calculatedprice` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductVariant`.*, `VatRate`.*, `Product`.`excludes_vat`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, `ProductVariant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 27 AND `ProductVariant`.`is_removed` <> '1' | 12 | 12 | 1 | maybe slow |
SELECT `ProductAttributeOption`.`id`, `ProductAttributeOption`.`product_attribute_id`, `ProductAttributeOption`.`name`, `ProductAttributeOption`.`description`, `ProductAttributeOption`.`sequence`, `ProductAttributeOption`.`created`, `ProductAttributeOption`.`modified`, `EvShopProductAttributeOptionsProductVariant`.`id`, `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id`, `EvShopProductAttributeOptionsProductVariant`.`product_variant_id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `EvShopProductAttributeOptionsProductVariant` ON (`EvShopProductAttributeOptionsProductVariant`.`product_variant_id` IN (186, 187, 189, 190, 192, 2037) AND `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) WHERE `ProductAttributeOption`.`id` IN (129, 7, 120, 118, 55, 56, 8, 114, 123, 111, 9, 122, 110, 121, 11, 82, 57, 58, 53, 81, 80, 86, 117, 119, 124, 115, 42, 102, 101, 96, 95, 98, 97, 100, 99, 73, 14, 116, 104, 36, 37, 30, 31, 32, 18, 60, 107, 19, 106, 22, 92, 93, 94, 17, 16, 83, 23, 125, 126, 127, 128, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143) | 6 | 6 | 1 | maybe slow |
SELECT `Postcode`.`id`, `Postcode`.`outcode` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`postcodes` AS `Postcode` WHERE `outcode` LIKE 'DE4' LIMIT 1 | 1 | 1 | 0 | |
SELECT `ShippingCompany`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` WHERE `is_active` = '1' AND `pricing_only` = '1' | 0 | 0 | 0 | |
SELECT `ShippingCost`.*, `ShippingCompany`.*, IF(cost IS NULL AND shipping_company_id <> 7, -1, 0) AS nullswitch, `ShippingCompany`.`id`, `Plant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_costs` AS `ShippingCost` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` ON (`ShippingCost`.`shipping_company_id` = `ShippingCompany`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`plants` AS `Plant` ON (`ShippingCost`.`plant_id` = `Plant`.`id`) WHERE `Plant`.`is_active` = '1' AND `ShippingCompany`.`is_active` = '1' AND `postcode_id` = 663 AND `plant_id` = 9 AND ((`cost` >= 0) OR (`cost` IS NULL)) AND NOT (`shipping_company_id` IS NULL) AND `shipping_company_id` != 6 ORDER BY `nullswitch` DESC, `cost` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductAttributeOptions`.`name`, `ProductAttributeOptions`.`description`, `Product`.`excludes_vat`, `VatRate`.`rate`, `ProductVariant`.`online_price`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, IF(ProductAttributeOptions.description LIKE "%forceprice%", 2, -1) AS force_price, IF(ProductAttributeOptions.description LIKE "%default%", 1, 0) AS is_default, IF(ProductAttributeOptions.description LIKE "%nosurcharge%", 0, 1) AS has_surcharge, IF(ProductAttributeOptions.description LIKE "%separatesurcharge%", 0, 1) AS separate_surcharge, IF(ProductAttributeOptions.description LIKE "%fromprice%", 1, 0) AS from_price, IF(ProductAttributeOptions.description LIKE "%poa%", 1, 0) AS is_poa FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOptions` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOptions`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 27 AND `ProductVariant`.`is_removed` = '0' AND `ProductVariant`.`price` IS NOT NULL AND `ProductVariant`.`price` > 0 AND ((`ProductAttributeOptions`.`description` LIKE '%\"main\"%') OR (`ProductAttributeOptions`.`description` LIKE '%\"default\"%')) ORDER BY `force_price` DESC, `is_default` ASC, `calculatedprice` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductVariant`.*, `VatRate`.*, `Product`.`excludes_vat`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, `ProductVariant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 29 AND `ProductVariant`.`is_removed` <> '1' | 18 | 18 | 1 | maybe slow |
SELECT `ProductAttributeOption`.`id`, `ProductAttributeOption`.`product_attribute_id`, `ProductAttributeOption`.`name`, `ProductAttributeOption`.`description`, `ProductAttributeOption`.`sequence`, `ProductAttributeOption`.`created`, `ProductAttributeOption`.`modified`, `EvShopProductAttributeOptionsProductVariant`.`id`, `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id`, `EvShopProductAttributeOptionsProductVariant`.`product_variant_id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `EvShopProductAttributeOptionsProductVariant` ON (`EvShopProductAttributeOptionsProductVariant`.`product_variant_id` IN (204, 205, 207, 208, 210, 2038) AND `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) WHERE `ProductAttributeOption`.`id` IN (129, 7, 120, 118, 55, 56, 8, 114, 123, 111, 9, 122, 110, 121, 11, 82, 57, 58, 53, 81, 80, 86, 117, 119, 124, 115, 42, 102, 101, 96, 95, 98, 97, 100, 99, 73, 14, 116, 104, 36, 37, 30, 31, 32, 18, 60, 107, 19, 106, 22, 92, 93, 94, 17, 16, 83, 23, 125, 126, 127, 128, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143) | 6 | 6 | 1 | maybe slow |
SELECT `Postcode`.`id`, `Postcode`.`outcode` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`postcodes` AS `Postcode` WHERE `outcode` LIKE 'DE4' LIMIT 1 | 1 | 1 | 0 | |
SELECT `ShippingCompany`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` WHERE `is_active` = '1' AND `pricing_only` = '1' | 0 | 0 | 0 | |
SELECT `ShippingCost`.*, `ShippingCompany`.*, IF(cost IS NULL AND shipping_company_id <> 7, -1, 0) AS nullswitch, `ShippingCompany`.`id`, `Plant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_costs` AS `ShippingCost` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` ON (`ShippingCost`.`shipping_company_id` = `ShippingCompany`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`plants` AS `Plant` ON (`ShippingCost`.`plant_id` = `Plant`.`id`) WHERE `Plant`.`is_active` = '1' AND `ShippingCompany`.`is_active` = '1' AND `postcode_id` = 663 AND `plant_id` = 9 AND ((`cost` >= 0) OR (`cost` IS NULL)) AND NOT (`shipping_company_id` IS NULL) AND `shipping_company_id` != 6 ORDER BY `nullswitch` DESC, `cost` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductAttributeOptions`.`name`, `ProductAttributeOptions`.`description`, `Product`.`excludes_vat`, `VatRate`.`rate`, `ProductVariant`.`online_price`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, IF(ProductAttributeOptions.description LIKE "%forceprice%", 2, -1) AS force_price, IF(ProductAttributeOptions.description LIKE "%default%", 1, 0) AS is_default, IF(ProductAttributeOptions.description LIKE "%nosurcharge%", 0, 1) AS has_surcharge, IF(ProductAttributeOptions.description LIKE "%separatesurcharge%", 0, 1) AS separate_surcharge, IF(ProductAttributeOptions.description LIKE "%fromprice%", 1, 0) AS from_price, IF(ProductAttributeOptions.description LIKE "%poa%", 1, 0) AS is_poa FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOptions` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOptions`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 29 AND `ProductVariant`.`is_removed` = '0' AND `ProductVariant`.`price` IS NOT NULL AND `ProductVariant`.`price` > 0 AND ((`ProductAttributeOptions`.`description` LIKE '%\"main\"%') OR (`ProductAttributeOptions`.`description` LIKE '%\"default\"%')) ORDER BY `force_price` DESC, `is_default` ASC, `calculatedprice` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductVariant`.*, `VatRate`.*, `Product`.`excludes_vat`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, `ProductVariant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 28 AND `ProductVariant`.`is_removed` <> '1' | 18 | 18 | 1 | maybe slow |
SELECT `ProductAttributeOption`.`id`, `ProductAttributeOption`.`product_attribute_id`, `ProductAttributeOption`.`name`, `ProductAttributeOption`.`description`, `ProductAttributeOption`.`sequence`, `ProductAttributeOption`.`created`, `ProductAttributeOption`.`modified`, `EvShopProductAttributeOptionsProductVariant`.`id`, `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id`, `EvShopProductAttributeOptionsProductVariant`.`product_variant_id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `EvShopProductAttributeOptionsProductVariant` ON (`EvShopProductAttributeOptionsProductVariant`.`product_variant_id` IN (195, 196, 198, 199, 201, 2041) AND `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) WHERE `ProductAttributeOption`.`id` IN (129, 7, 120, 118, 55, 56, 8, 114, 123, 111, 9, 122, 110, 121, 11, 82, 57, 58, 53, 81, 80, 86, 117, 119, 124, 115, 42, 102, 101, 96, 95, 98, 97, 100, 99, 73, 14, 116, 104, 36, 37, 30, 31, 32, 18, 60, 107, 19, 106, 22, 92, 93, 94, 17, 16, 83, 23, 125, 126, 127, 128, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143) | 6 | 6 | 1 | maybe slow |
SELECT `Postcode`.`id`, `Postcode`.`outcode` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`postcodes` AS `Postcode` WHERE `outcode` LIKE 'DE4' LIMIT 1 | 1 | 1 | 0 | |
SELECT `ShippingCompany`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` WHERE `is_active` = '1' AND `pricing_only` = '1' | 0 | 0 | 0 | |
SELECT `ShippingCost`.*, `ShippingCompany`.*, IF(cost IS NULL AND shipping_company_id <> 7, -1, 0) AS nullswitch, `ShippingCompany`.`id`, `Plant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_costs` AS `ShippingCost` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` ON (`ShippingCost`.`shipping_company_id` = `ShippingCompany`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`plants` AS `Plant` ON (`ShippingCost`.`plant_id` = `Plant`.`id`) WHERE `Plant`.`is_active` = '1' AND `ShippingCompany`.`is_active` = '1' AND `postcode_id` = 663 AND `plant_id` = 9 AND ((`cost` >= 0) OR (`cost` IS NULL)) AND NOT (`shipping_company_id` IS NULL) AND `shipping_company_id` != 6 ORDER BY `nullswitch` DESC, `cost` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductAttributeOptions`.`name`, `ProductAttributeOptions`.`description`, `Product`.`excludes_vat`, `VatRate`.`rate`, `ProductVariant`.`online_price`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, IF(ProductAttributeOptions.description LIKE "%forceprice%", 2, -1) AS force_price, IF(ProductAttributeOptions.description LIKE "%default%", 1, 0) AS is_default, IF(ProductAttributeOptions.description LIKE "%nosurcharge%", 0, 1) AS has_surcharge, IF(ProductAttributeOptions.description LIKE "%separatesurcharge%", 0, 1) AS separate_surcharge, IF(ProductAttributeOptions.description LIKE "%fromprice%", 1, 0) AS from_price, IF(ProductAttributeOptions.description LIKE "%poa%", 1, 0) AS is_poa FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOptions` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOptions`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 28 AND `ProductVariant`.`is_removed` = '0' AND `ProductVariant`.`price` IS NOT NULL AND `ProductVariant`.`price` > 0 AND ((`ProductAttributeOptions`.`description` LIKE '%\"main\"%') OR (`ProductAttributeOptions`.`description` LIKE '%\"default\"%')) ORDER BY `force_price` DESC, `is_default` ASC, `calculatedprice` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductVariant`.*, `VatRate`.*, `Product`.`excludes_vat`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, `ProductVariant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 41 AND `ProductVariant`.`is_removed` <> '1' | 18 | 18 | 1 | maybe slow |
SELECT `ProductAttributeOption`.`id`, `ProductAttributeOption`.`product_attribute_id`, `ProductAttributeOption`.`name`, `ProductAttributeOption`.`description`, `ProductAttributeOption`.`sequence`, `ProductAttributeOption`.`created`, `ProductAttributeOption`.`modified`, `EvShopProductAttributeOptionsProductVariant`.`id`, `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id`, `EvShopProductAttributeOptionsProductVariant`.`product_variant_id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `EvShopProductAttributeOptionsProductVariant` ON (`EvShopProductAttributeOptionsProductVariant`.`product_variant_id` IN (309, 310, 312, 313, 315, 2043) AND `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) WHERE `ProductAttributeOption`.`id` IN (129, 7, 120, 118, 55, 56, 8, 114, 123, 111, 9, 122, 110, 121, 11, 82, 57, 58, 53, 81, 80, 86, 117, 119, 124, 115, 42, 102, 101, 96, 95, 98, 97, 100, 99, 73, 14, 116, 104, 36, 37, 30, 31, 32, 18, 60, 107, 19, 106, 22, 92, 93, 94, 17, 16, 83, 23, 125, 126, 127, 128, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143) | 6 | 6 | 1 | maybe slow |
SELECT `Postcode`.`id`, `Postcode`.`outcode` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`postcodes` AS `Postcode` WHERE `outcode` LIKE 'DE4' LIMIT 1 | 1 | 1 | 0 | |
SELECT `ShippingCompany`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` WHERE `is_active` = '1' AND `pricing_only` = '1' | 0 | 0 | 0 | |
SELECT `ShippingCost`.*, `ShippingCompany`.*, IF(cost IS NULL AND shipping_company_id <> 7, -1, 0) AS nullswitch, `ShippingCompany`.`id`, `Plant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_costs` AS `ShippingCost` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` ON (`ShippingCost`.`shipping_company_id` = `ShippingCompany`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`plants` AS `Plant` ON (`ShippingCost`.`plant_id` = `Plant`.`id`) WHERE `Plant`.`is_active` = '1' AND `ShippingCompany`.`is_active` = '1' AND `postcode_id` = 663 AND `plant_id` = 9 AND ((`cost` >= 0) OR (`cost` IS NULL)) AND NOT (`shipping_company_id` IS NULL) AND `shipping_company_id` != 6 ORDER BY `nullswitch` DESC, `cost` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductAttributeOptions`.`name`, `ProductAttributeOptions`.`description`, `Product`.`excludes_vat`, `VatRate`.`rate`, `ProductVariant`.`online_price`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, IF(ProductAttributeOptions.description LIKE "%forceprice%", 2, -1) AS force_price, IF(ProductAttributeOptions.description LIKE "%default%", 1, 0) AS is_default, IF(ProductAttributeOptions.description LIKE "%nosurcharge%", 0, 1) AS has_surcharge, IF(ProductAttributeOptions.description LIKE "%separatesurcharge%", 0, 1) AS separate_surcharge, IF(ProductAttributeOptions.description LIKE "%fromprice%", 1, 0) AS from_price, IF(ProductAttributeOptions.description LIKE "%poa%", 1, 0) AS is_poa FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOptions` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOptions`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 41 AND `ProductVariant`.`is_removed` = '0' AND `ProductVariant`.`price` IS NOT NULL AND `ProductVariant`.`price` > 0 AND ((`ProductAttributeOptions`.`description` LIKE '%\"main\"%') OR (`ProductAttributeOptions`.`description` LIKE '%\"default\"%')) ORDER BY `force_price` DESC, `is_default` ASC, `calculatedprice` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductVariant`.*, `VatRate`.*, `Product`.`excludes_vat`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, `ProductVariant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 269 AND `ProductVariant`.`is_removed` <> '1' | 18 | 18 | 1 | maybe slow |
SELECT `ProductAttributeOption`.`id`, `ProductAttributeOption`.`product_attribute_id`, `ProductAttributeOption`.`name`, `ProductAttributeOption`.`description`, `ProductAttributeOption`.`sequence`, `ProductAttributeOption`.`created`, `ProductAttributeOption`.`modified`, `EvShopProductAttributeOptionsProductVariant`.`id`, `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id`, `EvShopProductAttributeOptionsProductVariant`.`product_variant_id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `EvShopProductAttributeOptionsProductVariant` ON (`EvShopProductAttributeOptionsProductVariant`.`product_variant_id` IN (1776, 1777, 1778, 1780, 1781, 2044) AND `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) WHERE `ProductAttributeOption`.`id` IN (129, 7, 120, 118, 55, 56, 8, 114, 123, 111, 9, 122, 110, 121, 11, 82, 57, 58, 53, 81, 80, 86, 117, 119, 124, 115, 42, 102, 101, 96, 95, 98, 97, 100, 99, 73, 14, 116, 104, 36, 37, 30, 31, 32, 18, 60, 107, 19, 106, 22, 92, 93, 94, 17, 16, 83, 23, 125, 126, 127, 128, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143) | 6 | 6 | 1 | maybe slow |
SELECT `Postcode`.`id`, `Postcode`.`outcode` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`postcodes` AS `Postcode` WHERE `outcode` LIKE 'DE4' LIMIT 1 | 1 | 1 | 0 | |
SELECT `ShippingCompany`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` WHERE `is_active` = '1' AND `pricing_only` = '1' | 0 | 0 | 0 | |
SELECT `ShippingCost`.*, `ShippingCompany`.*, IF(cost IS NULL AND shipping_company_id <> 7, -1, 0) AS nullswitch, `ShippingCompany`.`id`, `Plant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_costs` AS `ShippingCost` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` ON (`ShippingCost`.`shipping_company_id` = `ShippingCompany`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`plants` AS `Plant` ON (`ShippingCost`.`plant_id` = `Plant`.`id`) WHERE `Plant`.`is_active` = '1' AND `ShippingCompany`.`is_active` = '1' AND `postcode_id` = 663 AND `plant_id` = 9 AND ((`cost` >= 0) OR (`cost` IS NULL)) AND NOT (`shipping_company_id` IS NULL) AND `shipping_company_id` != 6 ORDER BY `nullswitch` DESC, `cost` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductAttributeOptions`.`name`, `ProductAttributeOptions`.`description`, `Product`.`excludes_vat`, `VatRate`.`rate`, `ProductVariant`.`online_price`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, IF(ProductAttributeOptions.description LIKE "%forceprice%", 2, -1) AS force_price, IF(ProductAttributeOptions.description LIKE "%default%", 1, 0) AS is_default, IF(ProductAttributeOptions.description LIKE "%nosurcharge%", 0, 1) AS has_surcharge, IF(ProductAttributeOptions.description LIKE "%separatesurcharge%", 0, 1) AS separate_surcharge, IF(ProductAttributeOptions.description LIKE "%fromprice%", 1, 0) AS from_price, IF(ProductAttributeOptions.description LIKE "%poa%", 1, 0) AS is_poa FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOptions` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOptions`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 269 AND `ProductVariant`.`is_removed` = '0' AND `ProductVariant`.`price` IS NOT NULL AND `ProductVariant`.`price` > 0 AND ((`ProductAttributeOptions`.`description` LIKE '%\"main\"%') OR (`ProductAttributeOptions`.`description` LIKE '%\"default\"%')) ORDER BY `force_price` DESC, `is_default` ASC, `calculatedprice` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductVariant`.*, `VatRate`.*, `Product`.`excludes_vat`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, `ProductVariant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 24 AND `ProductVariant`.`is_removed` <> '1' | 18 | 18 | 1 | maybe slow |
SELECT `ProductAttributeOption`.`id`, `ProductAttributeOption`.`product_attribute_id`, `ProductAttributeOption`.`name`, `ProductAttributeOption`.`description`, `ProductAttributeOption`.`sequence`, `ProductAttributeOption`.`created`, `ProductAttributeOption`.`modified`, `EvShopProductAttributeOptionsProductVariant`.`id`, `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id`, `EvShopProductAttributeOptionsProductVariant`.`product_variant_id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `EvShopProductAttributeOptionsProductVariant` ON (`EvShopProductAttributeOptionsProductVariant`.`product_variant_id` IN (161, 162, 164, 165, 560, 2046) AND `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) WHERE `ProductAttributeOption`.`id` IN (129, 7, 120, 118, 55, 56, 8, 114, 123, 111, 9, 122, 110, 121, 11, 82, 57, 58, 53, 81, 80, 86, 117, 119, 124, 115, 42, 102, 101, 96, 95, 98, 97, 100, 99, 73, 14, 116, 104, 36, 37, 30, 31, 32, 18, 60, 107, 19, 106, 22, 92, 93, 94, 17, 16, 83, 23, 125, 126, 127, 128, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143) | 6 | 6 | 2 | maybe slow |
SELECT `Postcode`.`id`, `Postcode`.`outcode` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`postcodes` AS `Postcode` WHERE `outcode` LIKE 'DE4' LIMIT 1 | 1 | 1 | 0 | |
SELECT `ShippingCompany`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` WHERE `is_active` = '1' AND `pricing_only` = '1' | 0 | 0 | 0 | |
SELECT `ShippingCost`.*, `ShippingCompany`.*, IF(cost IS NULL AND shipping_company_id <> 7, -1, 0) AS nullswitch, `ShippingCompany`.`id`, `Plant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_costs` AS `ShippingCost` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` ON (`ShippingCost`.`shipping_company_id` = `ShippingCompany`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`plants` AS `Plant` ON (`ShippingCost`.`plant_id` = `Plant`.`id`) WHERE `Plant`.`is_active` = '1' AND `ShippingCompany`.`is_active` = '1' AND `postcode_id` = 663 AND `plant_id` = 9 AND ((`cost` >= 0) OR (`cost` IS NULL)) AND NOT (`shipping_company_id` IS NULL) AND `shipping_company_id` != 6 ORDER BY `nullswitch` DESC, `cost` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductAttributeOptions`.`name`, `ProductAttributeOptions`.`description`, `Product`.`excludes_vat`, `VatRate`.`rate`, `ProductVariant`.`online_price`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, IF(ProductAttributeOptions.description LIKE "%forceprice%", 2, -1) AS force_price, IF(ProductAttributeOptions.description LIKE "%default%", 1, 0) AS is_default, IF(ProductAttributeOptions.description LIKE "%nosurcharge%", 0, 1) AS has_surcharge, IF(ProductAttributeOptions.description LIKE "%separatesurcharge%", 0, 1) AS separate_surcharge, IF(ProductAttributeOptions.description LIKE "%fromprice%", 1, 0) AS from_price, IF(ProductAttributeOptions.description LIKE "%poa%", 1, 0) AS is_poa FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOptions` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOptions`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 24 AND `ProductVariant`.`is_removed` = '0' AND `ProductVariant`.`price` IS NOT NULL AND `ProductVariant`.`price` > 0 AND ((`ProductAttributeOptions`.`description` LIKE '%\"main\"%') OR (`ProductAttributeOptions`.`description` LIKE '%\"default\"%')) ORDER BY `force_price` DESC, `is_default` ASC, `calculatedprice` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductVariant`.*, `VatRate`.*, `Product`.`excludes_vat`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, `ProductVariant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 42 AND `ProductVariant`.`is_removed` <> '1' | 18 | 18 | 1 | maybe slow |
SELECT `ProductAttributeOption`.`id`, `ProductAttributeOption`.`product_attribute_id`, `ProductAttributeOption`.`name`, `ProductAttributeOption`.`description`, `ProductAttributeOption`.`sequence`, `ProductAttributeOption`.`created`, `ProductAttributeOption`.`modified`, `EvShopProductAttributeOptionsProductVariant`.`id`, `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id`, `EvShopProductAttributeOptionsProductVariant`.`product_variant_id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `EvShopProductAttributeOptionsProductVariant` ON (`EvShopProductAttributeOptionsProductVariant`.`product_variant_id` IN (837, 838, 843, 845, 847, 2047) AND `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) WHERE `ProductAttributeOption`.`id` IN (129, 7, 120, 118, 55, 56, 8, 114, 123, 111, 9, 122, 110, 121, 11, 82, 57, 58, 53, 81, 80, 86, 117, 119, 124, 115, 42, 102, 101, 96, 95, 98, 97, 100, 99, 73, 14, 116, 104, 36, 37, 30, 31, 32, 18, 60, 107, 19, 106, 22, 92, 93, 94, 17, 16, 83, 23, 125, 126, 127, 128, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143) | 6 | 6 | 1 | maybe slow |
SELECT `Postcode`.`id`, `Postcode`.`outcode` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`postcodes` AS `Postcode` WHERE `outcode` LIKE 'DE4' LIMIT 1 | 1 | 1 | 0 | |
SELECT `ShippingCompany`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` WHERE `is_active` = '1' AND `pricing_only` = '1' | 0 | 0 | 0 | |
SELECT `ShippingCost`.*, `ShippingCompany`.*, IF(cost IS NULL AND shipping_company_id <> 7, -1, 0) AS nullswitch, `ShippingCompany`.`id`, `Plant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_costs` AS `ShippingCost` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` ON (`ShippingCost`.`shipping_company_id` = `ShippingCompany`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`plants` AS `Plant` ON (`ShippingCost`.`plant_id` = `Plant`.`id`) WHERE `Plant`.`is_active` = '1' AND `ShippingCompany`.`is_active` = '1' AND `postcode_id` = 663 AND `plant_id` = 9 AND ((`cost` >= 0) OR (`cost` IS NULL)) AND NOT (`shipping_company_id` IS NULL) AND `shipping_company_id` != 6 ORDER BY `nullswitch` DESC, `cost` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductAttributeOptions`.`name`, `ProductAttributeOptions`.`description`, `Product`.`excludes_vat`, `VatRate`.`rate`, `ProductVariant`.`online_price`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, IF(ProductAttributeOptions.description LIKE "%forceprice%", 2, -1) AS force_price, IF(ProductAttributeOptions.description LIKE "%default%", 1, 0) AS is_default, IF(ProductAttributeOptions.description LIKE "%nosurcharge%", 0, 1) AS has_surcharge, IF(ProductAttributeOptions.description LIKE "%separatesurcharge%", 0, 1) AS separate_surcharge, IF(ProductAttributeOptions.description LIKE "%fromprice%", 1, 0) AS from_price, IF(ProductAttributeOptions.description LIKE "%poa%", 1, 0) AS is_poa FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOptions` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOptions`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 42 AND `ProductVariant`.`is_removed` = '0' AND `ProductVariant`.`price` IS NOT NULL AND `ProductVariant`.`price` > 0 AND ((`ProductAttributeOptions`.`description` LIKE '%\"main\"%') OR (`ProductAttributeOptions`.`description` LIKE '%\"default\"%')) ORDER BY `force_price` DESC, `is_default` ASC, `calculatedprice` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductVariant`.*, `VatRate`.*, `Product`.`excludes_vat`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, `ProductVariant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 43 AND `ProductVariant`.`is_removed` <> '1' | 12 | 12 | 1 | maybe slow |
SELECT `ProductAttributeOption`.`id`, `ProductAttributeOption`.`product_attribute_id`, `ProductAttributeOption`.`name`, `ProductAttributeOption`.`description`, `ProductAttributeOption`.`sequence`, `ProductAttributeOption`.`created`, `ProductAttributeOption`.`modified`, `EvShopProductAttributeOptionsProductVariant`.`id`, `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id`, `EvShopProductAttributeOptionsProductVariant`.`product_variant_id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `EvShopProductAttributeOptionsProductVariant` ON (`EvShopProductAttributeOptionsProductVariant`.`product_variant_id` IN (1532, 1533, 1534, 1535, 1537, 2048) AND `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) WHERE `ProductAttributeOption`.`id` IN (129, 7, 120, 118, 55, 56, 8, 114, 123, 111, 9, 122, 110, 121, 11, 82, 57, 58, 53, 81, 80, 86, 117, 119, 124, 115, 42, 102, 101, 96, 95, 98, 97, 100, 99, 73, 14, 116, 104, 36, 37, 30, 31, 32, 18, 60, 107, 19, 106, 22, 92, 93, 94, 17, 16, 83, 23, 125, 126, 127, 128, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143) | 6 | 6 | 1 | maybe slow |
SELECT `Postcode`.`id`, `Postcode`.`outcode` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`postcodes` AS `Postcode` WHERE `outcode` LIKE 'DE4' LIMIT 1 | 1 | 1 | 0 | |
SELECT `ShippingCompany`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` WHERE `is_active` = '1' AND `pricing_only` = '1' | 0 | 0 | 0 | |
SELECT `ShippingCost`.*, `ShippingCompany`.*, IF(cost IS NULL AND shipping_company_id <> 7, -1, 0) AS nullswitch, `ShippingCompany`.`id`, `Plant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_costs` AS `ShippingCost` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` ON (`ShippingCost`.`shipping_company_id` = `ShippingCompany`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`plants` AS `Plant` ON (`ShippingCost`.`plant_id` = `Plant`.`id`) WHERE `Plant`.`is_active` = '1' AND `ShippingCompany`.`is_active` = '1' AND `postcode_id` = 663 AND `plant_id` = 9 AND ((`cost` >= 0) OR (`cost` IS NULL)) AND NOT (`shipping_company_id` IS NULL) AND `shipping_company_id` != 6 ORDER BY `nullswitch` DESC, `cost` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductAttributeOptions`.`name`, `ProductAttributeOptions`.`description`, `Product`.`excludes_vat`, `VatRate`.`rate`, `ProductVariant`.`online_price`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, IF(ProductAttributeOptions.description LIKE "%forceprice%", 2, -1) AS force_price, IF(ProductAttributeOptions.description LIKE "%default%", 1, 0) AS is_default, IF(ProductAttributeOptions.description LIKE "%nosurcharge%", 0, 1) AS has_surcharge, IF(ProductAttributeOptions.description LIKE "%separatesurcharge%", 0, 1) AS separate_surcharge, IF(ProductAttributeOptions.description LIKE "%fromprice%", 1, 0) AS from_price, IF(ProductAttributeOptions.description LIKE "%poa%", 1, 0) AS is_poa FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOptions` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOptions`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 43 AND `ProductVariant`.`is_removed` = '0' AND `ProductVariant`.`price` IS NOT NULL AND `ProductVariant`.`price` > 0 AND ((`ProductAttributeOptions`.`description` LIKE '%\"main\"%') OR (`ProductAttributeOptions`.`description` LIKE '%\"default\"%')) ORDER BY `force_price` DESC, `is_default` ASC, `calculatedprice` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductVariant`.*, `VatRate`.*, `Product`.`excludes_vat`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, `ProductVariant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 40 AND `ProductVariant`.`is_removed` <> '1' | 18 | 18 | 1 | maybe slow |
SELECT `ProductAttributeOption`.`id`, `ProductAttributeOption`.`product_attribute_id`, `ProductAttributeOption`.`name`, `ProductAttributeOption`.`description`, `ProductAttributeOption`.`sequence`, `ProductAttributeOption`.`created`, `ProductAttributeOption`.`modified`, `EvShopProductAttributeOptionsProductVariant`.`id`, `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id`, `EvShopProductAttributeOptionsProductVariant`.`product_variant_id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `EvShopProductAttributeOptionsProductVariant` ON (`EvShopProductAttributeOptionsProductVariant`.`product_variant_id` IN (1685, 1686, 1687, 1688, 1690, 2049) AND `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) WHERE `ProductAttributeOption`.`id` IN (129, 7, 120, 118, 55, 56, 8, 114, 123, 111, 9, 122, 110, 121, 11, 82, 57, 58, 53, 81, 80, 86, 117, 119, 124, 115, 42, 102, 101, 96, 95, 98, 97, 100, 99, 73, 14, 116, 104, 36, 37, 30, 31, 32, 18, 60, 107, 19, 106, 22, 92, 93, 94, 17, 16, 83, 23, 125, 126, 127, 128, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143) | 6 | 6 | 1 | maybe slow |
SELECT `Postcode`.`id`, `Postcode`.`outcode` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`postcodes` AS `Postcode` WHERE `outcode` LIKE 'DE4' LIMIT 1 | 1 | 1 | 0 | |
SELECT `ShippingCompany`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` WHERE `is_active` = '1' AND `pricing_only` = '1' | 0 | 0 | 0 | |
SELECT `ShippingCost`.*, `ShippingCompany`.*, IF(cost IS NULL AND shipping_company_id <> 7, -1, 0) AS nullswitch, `ShippingCompany`.`id`, `Plant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_costs` AS `ShippingCost` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` ON (`ShippingCost`.`shipping_company_id` = `ShippingCompany`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`plants` AS `Plant` ON (`ShippingCost`.`plant_id` = `Plant`.`id`) WHERE `Plant`.`is_active` = '1' AND `ShippingCompany`.`is_active` = '1' AND `postcode_id` = 663 AND `plant_id` = 9 AND ((`cost` >= 0) OR (`cost` IS NULL)) AND NOT (`shipping_company_id` IS NULL) AND `shipping_company_id` != 6 ORDER BY `nullswitch` DESC, `cost` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductAttributeOptions`.`name`, `ProductAttributeOptions`.`description`, `Product`.`excludes_vat`, `VatRate`.`rate`, `ProductVariant`.`online_price`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, IF(ProductAttributeOptions.description LIKE "%forceprice%", 2, -1) AS force_price, IF(ProductAttributeOptions.description LIKE "%default%", 1, 0) AS is_default, IF(ProductAttributeOptions.description LIKE "%nosurcharge%", 0, 1) AS has_surcharge, IF(ProductAttributeOptions.description LIKE "%separatesurcharge%", 0, 1) AS separate_surcharge, IF(ProductAttributeOptions.description LIKE "%fromprice%", 1, 0) AS from_price, IF(ProductAttributeOptions.description LIKE "%poa%", 1, 0) AS is_poa FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOptions` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOptions`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 40 AND `ProductVariant`.`is_removed` = '0' AND `ProductVariant`.`price` IS NOT NULL AND `ProductVariant`.`price` > 0 AND ((`ProductAttributeOptions`.`description` LIKE '%\"main\"%') OR (`ProductAttributeOptions`.`description` LIKE '%\"default\"%')) ORDER BY `force_price` DESC, `is_default` ASC, `calculatedprice` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductVariant`.*, `VatRate`.*, `Product`.`excludes_vat`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, `ProductVariant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 272 AND `ProductVariant`.`is_removed` <> '1' | 6 | 6 | 1 | maybe slow |
SELECT `ProductAttributeOption`.`id`, `ProductAttributeOption`.`product_attribute_id`, `ProductAttributeOption`.`name`, `ProductAttributeOption`.`description`, `ProductAttributeOption`.`sequence`, `ProductAttributeOption`.`created`, `ProductAttributeOption`.`modified`, `EvShopProductAttributeOptionsProductVariant`.`id`, `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id`, `EvShopProductAttributeOptionsProductVariant`.`product_variant_id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `EvShopProductAttributeOptionsProductVariant` ON (`EvShopProductAttributeOptionsProductVariant`.`product_variant_id` IN (1785, 1786, 1787, 1885, 1887, 1988) AND `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) WHERE `ProductAttributeOption`.`id` IN (129, 7, 120, 118, 55, 56, 8, 114, 123, 111, 9, 122, 110, 121, 11, 82, 57, 58, 53, 81, 80, 86, 117, 119, 124, 115, 42, 102, 101, 96, 95, 98, 97, 100, 99, 73, 14, 116, 104, 36, 37, 30, 31, 32, 18, 60, 107, 19, 106, 22, 92, 93, 94, 17, 16, 83, 23, 125, 126, 127, 128, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143) | 6 | 6 | 1 | maybe slow |
SELECT `Postcode`.`id`, `Postcode`.`outcode` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`postcodes` AS `Postcode` WHERE `outcode` LIKE 'DE4' LIMIT 1 | 1 | 1 | 0 | |
SELECT `ShippingCompany`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` WHERE `is_active` = '1' AND `pricing_only` = '1' | 0 | 0 | 0 | |
SELECT `ShippingCost`.*, `ShippingCompany`.*, IF(cost IS NULL AND shipping_company_id <> 7, -1, 0) AS nullswitch, `ShippingCompany`.`id`, `Plant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_costs` AS `ShippingCost` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` ON (`ShippingCost`.`shipping_company_id` = `ShippingCompany`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`plants` AS `Plant` ON (`ShippingCost`.`plant_id` = `Plant`.`id`) WHERE `Plant`.`is_active` = '1' AND `ShippingCompany`.`is_active` = '1' AND `postcode_id` = 663 AND `plant_id` = 8 AND ((`cost` >= 0) OR (`cost` IS NULL)) AND NOT (`shipping_company_id` IS NULL) ORDER BY `nullswitch` DESC, `cost` ASC LIMIT 1 | 0 | 0 | 4 | maybe slow |
SELECT `Postcode`.`id`, `Postcode`.`outcode` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`postcodes` AS `Postcode` WHERE `outcode` LIKE 'DE4' LIMIT 1 | 1 | 1 | 0 | |
SELECT `ShippingCompany`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` WHERE `is_active` = '1' AND `pricing_only` = '1' | 0 | 0 | 0 | |
SELECT `ShippingCost`.*, `ShippingCompany`.*, IF(cost IS NULL AND shipping_company_id <> 7, -1, 0) AS nullswitch, `ShippingCompany`.`id`, `Plant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_costs` AS `ShippingCost` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` ON (`ShippingCost`.`shipping_company_id` = `ShippingCompany`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`plants` AS `Plant` ON (`ShippingCost`.`plant_id` = `Plant`.`id`) WHERE `Plant`.`is_active` = '1' AND `ShippingCompany`.`is_active` = '1' AND `postcode_id` = 663 AND `plant_id` = 8 AND ((`cost` >= 0) OR (`cost` IS NULL)) AND NOT (`shipping_company_id` IS NULL) ORDER BY `nullswitch` DESC, `cost` ASC LIMIT 1 | 0 | 0 | 3 | maybe slow |
SELECT `ProductAttributeOptions`.`name`, `ProductAttributeOptions`.`description`, `Product`.`excludes_vat`, `VatRate`.`rate`, `ProductVariant`.`online_price`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, IF(ProductAttributeOptions.description LIKE "%forceprice%", 2, -1) AS force_price, IF(ProductAttributeOptions.description LIKE "%default%", 1, 0) AS is_default, IF(ProductAttributeOptions.description LIKE "%nosurcharge%", 0, 1) AS has_surcharge, IF(ProductAttributeOptions.description LIKE "%separatesurcharge%", 0, 1) AS separate_surcharge, IF(ProductAttributeOptions.description LIKE "%fromprice%", 1, 0) AS from_price, IF(ProductAttributeOptions.description LIKE "%poa%", 1, 0) AS is_poa FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOptions` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOptions`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 272 AND `ProductVariant`.`is_removed` = '0' AND `ProductVariant`.`price` IS NOT NULL AND `ProductVariant`.`price` > 0 AND ((`ProductAttributeOptions`.`description` LIKE '%\"main\"%') OR (`ProductAttributeOptions`.`description` LIKE '%\"default\"%')) ORDER BY `force_price` DESC, `is_default` ASC, `calculatedprice` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductVariant`.*, `VatRate`.*, `Product`.`excludes_vat`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, `ProductVariant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 270 AND `ProductVariant`.`is_removed` <> '1' | 3 | 3 | 1 | maybe slow |
SELECT `ProductAttributeOption`.`id`, `ProductAttributeOption`.`product_attribute_id`, `ProductAttributeOption`.`name`, `ProductAttributeOption`.`description`, `ProductAttributeOption`.`sequence`, `ProductAttributeOption`.`created`, `ProductAttributeOption`.`modified`, `EvShopProductAttributeOptionsProductVariant`.`id`, `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id`, `EvShopProductAttributeOptionsProductVariant`.`product_variant_id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `EvShopProductAttributeOptionsProductVariant` ON (`EvShopProductAttributeOptionsProductVariant`.`product_variant_id` IN (1870, 1871, 2002) AND `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) WHERE `ProductAttributeOption`.`id` IN (129, 7, 120, 118, 55, 56, 8, 114, 123, 111, 9, 122, 110, 121, 11, 82, 57, 58, 53, 81, 80, 86, 117, 119, 124, 115, 42, 102, 101, 96, 95, 98, 97, 100, 99, 73, 14, 116, 104, 36, 37, 30, 31, 32, 18, 60, 107, 19, 106, 22, 92, 93, 94, 17, 16, 83, 23, 125, 126, 127, 128, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143) | 3 | 3 | 1 | maybe slow |
SELECT `Postcode`.`id`, `Postcode`.`outcode` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`postcodes` AS `Postcode` WHERE `outcode` LIKE 'DE4' LIMIT 1 | 1 | 1 | 0 | |
SELECT `ShippingCompany`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` WHERE `is_active` = '1' AND `pricing_only` = '1' | 0 | 0 | 0 | |
SELECT `ShippingCost`.*, `ShippingCompany`.*, IF(cost IS NULL AND shipping_company_id <> 7, -1, 0) AS nullswitch, `ShippingCompany`.`id`, `Plant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_costs` AS `ShippingCost` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` ON (`ShippingCost`.`shipping_company_id` = `ShippingCompany`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`plants` AS `Plant` ON (`ShippingCost`.`plant_id` = `Plant`.`id`) WHERE `Plant`.`is_active` = '1' AND `ShippingCompany`.`is_active` = '1' AND `postcode_id` = 663 AND `plant_id` = 8 AND ((`cost` >= 0) OR (`cost` IS NULL)) AND NOT (`shipping_company_id` IS NULL) ORDER BY `nullswitch` DESC, `cost` ASC LIMIT 1 | 0 | 0 | 4 | maybe slow |
SELECT `Postcode`.`id`, `Postcode`.`outcode` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`postcodes` AS `Postcode` WHERE `outcode` LIKE 'DE4' LIMIT 1 | 1 | 1 | 0 | |
SELECT `ShippingCompany`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` WHERE `is_active` = '1' AND `pricing_only` = '1' | 0 | 0 | 0 | |
SELECT `ShippingCost`.*, `ShippingCompany`.*, IF(cost IS NULL AND shipping_company_id <> 7, -1, 0) AS nullswitch, `ShippingCompany`.`id`, `Plant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_costs` AS `ShippingCost` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` ON (`ShippingCost`.`shipping_company_id` = `ShippingCompany`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`plants` AS `Plant` ON (`ShippingCost`.`plant_id` = `Plant`.`id`) WHERE `Plant`.`is_active` = '1' AND `ShippingCompany`.`is_active` = '1' AND `postcode_id` = 663 AND `plant_id` = 8 AND ((`cost` >= 0) OR (`cost` IS NULL)) AND NOT (`shipping_company_id` IS NULL) ORDER BY `nullswitch` DESC, `cost` ASC LIMIT 1 | 0 | 0 | 3 | maybe slow |
SELECT `ProductAttributeOptions`.`name`, `ProductAttributeOptions`.`description`, `Product`.`excludes_vat`, `VatRate`.`rate`, `ProductVariant`.`online_price`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, IF(ProductAttributeOptions.description LIKE "%forceprice%", 2, -1) AS force_price, IF(ProductAttributeOptions.description LIKE "%default%", 1, 0) AS is_default, IF(ProductAttributeOptions.description LIKE "%nosurcharge%", 0, 1) AS has_surcharge, IF(ProductAttributeOptions.description LIKE "%separatesurcharge%", 0, 1) AS separate_surcharge, IF(ProductAttributeOptions.description LIKE "%fromprice%", 1, 0) AS from_price, IF(ProductAttributeOptions.description LIKE "%poa%", 1, 0) AS is_poa FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOptions` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOptions`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 270 AND `ProductVariant`.`is_removed` = '0' AND `ProductVariant`.`price` IS NOT NULL AND `ProductVariant`.`price` > 0 AND ((`ProductAttributeOptions`.`description` LIKE '%\"main\"%') OR (`ProductAttributeOptions`.`description` LIKE '%\"default\"%')) ORDER BY `force_price` DESC, `is_default` ASC, `calculatedprice` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductVariant`.*, `VatRate`.*, `Product`.`excludes_vat`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, `ProductVariant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 271 AND `ProductVariant`.`is_removed` <> '1' | 6 | 6 | 1 | maybe slow |
SELECT `ProductAttributeOption`.`id`, `ProductAttributeOption`.`product_attribute_id`, `ProductAttributeOption`.`name`, `ProductAttributeOption`.`description`, `ProductAttributeOption`.`sequence`, `ProductAttributeOption`.`created`, `ProductAttributeOption`.`modified`, `EvShopProductAttributeOptionsProductVariant`.`id`, `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id`, `EvShopProductAttributeOptionsProductVariant`.`product_variant_id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `EvShopProductAttributeOptionsProductVariant` ON (`EvShopProductAttributeOptionsProductVariant`.`product_variant_id` IN (1788, 1789, 1790, 1888, 1890, 1998) AND `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) WHERE `ProductAttributeOption`.`id` IN (129, 7, 120, 118, 55, 56, 8, 114, 123, 111, 9, 122, 110, 121, 11, 82, 57, 58, 53, 81, 80, 86, 117, 119, 124, 115, 42, 102, 101, 96, 95, 98, 97, 100, 99, 73, 14, 116, 104, 36, 37, 30, 31, 32, 18, 60, 107, 19, 106, 22, 92, 93, 94, 17, 16, 83, 23, 125, 126, 127, 128, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143) | 6 | 6 | 1 | maybe slow |
SELECT `Postcode`.`id`, `Postcode`.`outcode` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`postcodes` AS `Postcode` WHERE `outcode` LIKE 'DE4' LIMIT 1 | 1 | 1 | 0 | |
SELECT `ShippingCompany`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` WHERE `is_active` = '1' AND `pricing_only` = '1' | 0 | 0 | 0 | |
SELECT `ShippingCost`.*, `ShippingCompany`.*, IF(cost IS NULL AND shipping_company_id <> 7, -1, 0) AS nullswitch, `ShippingCompany`.`id`, `Plant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_costs` AS `ShippingCost` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` ON (`ShippingCost`.`shipping_company_id` = `ShippingCompany`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`plants` AS `Plant` ON (`ShippingCost`.`plant_id` = `Plant`.`id`) WHERE `Plant`.`is_active` = '1' AND `ShippingCompany`.`is_active` = '1' AND `postcode_id` = 663 AND `plant_id` = 8 AND ((`cost` >= 0) OR (`cost` IS NULL)) AND NOT (`shipping_company_id` IS NULL) ORDER BY `nullswitch` DESC, `cost` ASC LIMIT 1 | 0 | 0 | 3 | maybe slow |
SELECT `Postcode`.`id`, `Postcode`.`outcode` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`postcodes` AS `Postcode` WHERE `outcode` LIKE 'DE4' LIMIT 1 | 1 | 1 | 0 | |
SELECT `ShippingCompany`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` WHERE `is_active` = '1' AND `pricing_only` = '1' | 0 | 0 | 0 | |
SELECT `ShippingCost`.*, `ShippingCompany`.*, IF(cost IS NULL AND shipping_company_id <> 7, -1, 0) AS nullswitch, `ShippingCompany`.`id`, `Plant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_costs` AS `ShippingCost` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` ON (`ShippingCost`.`shipping_company_id` = `ShippingCompany`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`plants` AS `Plant` ON (`ShippingCost`.`plant_id` = `Plant`.`id`) WHERE `Plant`.`is_active` = '1' AND `ShippingCompany`.`is_active` = '1' AND `postcode_id` = 663 AND `plant_id` = 8 AND ((`cost` >= 0) OR (`cost` IS NULL)) AND NOT (`shipping_company_id` IS NULL) ORDER BY `nullswitch` DESC, `cost` ASC LIMIT 1 | 0 | 0 | 4 | maybe slow |
SELECT `ProductAttributeOptions`.`name`, `ProductAttributeOptions`.`description`, `Product`.`excludes_vat`, `VatRate`.`rate`, `ProductVariant`.`online_price`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, IF(ProductAttributeOptions.description LIKE "%forceprice%", 2, -1) AS force_price, IF(ProductAttributeOptions.description LIKE "%default%", 1, 0) AS is_default, IF(ProductAttributeOptions.description LIKE "%nosurcharge%", 0, 1) AS has_surcharge, IF(ProductAttributeOptions.description LIKE "%separatesurcharge%", 0, 1) AS separate_surcharge, IF(ProductAttributeOptions.description LIKE "%fromprice%", 1, 0) AS from_price, IF(ProductAttributeOptions.description LIKE "%poa%", 1, 0) AS is_poa FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOptions` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOptions`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 271 AND `ProductVariant`.`is_removed` = '0' AND `ProductVariant`.`price` IS NOT NULL AND `ProductVariant`.`price` > 0 AND ((`ProductAttributeOptions`.`description` LIKE '%\"main\"%') OR (`ProductAttributeOptions`.`description` LIKE '%\"default\"%')) ORDER BY `force_price` DESC, `is_default` ASC, `calculatedprice` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductVariant`.*, `VatRate`.*, `Product`.`excludes_vat`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, `ProductVariant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 285 AND `ProductVariant`.`is_removed` <> '1' | 6 | 6 | 1 | maybe slow |
SELECT `ProductAttributeOption`.`id`, `ProductAttributeOption`.`product_attribute_id`, `ProductAttributeOption`.`name`, `ProductAttributeOption`.`description`, `ProductAttributeOption`.`sequence`, `ProductAttributeOption`.`created`, `ProductAttributeOption`.`modified`, `EvShopProductAttributeOptionsProductVariant`.`id`, `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id`, `EvShopProductAttributeOptionsProductVariant`.`product_variant_id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `EvShopProductAttributeOptionsProductVariant` ON (`EvShopProductAttributeOptionsProductVariant`.`product_variant_id` IN (1951, 1952, 1953, 1954, 1955, 2003) AND `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) WHERE `ProductAttributeOption`.`id` IN (129, 7, 120, 118, 55, 56, 8, 114, 123, 111, 9, 122, 110, 121, 11, 82, 57, 58, 53, 81, 80, 86, 117, 119, 124, 115, 42, 102, 101, 96, 95, 98, 97, 100, 99, 73, 14, 116, 104, 36, 37, 30, 31, 32, 18, 60, 107, 19, 106, 22, 92, 93, 94, 17, 16, 83, 23, 125, 126, 127, 128, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143) | 6 | 6 | 1 | maybe slow |
SELECT `Postcode`.`id`, `Postcode`.`outcode` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`postcodes` AS `Postcode` WHERE `outcode` LIKE 'DE4' LIMIT 1 | 1 | 1 | 0 | |
SELECT `ShippingCompany`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` WHERE `is_active` = '1' AND `pricing_only` = '1' | 0 | 0 | 0 | |
SELECT `ShippingCost`.*, `ShippingCompany`.*, IF(cost IS NULL AND shipping_company_id <> 7, -1, 0) AS nullswitch, `ShippingCompany`.`id`, `Plant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_costs` AS `ShippingCost` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` ON (`ShippingCost`.`shipping_company_id` = `ShippingCompany`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`plants` AS `Plant` ON (`ShippingCost`.`plant_id` = `Plant`.`id`) WHERE `Plant`.`is_active` = '1' AND `ShippingCompany`.`is_active` = '1' AND `postcode_id` = 663 AND `plant_id` = 8 AND ((`cost` >= 0) OR (`cost` IS NULL)) AND NOT (`shipping_company_id` IS NULL) ORDER BY `nullswitch` DESC, `cost` ASC LIMIT 1 | 0 | 0 | 4 | maybe slow |
SELECT `Postcode`.`id`, `Postcode`.`outcode` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`postcodes` AS `Postcode` WHERE `outcode` LIKE 'DE4' LIMIT 1 | 1 | 1 | 0 | |
SELECT `ShippingCompany`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` WHERE `is_active` = '1' AND `pricing_only` = '1' | 0 | 0 | 0 | |
SELECT `ShippingCost`.*, `ShippingCompany`.*, IF(cost IS NULL AND shipping_company_id <> 7, -1, 0) AS nullswitch, `ShippingCompany`.`id`, `Plant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_costs` AS `ShippingCost` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` ON (`ShippingCost`.`shipping_company_id` = `ShippingCompany`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`plants` AS `Plant` ON (`ShippingCost`.`plant_id` = `Plant`.`id`) WHERE `Plant`.`is_active` = '1' AND `ShippingCompany`.`is_active` = '1' AND `postcode_id` = 663 AND `plant_id` = 8 AND ((`cost` >= 0) OR (`cost` IS NULL)) AND NOT (`shipping_company_id` IS NULL) ORDER BY `nullswitch` DESC, `cost` ASC LIMIT 1 | 0 | 0 | 4 | maybe slow |
SELECT `ProductAttributeOptions`.`name`, `ProductAttributeOptions`.`description`, `Product`.`excludes_vat`, `VatRate`.`rate`, `ProductVariant`.`online_price`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, IF(ProductAttributeOptions.description LIKE "%forceprice%", 2, -1) AS force_price, IF(ProductAttributeOptions.description LIKE "%default%", 1, 0) AS is_default, IF(ProductAttributeOptions.description LIKE "%nosurcharge%", 0, 1) AS has_surcharge, IF(ProductAttributeOptions.description LIKE "%separatesurcharge%", 0, 1) AS separate_surcharge, IF(ProductAttributeOptions.description LIKE "%fromprice%", 1, 0) AS from_price, IF(ProductAttributeOptions.description LIKE "%poa%", 1, 0) AS is_poa FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOptions` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOptions`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 285 AND `ProductVariant`.`is_removed` = '0' AND `ProductVariant`.`price` IS NOT NULL AND `ProductVariant`.`price` > 0 AND ((`ProductAttributeOptions`.`description` LIKE '%\"main\"%') OR (`ProductAttributeOptions`.`description` LIKE '%\"default\"%')) ORDER BY `force_price` DESC, `is_default` ASC, `calculatedprice` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductVariant`.*, `VatRate`.*, `Product`.`excludes_vat`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, `ProductVariant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 284 AND `ProductVariant`.`is_removed` <> '1' | 6 | 6 | 1 | maybe slow |
SELECT `ProductAttributeOption`.`id`, `ProductAttributeOption`.`product_attribute_id`, `ProductAttributeOption`.`name`, `ProductAttributeOption`.`description`, `ProductAttributeOption`.`sequence`, `ProductAttributeOption`.`created`, `ProductAttributeOption`.`modified`, `EvShopProductAttributeOptionsProductVariant`.`id`, `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id`, `EvShopProductAttributeOptionsProductVariant`.`product_variant_id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `EvShopProductAttributeOptionsProductVariant` ON (`EvShopProductAttributeOptionsProductVariant`.`product_variant_id` IN (1957, 1958, 1959, 1960, 1961, 1997) AND `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) WHERE `ProductAttributeOption`.`id` IN (129, 7, 120, 118, 55, 56, 8, 114, 123, 111, 9, 122, 110, 121, 11, 82, 57, 58, 53, 81, 80, 86, 117, 119, 124, 115, 42, 102, 101, 96, 95, 98, 97, 100, 99, 73, 14, 116, 104, 36, 37, 30, 31, 32, 18, 60, 107, 19, 106, 22, 92, 93, 94, 17, 16, 83, 23, 125, 126, 127, 128, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143) | 6 | 6 | 1 | maybe slow |
SELECT `Postcode`.`id`, `Postcode`.`outcode` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`postcodes` AS `Postcode` WHERE `outcode` LIKE 'DE4' LIMIT 1 | 1 | 1 | 0 | |
SELECT `ShippingCompany`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` WHERE `is_active` = '1' AND `pricing_only` = '1' | 0 | 0 | 0 | |
SELECT `ShippingCost`.*, `ShippingCompany`.*, IF(cost IS NULL AND shipping_company_id <> 7, -1, 0) AS nullswitch, `ShippingCompany`.`id`, `Plant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_costs` AS `ShippingCost` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` ON (`ShippingCost`.`shipping_company_id` = `ShippingCompany`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`plants` AS `Plant` ON (`ShippingCost`.`plant_id` = `Plant`.`id`) WHERE `Plant`.`is_active` = '1' AND `ShippingCompany`.`is_active` = '1' AND `postcode_id` = 663 AND `plant_id` = 8 AND ((`cost` >= 0) OR (`cost` IS NULL)) AND NOT (`shipping_company_id` IS NULL) ORDER BY `nullswitch` DESC, `cost` ASC LIMIT 1 | 0 | 0 | 4 | maybe slow |
SELECT `Postcode`.`id`, `Postcode`.`outcode` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`postcodes` AS `Postcode` WHERE `outcode` LIKE 'DE4' LIMIT 1 | 1 | 1 | 0 | |
SELECT `ShippingCompany`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` WHERE `is_active` = '1' AND `pricing_only` = '1' | 0 | 0 | 0 | |
SELECT `ShippingCost`.*, `ShippingCompany`.*, IF(cost IS NULL AND shipping_company_id <> 7, -1, 0) AS nullswitch, `ShippingCompany`.`id`, `Plant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_costs` AS `ShippingCost` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` ON (`ShippingCost`.`shipping_company_id` = `ShippingCompany`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`plants` AS `Plant` ON (`ShippingCost`.`plant_id` = `Plant`.`id`) WHERE `Plant`.`is_active` = '1' AND `ShippingCompany`.`is_active` = '1' AND `postcode_id` = 663 AND `plant_id` = 8 AND ((`cost` >= 0) OR (`cost` IS NULL)) AND NOT (`shipping_company_id` IS NULL) ORDER BY `nullswitch` DESC, `cost` ASC LIMIT 1 | 0 | 0 | 3 | maybe slow |
SELECT `ProductAttributeOptions`.`name`, `ProductAttributeOptions`.`description`, `Product`.`excludes_vat`, `VatRate`.`rate`, `ProductVariant`.`online_price`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, IF(ProductAttributeOptions.description LIKE "%forceprice%", 2, -1) AS force_price, IF(ProductAttributeOptions.description LIKE "%default%", 1, 0) AS is_default, IF(ProductAttributeOptions.description LIKE "%nosurcharge%", 0, 1) AS has_surcharge, IF(ProductAttributeOptions.description LIKE "%separatesurcharge%", 0, 1) AS separate_surcharge, IF(ProductAttributeOptions.description LIKE "%fromprice%", 1, 0) AS from_price, IF(ProductAttributeOptions.description LIKE "%poa%", 1, 0) AS is_poa FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOptions` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOptions`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 284 AND `ProductVariant`.`is_removed` = '0' AND `ProductVariant`.`price` IS NOT NULL AND `ProductVariant`.`price` > 0 AND ((`ProductAttributeOptions`.`description` LIKE '%\"main\"%') OR (`ProductAttributeOptions`.`description` LIKE '%\"default\"%')) ORDER BY `force_price` DESC, `is_default` ASC, `calculatedprice` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductVariant`.*, `VatRate`.*, `Product`.`excludes_vat`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, `ProductVariant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 116 AND `ProductVariant`.`is_removed` <> '1' | 2 | 2 | 1 | maybe slow |
SELECT `ProductAttributeOption`.`id`, `ProductAttributeOption`.`product_attribute_id`, `ProductAttributeOption`.`name`, `ProductAttributeOption`.`description`, `ProductAttributeOption`.`sequence`, `ProductAttributeOption`.`created`, `ProductAttributeOption`.`modified`, `EvShopProductAttributeOptionsProductVariant`.`id`, `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id`, `EvShopProductAttributeOptionsProductVariant`.`product_variant_id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `EvShopProductAttributeOptionsProductVariant` ON (`EvShopProductAttributeOptionsProductVariant`.`product_variant_id` IN (860, 2051) AND `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) WHERE `ProductAttributeOption`.`id` IN (129, 7, 120, 118, 55, 56, 8, 114, 123, 111, 9, 122, 110, 121, 11, 82, 57, 58, 53, 81, 80, 86, 117, 119, 124, 115, 42, 102, 101, 96, 95, 98, 97, 100, 99, 73, 14, 116, 104, 36, 37, 30, 31, 32, 18, 60, 107, 19, 106, 22, 92, 93, 94, 17, 16, 83, 23, 125, 126, 127, 128, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143) | 2 | 2 | 1 | maybe slow |
SELECT `Postcode`.`id`, `Postcode`.`outcode` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`postcodes` AS `Postcode` WHERE `outcode` LIKE 'DE4' LIMIT 1 | 1 | 1 | 0 | |
SELECT `ShippingCompany`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` WHERE `is_active` = '1' AND `pricing_only` = '1' | 0 | 0 | 0 | |
SELECT `ShippingCost`.*, `ShippingCompany`.*, IF(cost IS NULL AND shipping_company_id <> 7, -1, 0) AS nullswitch, `ShippingCompany`.`id`, `Plant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_costs` AS `ShippingCost` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` ON (`ShippingCost`.`shipping_company_id` = `ShippingCompany`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`plants` AS `Plant` ON (`ShippingCost`.`plant_id` = `Plant`.`id`) WHERE `Plant`.`is_active` = '1' AND `ShippingCompany`.`is_active` = '1' AND `postcode_id` = 663 AND `plant_id` = 9 AND ((`cost` >= 0) OR (`cost` IS NULL)) AND NOT (`shipping_company_id` IS NULL) AND `shipping_company_id` != 6 ORDER BY `nullswitch` DESC, `cost` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductAttributeOptions`.`name`, `ProductAttributeOptions`.`description`, `Product`.`excludes_vat`, `VatRate`.`rate`, `ProductVariant`.`online_price`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, IF(ProductAttributeOptions.description LIKE "%forceprice%", 2, -1) AS force_price, IF(ProductAttributeOptions.description LIKE "%default%", 1, 0) AS is_default, IF(ProductAttributeOptions.description LIKE "%nosurcharge%", 0, 1) AS has_surcharge, IF(ProductAttributeOptions.description LIKE "%separatesurcharge%", 0, 1) AS separate_surcharge, IF(ProductAttributeOptions.description LIKE "%fromprice%", 1, 0) AS from_price, IF(ProductAttributeOptions.description LIKE "%poa%", 1, 0) AS is_poa FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOptions` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOptions`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 116 AND `ProductVariant`.`is_removed` = '0' AND `ProductVariant`.`price` IS NOT NULL AND `ProductVariant`.`price` > 0 AND ((`ProductAttributeOptions`.`description` LIKE '%\"main\"%') OR (`ProductAttributeOptions`.`description` LIKE '%\"default\"%')) ORDER BY `force_price` DESC, `is_default` ASC, `calculatedprice` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductVariant`.*, `VatRate`.*, `Product`.`excludes_vat`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, `ProductVariant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 17 AND `ProductVariant`.`is_removed` <> '1' | 2 | 2 | 1 | maybe slow |
SELECT `ProductAttributeOption`.`id`, `ProductAttributeOption`.`product_attribute_id`, `ProductAttributeOption`.`name`, `ProductAttributeOption`.`description`, `ProductAttributeOption`.`sequence`, `ProductAttributeOption`.`created`, `ProductAttributeOption`.`modified`, `EvShopProductAttributeOptionsProductVariant`.`id`, `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id`, `EvShopProductAttributeOptionsProductVariant`.`product_variant_id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `EvShopProductAttributeOptionsProductVariant` ON (`EvShopProductAttributeOptionsProductVariant`.`product_variant_id` IN (131, 496) AND `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) WHERE `ProductAttributeOption`.`id` IN (129, 7, 120, 118, 55, 56, 8, 114, 123, 111, 9, 122, 110, 121, 11, 82, 57, 58, 53, 81, 80, 86, 117, 119, 124, 115, 42, 102, 101, 96, 95, 98, 97, 100, 99, 73, 14, 116, 104, 36, 37, 30, 31, 32, 18, 60, 107, 19, 106, 22, 92, 93, 94, 17, 16, 83, 23, 125, 126, 127, 128, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143) | 2 | 2 | 1 | maybe slow |
SELECT `Postcode`.`id`, `Postcode`.`outcode` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`postcodes` AS `Postcode` WHERE `outcode` LIKE 'DE4' LIMIT 1 | 1 | 1 | 0 | |
SELECT `ShippingCompany`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` WHERE `is_active` = '1' AND `pricing_only` = '1' | 0 | 0 | 0 | |
SELECT `ShippingCost`.*, `ShippingCompany`.*, IF(cost IS NULL AND shipping_company_id <> 7, -1, 0) AS nullswitch, `ShippingCompany`.`id`, `Plant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_costs` AS `ShippingCost` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` ON (`ShippingCost`.`shipping_company_id` = `ShippingCompany`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`plants` AS `Plant` ON (`ShippingCost`.`plant_id` = `Plant`.`id`) WHERE `Plant`.`is_active` = '1' AND `ShippingCompany`.`is_active` = '1' AND `postcode_id` = 663 AND `plant_id` = 9 AND ((`cost` >= 0) OR (`cost` IS NULL)) AND NOT (`shipping_company_id` IS NULL) AND `shipping_company_id` != 6 ORDER BY `nullswitch` DESC, `cost` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductAttributeOptions`.`name`, `ProductAttributeOptions`.`description`, `Product`.`excludes_vat`, `VatRate`.`rate`, `ProductVariant`.`online_price`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, IF(ProductAttributeOptions.description LIKE "%forceprice%", 2, -1) AS force_price, IF(ProductAttributeOptions.description LIKE "%default%", 1, 0) AS is_default, IF(ProductAttributeOptions.description LIKE "%nosurcharge%", 0, 1) AS has_surcharge, IF(ProductAttributeOptions.description LIKE "%separatesurcharge%", 0, 1) AS separate_surcharge, IF(ProductAttributeOptions.description LIKE "%fromprice%", 1, 0) AS from_price, IF(ProductAttributeOptions.description LIKE "%poa%", 1, 0) AS is_poa FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOptions` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOptions`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 17 AND `ProductVariant`.`is_removed` = '0' AND `ProductVariant`.`price` IS NOT NULL AND `ProductVariant`.`price` > 0 AND ((`ProductAttributeOptions`.`description` LIKE '%\"main\"%') OR (`ProductAttributeOptions`.`description` LIKE '%\"default\"%')) ORDER BY `force_price` DESC, `is_default` ASC, `calculatedprice` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductVariant`.*, `VatRate`.*, `Product`.`excludes_vat`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, `ProductVariant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 223 AND `ProductVariant`.`is_removed` <> '1' | 2 | 2 | 1 | maybe slow |
SELECT `ProductAttributeOption`.`id`, `ProductAttributeOption`.`product_attribute_id`, `ProductAttributeOption`.`name`, `ProductAttributeOption`.`description`, `ProductAttributeOption`.`sequence`, `ProductAttributeOption`.`created`, `ProductAttributeOption`.`modified`, `EvShopProductAttributeOptionsProductVariant`.`id`, `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id`, `EvShopProductAttributeOptionsProductVariant`.`product_variant_id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `EvShopProductAttributeOptionsProductVariant` ON (`EvShopProductAttributeOptionsProductVariant`.`product_variant_id` IN (1503, 1511) AND `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) WHERE `ProductAttributeOption`.`id` IN (129, 7, 120, 118, 55, 56, 8, 114, 123, 111, 9, 122, 110, 121, 11, 82, 57, 58, 53, 81, 80, 86, 117, 119, 124, 115, 42, 102, 101, 96, 95, 98, 97, 100, 99, 73, 14, 116, 104, 36, 37, 30, 31, 32, 18, 60, 107, 19, 106, 22, 92, 93, 94, 17, 16, 83, 23, 125, 126, 127, 128, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143) | 2 | 2 | 1 | maybe slow |
SELECT `Postcode`.`id`, `Postcode`.`outcode` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`postcodes` AS `Postcode` WHERE `outcode` LIKE 'DE4' LIMIT 1 | 1 | 1 | 0 | |
SELECT `ShippingCompany`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` WHERE `is_active` = '1' AND `pricing_only` = '1' | 0 | 0 | 0 | |
SELECT `ShippingCost`.*, `ShippingCompany`.*, IF(cost IS NULL AND shipping_company_id <> 7, -1, 0) AS nullswitch, `ShippingCompany`.`id`, `Plant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_costs` AS `ShippingCost` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` ON (`ShippingCost`.`shipping_company_id` = `ShippingCompany`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`plants` AS `Plant` ON (`ShippingCost`.`plant_id` = `Plant`.`id`) WHERE `Plant`.`is_active` = '1' AND `ShippingCompany`.`is_active` = '1' AND `postcode_id` = 663 AND `plant_id` = 9 AND ((`cost` >= 0) OR (`cost` IS NULL)) AND NOT (`shipping_company_id` IS NULL) AND `shipping_company_id` != 6 ORDER BY `nullswitch` DESC, `cost` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductAttributeOptions`.`name`, `ProductAttributeOptions`.`description`, `Product`.`excludes_vat`, `VatRate`.`rate`, `ProductVariant`.`online_price`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, IF(ProductAttributeOptions.description LIKE "%forceprice%", 2, -1) AS force_price, IF(ProductAttributeOptions.description LIKE "%default%", 1, 0) AS is_default, IF(ProductAttributeOptions.description LIKE "%nosurcharge%", 0, 1) AS has_surcharge, IF(ProductAttributeOptions.description LIKE "%separatesurcharge%", 0, 1) AS separate_surcharge, IF(ProductAttributeOptions.description LIKE "%fromprice%", 1, 0) AS from_price, IF(ProductAttributeOptions.description LIKE "%poa%", 1, 0) AS is_poa FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOptions` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOptions`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 223 AND `ProductVariant`.`is_removed` = '0' AND `ProductVariant`.`price` IS NOT NULL AND `ProductVariant`.`price` > 0 AND ((`ProductAttributeOptions`.`description` LIKE '%\"main\"%') OR (`ProductAttributeOptions`.`description` LIKE '%\"default\"%')) ORDER BY `force_price` DESC, `is_default` ASC, `calculatedprice` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductVariant`.*, `VatRate`.*, `Product`.`excludes_vat`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, `ProductVariant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 224 AND `ProductVariant`.`is_removed` <> '1' | 2 | 2 | 1 | maybe slow |
SELECT `ProductAttributeOption`.`id`, `ProductAttributeOption`.`product_attribute_id`, `ProductAttributeOption`.`name`, `ProductAttributeOption`.`description`, `ProductAttributeOption`.`sequence`, `ProductAttributeOption`.`created`, `ProductAttributeOption`.`modified`, `EvShopProductAttributeOptionsProductVariant`.`id`, `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id`, `EvShopProductAttributeOptionsProductVariant`.`product_variant_id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `EvShopProductAttributeOptionsProductVariant` ON (`EvShopProductAttributeOptionsProductVariant`.`product_variant_id` IN (1508, 1512) AND `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) WHERE `ProductAttributeOption`.`id` IN (129, 7, 120, 118, 55, 56, 8, 114, 123, 111, 9, 122, 110, 121, 11, 82, 57, 58, 53, 81, 80, 86, 117, 119, 124, 115, 42, 102, 101, 96, 95, 98, 97, 100, 99, 73, 14, 116, 104, 36, 37, 30, 31, 32, 18, 60, 107, 19, 106, 22, 92, 93, 94, 17, 16, 83, 23, 125, 126, 127, 128, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143) | 2 | 2 | 1 | maybe slow |
SELECT `Postcode`.`id`, `Postcode`.`outcode` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`postcodes` AS `Postcode` WHERE `outcode` LIKE 'DE4' LIMIT 1 | 1 | 1 | 0 | |
SELECT `ShippingCompany`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` WHERE `is_active` = '1' AND `pricing_only` = '1' | 0 | 0 | 0 | |
SELECT `ShippingCost`.*, `ShippingCompany`.*, IF(cost IS NULL AND shipping_company_id <> 7, -1, 0) AS nullswitch, `ShippingCompany`.`id`, `Plant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_costs` AS `ShippingCost` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` ON (`ShippingCost`.`shipping_company_id` = `ShippingCompany`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`plants` AS `Plant` ON (`ShippingCost`.`plant_id` = `Plant`.`id`) WHERE `Plant`.`is_active` = '1' AND `ShippingCompany`.`is_active` = '1' AND `postcode_id` = 663 AND `plant_id` = 9 AND ((`cost` >= 0) OR (`cost` IS NULL)) AND NOT (`shipping_company_id` IS NULL) AND `shipping_company_id` != 6 ORDER BY `nullswitch` DESC, `cost` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductAttributeOptions`.`name`, `ProductAttributeOptions`.`description`, `Product`.`excludes_vat`, `VatRate`.`rate`, `ProductVariant`.`online_price`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, IF(ProductAttributeOptions.description LIKE "%forceprice%", 2, -1) AS force_price, IF(ProductAttributeOptions.description LIKE "%default%", 1, 0) AS is_default, IF(ProductAttributeOptions.description LIKE "%nosurcharge%", 0, 1) AS has_surcharge, IF(ProductAttributeOptions.description LIKE "%separatesurcharge%", 0, 1) AS separate_surcharge, IF(ProductAttributeOptions.description LIKE "%fromprice%", 1, 0) AS from_price, IF(ProductAttributeOptions.description LIKE "%poa%", 1, 0) AS is_poa FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOptions` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOptions`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 224 AND `ProductVariant`.`is_removed` = '0' AND `ProductVariant`.`price` IS NOT NULL AND `ProductVariant`.`price` > 0 AND ((`ProductAttributeOptions`.`description` LIKE '%\"main\"%') OR (`ProductAttributeOptions`.`description` LIKE '%\"default\"%')) ORDER BY `force_price` DESC, `is_default` ASC, `calculatedprice` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductVariant`.*, `VatRate`.*, `Product`.`excludes_vat`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, `ProductVariant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 225 AND `ProductVariant`.`is_removed` <> '1' | 2 | 2 | 1 | maybe slow |
SELECT `ProductAttributeOption`.`id`, `ProductAttributeOption`.`product_attribute_id`, `ProductAttributeOption`.`name`, `ProductAttributeOption`.`description`, `ProductAttributeOption`.`sequence`, `ProductAttributeOption`.`created`, `ProductAttributeOption`.`modified`, `EvShopProductAttributeOptionsProductVariant`.`id`, `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id`, `EvShopProductAttributeOptionsProductVariant`.`product_variant_id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `EvShopProductAttributeOptionsProductVariant` ON (`EvShopProductAttributeOptionsProductVariant`.`product_variant_id` IN (1509, 1510) AND `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) WHERE `ProductAttributeOption`.`id` IN (129, 7, 120, 118, 55, 56, 8, 114, 123, 111, 9, 122, 110, 121, 11, 82, 57, 58, 53, 81, 80, 86, 117, 119, 124, 115, 42, 102, 101, 96, 95, 98, 97, 100, 99, 73, 14, 116, 104, 36, 37, 30, 31, 32, 18, 60, 107, 19, 106, 22, 92, 93, 94, 17, 16, 83, 23, 125, 126, 127, 128, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143) | 2 | 2 | 1 | maybe slow |
SELECT `Postcode`.`id`, `Postcode`.`outcode` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`postcodes` AS `Postcode` WHERE `outcode` LIKE 'DE4' LIMIT 1 | 1 | 1 | 0 | |
SELECT `ShippingCompany`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` WHERE `is_active` = '1' AND `pricing_only` = '1' | 0 | 0 | 0 | |
SELECT `ShippingCost`.*, `ShippingCompany`.*, IF(cost IS NULL AND shipping_company_id <> 7, -1, 0) AS nullswitch, `ShippingCompany`.`id`, `Plant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_costs` AS `ShippingCost` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` ON (`ShippingCost`.`shipping_company_id` = `ShippingCompany`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`plants` AS `Plant` ON (`ShippingCost`.`plant_id` = `Plant`.`id`) WHERE `Plant`.`is_active` = '1' AND `ShippingCompany`.`is_active` = '1' AND `postcode_id` = 663 AND `plant_id` = 9 AND ((`cost` >= 0) OR (`cost` IS NULL)) AND NOT (`shipping_company_id` IS NULL) AND `shipping_company_id` != 6 ORDER BY `nullswitch` DESC, `cost` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductAttributeOptions`.`name`, `ProductAttributeOptions`.`description`, `Product`.`excludes_vat`, `VatRate`.`rate`, `ProductVariant`.`online_price`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, IF(ProductAttributeOptions.description LIKE "%forceprice%", 2, -1) AS force_price, IF(ProductAttributeOptions.description LIKE "%default%", 1, 0) AS is_default, IF(ProductAttributeOptions.description LIKE "%nosurcharge%", 0, 1) AS has_surcharge, IF(ProductAttributeOptions.description LIKE "%separatesurcharge%", 0, 1) AS separate_surcharge, IF(ProductAttributeOptions.description LIKE "%fromprice%", 1, 0) AS from_price, IF(ProductAttributeOptions.description LIKE "%poa%", 1, 0) AS is_poa FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOptions` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOptions`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 225 AND `ProductVariant`.`is_removed` = '0' AND `ProductVariant`.`price` IS NOT NULL AND `ProductVariant`.`price` > 0 AND ((`ProductAttributeOptions`.`description` LIKE '%\"main\"%') OR (`ProductAttributeOptions`.`description` LIKE '%\"default\"%')) ORDER BY `force_price` DESC, `is_default` ASC, `calculatedprice` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductVariant`.*, `VatRate`.*, `Product`.`excludes_vat`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, `ProductVariant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 97 AND `ProductVariant`.`is_removed` <> '1' | 2 | 2 | 0 | |
SELECT `ProductAttributeOption`.`id`, `ProductAttributeOption`.`product_attribute_id`, `ProductAttributeOption`.`name`, `ProductAttributeOption`.`description`, `ProductAttributeOption`.`sequence`, `ProductAttributeOption`.`created`, `ProductAttributeOption`.`modified`, `EvShopProductAttributeOptionsProductVariant`.`id`, `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id`, `EvShopProductAttributeOptionsProductVariant`.`product_variant_id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOption` JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `EvShopProductAttributeOptionsProductVariant` ON (`EvShopProductAttributeOptionsProductVariant`.`product_variant_id` IN (637, 638) AND `EvShopProductAttributeOptionsProductVariant`.`product_attribute_option_id` = `ProductAttributeOption`.`id`) WHERE `ProductAttributeOption`.`id` IN (129, 7, 120, 118, 55, 56, 8, 114, 123, 111, 9, 122, 110, 121, 11, 82, 57, 58, 53, 81, 80, 86, 117, 119, 124, 115, 42, 102, 101, 96, 95, 98, 97, 100, 99, 73, 14, 116, 104, 36, 37, 30, 31, 32, 18, 60, 107, 19, 106, 22, 92, 93, 94, 17, 16, 83, 23, 125, 126, 127, 128, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143) | 2 | 2 | 1 | maybe slow |
SELECT `Postcode`.`id`, `Postcode`.`outcode` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`postcodes` AS `Postcode` WHERE `outcode` LIKE 'DE4' LIMIT 1 | 1 | 1 | 0 | |
SELECT `ShippingCompany`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` WHERE `is_active` = '1' AND `pricing_only` = '1' | 0 | 0 | 0 | |
SELECT `ShippingCost`.*, `ShippingCompany`.*, IF(cost IS NULL AND shipping_company_id <> 7, -1, 0) AS nullswitch, `ShippingCompany`.`id`, `Plant`.`id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_costs` AS `ShippingCost` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`shipping_companies` AS `ShippingCompany` ON (`ShippingCost`.`shipping_company_id` = `ShippingCompany`.`id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`plants` AS `Plant` ON (`ShippingCost`.`plant_id` = `Plant`.`id`) WHERE `Plant`.`is_active` = '1' AND `ShippingCompany`.`is_active` = '1' AND `postcode_id` = 663 AND `plant_id` = 9 AND ((`cost` >= 0) OR (`cost` IS NULL)) AND NOT (`shipping_company_id` IS NULL) AND `shipping_company_id` != 6 ORDER BY `nullswitch` DESC, `cost` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `ProductAttributeOptions`.`name`, `ProductAttributeOptions`.`description`, `Product`.`excludes_vat`, `VatRate`.`rate`, `ProductVariant`.`online_price`, IF(Product.excludes_vat=1,ProductVariant.price*((VatRate.rate/100)+1),ProductVariant.price) AS calculatedprice, IF(Product.excludes_vat<>1,ProductVariant.price/((VatRate.rate/100)+1),ProductVariant.price) AS exvat, IF(ProductAttributeOptions.description LIKE "%forceprice%", 2, -1) AS force_price, IF(ProductAttributeOptions.description LIKE "%default%", 1, 0) AS is_default, IF(ProductAttributeOptions.description LIKE "%nosurcharge%", 0, 1) AS has_surcharge, IF(ProductAttributeOptions.description LIKE "%separatesurcharge%", 0, 1) AS separate_surcharge, IF(ProductAttributeOptions.description LIKE "%fromprice%", 1, 0) AS from_price, IF(ProductAttributeOptions.description LIKE "%poa%", 1, 0) AS is_poa FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_variants` AS `ProductVariant` LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options_product_variants` AS `ProductAttributeOptionsVariants` ON (`ProductVariant`.`id` = `ProductAttributeOptionsVariants`.`product_variant_id`) LEFT JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_product_attribute_options` AS `ProductAttributeOptions` ON (`ProductAttributeOptionsVariants`.`product_attribute_option_id` = `ProductAttributeOptions`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_shop_products` AS `Product` ON (`ProductVariant`.`product_id` = `Product`.`id`) left JOIN `cd_decorative_aggregates_decorativeaggregates_uat`.`ev_checkout_vat_rates` AS `VatRate` ON (`Product`.`vat_rate_id` = `VatRate`.`id`) WHERE `ProductVariant`.`product_id` = 97 AND `ProductVariant`.`is_removed` = '0' AND `ProductVariant`.`price` IS NOT NULL AND `ProductVariant`.`price` > 0 AND ((`ProductAttributeOptions`.`description` LIKE '%\"main\"%') OR (`ProductAttributeOptions`.`description` LIKE '%\"default\"%')) ORDER BY `force_price` DESC, `is_default` ASC, `calculatedprice` ASC LIMIT 1 | 1 | 1 | 1 | |
SELECT `Menu`.`id`, `Menu`.`parent_id`, `Menu`.`lft`, `Menu`.`rght`, `Menu`.`name`, `Menu`.`url`, `Menu`.`pattern`, `Menu`.`plugin`, `Menu`.`controller`, `Menu`.`model`, `Menu`.`model_id`, `Menu`.`action`, `Menu`.`class`, `Menu`.`new_window`, `Menu`.`is_menu_hidden`, `Menu`.`is_active`, `Menu`.`created`, `Menu`.`modified`, `Menu`.`user_group_id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`menus` AS `Menu` WHERE `Menu`.`id` = 7 ORDER BY `lft` ASC LIMIT 1 | 1 | 1 | 0 | |
SELECT `Menu`.`id`, `Menu`.`parent_id`, `Menu`.`lft`, `Menu`.`rght`, `Menu`.`name`, `Menu`.`url`, `Menu`.`pattern`, `Menu`.`plugin`, `Menu`.`controller`, `Menu`.`model`, `Menu`.`model_id`, `Menu`.`action`, `Menu`.`class`, `Menu`.`new_window`, `Menu`.`is_menu_hidden`, `Menu`.`is_active`, `Menu`.`created`, `Menu`.`modified`, `Menu`.`user_group_id` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`menus` AS `Menu` WHERE `lft` > 92 AND `rght` < 115 AND `is_active` = '1' ORDER BY `lft` ASC | 11 | 11 | 0 | |
SELECT `Page`.`id`, `Page`.`accent_colour_id`, `Page`.`title`, `Page`.`internal_title`, `Page`.`body`, `Page`.`hide_background_image`, `Page`.`hide_background_image_on_mobile`, `Page`.`is_active`, `Page`.`is_protected`, `Page`.`view_template`, `Page`.`created`, `Page`.`modified` FROM `cd_decorative_aggregates_decorativeaggregates_uat`.`pages` AS `Page` WHERE `Page`.`internal_title` = 'blog' LIMIT 1 | 0 | 0 | 1 | maybe slow |
102 duplicate queries run.