SELECT |
1.699 ms |
1 |
SELECT `ep`.`nUID`, `ep`.`sStoreCode`, `ep`.`nInStock`, `ep`.`bIsAvailable`, `ep`.`nStatusFlags`, `ep`.`nProductPartID`, `ep`.`nRwSubtypeID`, `ep`.`nIsStarterKit`, `ep`.`bIsVotable`, `ep`.`sReverseRotation`, `epi`.`sName`, `epi`.`sNameRw`, `epi`.`sUID` AS `sProductUID`, `epi`.`sDescription`, `epi`.`sDescriptionRw`, `epi`.`sShortDescription`, `epci`.`sDescription` AS `sCommonDescription`, `epi`.`nLangID` AS `nLanguageID`, `ep`.`sVideoEmbed`, `ep`.`sVideoEmbedPhone`, `ep`.`isSignatureGrand`, `ep`.`nRequireMeasures`, `ep`.`nWeight`, `eprsi`.`sArticleLink`, `ep`.`nDeliveryDays`, `ep`.`nPaidShipping`, `ep`.`sExtension`, `ep`.`sExtensionVersion`, `ep`.`sThumbExtension`, `ep`.`sThumbExtensionVersion`, `ep`.`sHoverExtension`, `ep`.`sHoverExtensionVersion`, `ep`.`sBackExtension`, `ep`.`sBackExtensionVersion`, `ep`.`sBackZoomedExtension`, `ep`.`sBackZoomedExtensionVersion`, `eprs`.`sLogoExtension` AS `sRwSubtypeLogoExtension`, `eprs`.`sFeaturesExtension` AS `sRwSubtypeFeaturesExtension`, `eprs`.`sFeaturesMobileExtension` AS `sRwSubtypeFeaturesMobileExtension`, `epi`.`sMetaDescription`, `epi`.`sMetaKeywords`, `epi`.`sGAABTests`, `ep`.`nRecommendedCategory`, `ep`.`nAssociativeProduct`, `ep`.`dCreated` AS `productCreatedDate`, `ep`.`dModified` AS `productModifiedDate`, `eprii`.`nPrice`, `eprii`.`nCurrencyID`, `eprii1`.`nPrice` AS `nJacketPrice`, `eprii2`.`nPrice` AS `nVestPrice`, `eprii3`.`nPrice` AS `nPantsPrice`, `ecu`.`sLocale`, `ecu`.`sSymbol`, `ll`.`nUID` AS `nProductLocaleID`, `ed`.`dEndPeriod` AS `dDiscountEnd`, `ed`.`nUID` AS `nDiscountID`, `edd`.`sFormula` AS `sDiscount`, `et`.`nUID` AS `nTextileID`, `eti`.`sFabricDescriptionTitle`, `eti`.`sFabricDescriptionDetails`, `ecpn`.`nUID` AS `nCouponID`, `ecpn`.`sFormula` AS `sProductCoupon`, `ecpn`.`sProductPageDescription`, `ecpn`.`nShowCalculatedPrice` FROM `eshop3_products` AS `ep`
INNER JOIN `eshop3_products_i18n` AS `epi` ON ep.nUID = epi.nProductID AND epi.nDeleted = 0
LEFT JOIN `eshop3_product_contents` AS `epc` ON ep.nContentID = epc.nUID AND epc.nPublished = 1 AND epc.nDeleted = 0
LEFT JOIN `eshop3_product_contents_i18n` AS `epci` ON epc.nUID = epci.nProductContentID AND epci.nDeleted = 0
INNER JOIN `eshop3_conn_product_prices` AS `ecpp` ON ep.nUID = ecpp.nProductID AND ecpp.nDeleted = 0
INNER JOIN `eshop3_prices` AS `epri` ON ecpp.nPriceID = epri.nUID AND epri.nDeleted = 0
INNER JOIN `eshop3_prices_data` AS `eprii` ON epri.nUID = eprii.nPriceID AND eprii.nDeleted = 0
LEFT JOIN `eshop3_prices` AS `epri_jacket` ON ep.nJacketPriceID = epri_jacket.nUID AND epri_jacket.nDeleted = 0
LEFT JOIN `eshop3_prices_data` AS `eprii1` ON epri_jacket.nUID = eprii1.nPriceID AND eprii1.nDeleted = 0 AND eprii1.nCurrencyID = eprii.nCurrencyID
LEFT JOIN `eshop3_prices` AS `epri_vest` ON ep.nVestPriceID = epri_vest.nUID AND epri_vest.nDeleted = 0
LEFT JOIN `eshop3_prices_data` AS `eprii2` ON epri_vest.nUID = eprii2.nPriceID AND eprii2.nDeleted = 0 AND eprii2.nCurrencyID = eprii.nCurrencyID
LEFT JOIN `eshop3_prices` AS `epri_pants` ON ep.nPantsPriceID = epri_pants.nUID AND epri_pants.nDeleted = 0
LEFT JOIN `eshop3_product_rw_subtypes` AS `eprs` ON ep.nRwSubtypeID = eprs.nUID AND eprs.nDeleted = 0 and eprs.nPublished = 1
LEFT JOIN `eshop3_product_rw_subtypes_i18n` AS `eprsi` ON eprs.nUID = eprsi.nProductRwSubtypeID AND eprs.nDeleted = 0
LEFT JOIN `eshop3_prices_data` AS `eprii3` ON epri_pants.nUID = eprii3.nPriceID AND eprii3.nDeleted = 0 AND eprii3.nCurrencyID = eprii.nCurrencyID
INNER JOIN `eshop3_currencies` AS `ecu` ON eprii.nCurrencyID = ecu.nUID AND ecu.nPublished = 1 AND ecu.nDeleted = 0
INNER JOIN `eshop3_conn_currency_locales` AS `eccl` ON ecu.nUID = eccl.nCurrencyID AND eccl.nDeleted = 0
INNER JOIN `language_locales` AS `ll` ON eccl.nLanguageLocaleID = ll.nUID AND ll.nDeleted = 0
LEFT JOIN `eshop3_discounts` AS `ed` ON ecpp.nDiscountID = ed.nUID AND UNIX_TIMESTAMP(ed.dEndPeriod) >= UNIX_TIMESTAMP() AND ed.nPublished = 1 AND ed.nDeleted = 0
LEFT JOIN `eshop3_discounts_data` AS `edd` ON ed.nUID = edd.nDiscountID AND edd.nDeleted = 0 AND edd.nCurrencyID = ecu.nUID
LEFT JOIN `eshop3_textiles` AS `et` ON ep.nTextileID = et.nUID AND et.nDeleted = 0
LEFT JOIN `eshop3_textiles_i18n` AS `eti` ON et.nUID = eti.nTextileID AND eti.nDeleted = 0
LEFT JOIN `eshop3_conn_coupon_category_products` AS `ecccp` ON ecccp.nUID = (SELECT `ecccp2`.`nUID` FROM `eshop3_conn_coupon_category_products` AS `ecccp2`
INNER JOIN `eshop3_coupons` AS `ec2` ON ec2.nUID = ecccp2.nCouponID
AND ec2.dStartPeriod <= NOW()
AND ec2.dEndPeriod >= NOW()
AND ec2.nDeleted = 0
AND ec2.nPublished = 1
AND ec2.sProductPageDescription IS NOT NULL
AND ec2.nSecretSale = 0 WHERE (ecccp2.nProductID = ep.nUID) AND (ecccp2.nDeleted = 0) AND (ec2.nCurrencyID = ecu.nUID) ORDER BY `ec2`.`dEndPeriod` DESC LIMIT 1)
LEFT JOIN `eshop3_coupons` AS `ecpn` ON ecccp.nCouponID = ecpn.nUID WHERE (ep.nDeleted = 0) AND (ep.nPublished = 1) AND (epi.sUID = 'black-italian-100-grenadine-silk-tie') AND (epi.nLangID = '1') AND (ll.nUID = '1') AND (epci.nLangID = ll.nLanguageID) AND (epi.nLangID = ll.nLanguageID) |
SELECT |
0.741 ms |
1 |
SELECT `ecpvp`.`nProductVariationID` AS `nUID`, `ecpvp`.`nDefault`, `epvi`.`sName`, `eprii`.`nPrice`, `eprii`.`nCurrencyID`, `ecu`.`sLocale`, `ecu`.`sSymbol`, `ll`.`nUID` AS `nProductLocaleID`, NULL AS `sDiscount`, NULL AS `dDiscountEnd` FROM `eshop3_products` AS `ep`
INNER JOIN `eshop3_conn_product_variations_prices` AS `ecpvp` ON ep.nUID = ecpvp.nProductID AND ecpvp.nPriceID IS NOT NULL
INNER JOIN `eshop3_product_variations` AS `epv` ON epv.nUID = ecpvp.nProductVariationID
INNER JOIN `eshop3_product_variations_i18n` AS `epvi` ON epvi.nProductVariationID = epv.nUID
LEFT JOIN `eshop3_conn_product_variations_options` AS `ecpvo` ON ecpvo.nProductVariationID = epv.nUID AND ecpvo.nDeleted = 0
INNER JOIN `eshop3_prices` AS `epri` ON ecpvp.nPriceID = epri.nUID AND epri.nDeleted = 0
INNER JOIN `eshop3_prices_data` AS `eprii` ON epri.nUID = eprii.nPriceID AND eprii.nDeleted = 0
INNER JOIN `eshop3_currencies` AS `ecu` ON eprii.nCurrencyID = ecu.nUID AND ecu.nPublished = 1 AND ecu.nDeleted = 0
INNER JOIN `eshop3_conn_currency_locales` AS `eccl` ON ecu.nUID = eccl.nCurrencyID AND eccl.nDeleted = 0
INNER JOIN `language_locales` AS `ll` ON eccl.nLanguageLocaleID = ll.nUID AND ll.nDeleted = 0 WHERE (ep.nDeleted = 0) AND (ep.nUID = 669) AND (ll.nUID = 1) AND (epvi.nLangID = 1) GROUP BY `ecpvp`.`nProductVariationID` ORDER BY `epv`.`nOrder` ASC |
SELECT |
0.61 ms |
1 |
SELECT `ecpp`.`nProductID`, `ecpp`.`nRelatedGroupID`, `ecpp`.`nProductConnID`, `ecpp`.`nOrder`, `ep`.`nInStock`, `epricesdata`.`nPrice`, `epricesdata`.`nCurrencyID`, `ecurrency`.`sLocale`, `ecurrency`.`sSymbol`, `ecclocales`.`nLanguageLocaleID`, `langlocale`.`sCountry`, `languages`.`sLanguage`, `epi`.`nLangID`, `epi`.`sName`, `ep`.`sThumbExtension`, `ep`.`nRequireMeasures` FROM `eshop3_conn_product_products` AS `ecpp`
INNER JOIN `eshop3_products` AS `ep` ON ecpp.nProductConnID = ep.nUID AND ep.nPublished = 1 AND ep.nDeleted = 0
INNER JOIN `eshop3_products_i18n` AS `epi` ON ep.nUID = epi.nProductID AND ep.nDeleted = 0
INNER JOIN `eshop3_conn_product_prices` AS `ecpprices` ON ecpp.nProductConnID = ecpprices.nProductID AND ecpprices.nDeleted = 0
INNER JOIN `eshop3_prices` AS `eprices` ON ecpprices.nPriceID = eprices.nUID AND eprices.nDeleted = 0
INNER JOIN `eshop3_prices_data` AS `epricesdata` ON eprices.nUID = epricesdata.nPriceID AND epricesdata.nDeleted = 0
INNER JOIN `eshop3_currencies` AS `ecurrency` ON epricesdata.nCurrencyID = ecurrency.nUID AND ecurrency.nPublished = 1 AND ecurrency.nDeleted = 0
INNER JOIN `eshop3_conn_currency_locales` AS `ecclocales` ON ecurrency.nUID = ecclocales.nCurrencyID AND ecclocales.nDeleted = 0
INNER JOIN `language_locales` AS `langlocale` ON ecclocales.nLanguageLocaleID = langlocale.nUID AND langlocale.nPublished = 1 AND langlocale.nDeleted = 0
INNER JOIN `languages` ON langlocale.nLanguageID = languages.nUID AND languages.nPublished = 1 WHERE (ecpp.nDeleted = 0) AND (ecpp.nProductID = 669) AND (ecpp.nOrder > 0) AND (ep.nInStock > 0) AND (epi.nLangID = languages.nUID) AND (languages.nUID = 1) AND (langlocale.nUID = 1) GROUP BY `ecpp`.`nRelatedGroupID` ORDER BY `ecpp`.`nRelatedGroupID` ASC |