SET SESSION sql_mode = '' |
- |
0.000047 |
false |
SELECT
seo_settings.*
FROM seo_settings
ORDER BY
id desc
LIMIT 0, 1 |
1 |
0.000520 |
false |
update seo_settings set individual_seo_settings = 'a:0:{}' |
- |
0.000250 |
false |
SELECT
(select group_concat(db_files.name ORDER BY 1 SEPARATOR ', ') from db_files where
db_files.master_object_id = catalog_categories.id and (master_object_class='Catalog_Category' and field='image')) as image_calculated, (product_type_calculated_join.name) as product_type_calculated, (select group_concat(catalog_attributes.name ORDER BY 1 SEPARATOR ', ') from catalog_attributes, catalog_category_filters where
catalog_attributes.id=catalog_category_filters.attribute_id and
catalog_category_filters.category_id=catalog_categories.id) as filters_calculated, (select group_concat(mebel_relations.id ORDER BY 1 SEPARATOR ', ') from mebel_relations where
mebel_relations.object_id = catalog_categories.id) as colours_calculated, (select group_concat(db_files.id ORDER BY 1 SEPARATOR ', ') from db_files where
db_files.master_object_id = catalog_categories.id and (master_object_class='Catalog_Category' and field='photos')) as photos_calculated, catalog_categories.*
FROM catalog_categories
LEFT JOIN catalog_product_types as product_type_calculated_join ON product_type_calculated_join.id = catalog_categories.type_id
WHERE
(catalog_categories.id = '232')
LIMIT 0, 1 |
1 |
0.002342 |
false |
SELECT product_id, category_id FROM catalog_products_alt_categories WHERE category_id='232' ORDER BY product_id ASC |
0 |
0.000458 |
false |
SELECT
count(DISTINCT catalog_products.id)
FROM catalog_products
LEFT JOIN catalog_products_alt_categories ON catalog_products_alt_categories.product_id = catalog_products.id
LEFT JOIN catalog_categories as category_calculated_join ON category_calculated_join.id = catalog_products.category_id
LEFT JOIN catalog_product_types as type_calculated_join ON type_calculated_join.id = catalog_products.type_id
WHERE
(catalog_products.category_id = '232') AND (catalog_products.hidden is null) AND (catalog_products.deleted is null) OR (catalog_products_alt_categories.category_id = '232') AND (catalog_products.hidden is null) AND (catalog_products.deleted is null) |
1 |
0.008490 |
false |
SELECT
catalog_products_alt_categories.category_id as alt_category_id, (select min(price) from catalog_skus where product_id=catalog_products.id) as min_price, (select max(price) from catalog_skus where product_id=catalog_products.id) as max_price, (select group_concat(db_files.name ORDER BY 1 SEPARATOR ', ') from db_files where
db_files.master_object_id = catalog_products.id and (master_object_class='Catalog_Product' and field='photos')) as photos_calculated, (category_calculated_join.name) as category_calculated, (type_calculated_join.name) as type_calculated, (select group_concat(catalog_skus.name ORDER BY 1 SEPARATOR ', ') from catalog_skus where
catalog_skus.product_id = catalog_products.id) as skus_calculated, (select group_concat(mebel_relations.id ORDER BY 1 SEPARATOR ', ') from mebel_relations where
mebel_relations.object_id = catalog_products.id) as colours_calculated, (select group_concat(catalog_categories.name ORDER BY 1 SEPARATOR ', ') from catalog_categories, catalog_products_alt_categories where
catalog_categories.id=catalog_products_alt_categories.category_id and
catalog_products_alt_categories.product_id=catalog_products.id) as alt_categories_calculated, catalog_products.*
FROM catalog_products
LEFT JOIN catalog_products_alt_categories ON catalog_products_alt_categories.product_id = catalog_products.id
LEFT JOIN catalog_categories as category_calculated_join ON category_calculated_join.id = catalog_products.category_id
LEFT JOIN catalog_product_types as type_calculated_join ON type_calculated_join.id = catalog_products.type_id
WHERE
(catalog_products.category_id = '232') AND (catalog_products.hidden is null) AND (catalog_products.deleted is null) OR (catalog_products_alt_categories.category_id = '232') AND (catalog_products.hidden is null) AND (catalog_products.deleted is null)
GROUP BY
catalog_products.id
ORDER BY
CASE WHEN catalog_products.category_id = 232 THEN 0 ELSE 1 END, sort_order asc
LIMIT 0, 28 |
10 |
0.018019 |
false |
SELECT
(select min(price) from catalog_skus where product_id=catalog_products.id) as min_price, (select max(price) from catalog_skus where product_id=catalog_products.id) as max_price, (select group_concat(db_files.name ORDER BY 1 SEPARATOR ', ') from db_files where
db_files.master_object_id = catalog_products.id and (master_object_class='Catalog_Product' and field='photos')) as photos_calculated, (category_calculated_join.name) as category_calculated, (type_calculated_join.name) as type_calculated, (select group_concat(catalog_skus.name ORDER BY 1 SEPARATOR ', ') from catalog_skus where
catalog_skus.product_id = catalog_products.id) as skus_calculated, (select group_concat(mebel_relations.id ORDER BY 1 SEPARATOR ', ') from mebel_relations where
mebel_relations.object_id = catalog_products.id) as colours_calculated, (select group_concat(catalog_categories.name ORDER BY 1 SEPARATOR ', ') from catalog_categories, catalog_products_alt_categories where
catalog_categories.id=catalog_products_alt_categories.category_id and
catalog_products_alt_categories.product_id=catalog_products.id) as alt_categories_calculated, catalog_products.*
FROM catalog_products
LEFT JOIN catalog_categories as category_calculated_join ON category_calculated_join.id = catalog_products.category_id
LEFT JOIN catalog_product_types as type_calculated_join ON type_calculated_join.id = catalog_products.type_id
WHERE
(catalog_products.sell_out = 1) AND (catalog_products.hidden is null) AND (catalog_products.deleted is null) |
6 |
0.012132 |
false |
SELECT
catalog_categories.*
FROM catalog_categories
ORDER BY
sort_order |
208 |
0.001953 |
false |
SELECT
(select group_concat(db_files.name ORDER BY 1 SEPARATOR ', ') from db_files where
db_files.master_object_id = catalog_categories.id and (master_object_class='Catalog_Category' and field='image')) as image_calculated, (product_type_calculated_join.name) as product_type_calculated, (select group_concat(catalog_attributes.name ORDER BY 1 SEPARATOR ', ') from catalog_attributes, catalog_category_filters where
catalog_attributes.id=catalog_category_filters.attribute_id and
catalog_category_filters.category_id=catalog_categories.id) as filters_calculated, (select group_concat(mebel_relations.id ORDER BY 1 SEPARATOR ', ') from mebel_relations where
mebel_relations.object_id = catalog_categories.id) as colours_calculated, (select group_concat(db_files.id ORDER BY 1 SEPARATOR ', ') from db_files where
db_files.master_object_id = catalog_categories.id and (master_object_class='Catalog_Category' and field='photos')) as photos_calculated, catalog_categories.*
FROM catalog_categories
LEFT JOIN catalog_product_types as product_type_calculated_join ON product_type_calculated_join.id = catalog_categories.type_id
WHERE
(catalog_categories.id = '232')
LIMIT 0, 1 |
1 |
0.000917 |
false |
SELECT
db_files.*
FROM db_files
WHERE
(db_files.master_object_id = '2475') AND (db_files.master_object_class='Catalog_Product' and field='photos')
ORDER BY
sort_order |
1 |
0.000424 |
false |
SELECT
db_files.*
FROM db_files
WHERE
(db_files.master_object_id = '3194') AND (db_files.master_object_class='Catalog_Product' and field='photos')
ORDER BY
sort_order |
9 |
0.000483 |
false |
SELECT
db_files.*
FROM db_files
WHERE
(db_files.master_object_id = '3200') AND (db_files.master_object_class='Catalog_Product' and field='photos')
ORDER BY
sort_order |
4 |
0.000360 |
false |
SELECT
db_files.*
FROM db_files
WHERE
(db_files.master_object_id = '3195') AND (db_files.master_object_class='Catalog_Product' and field='photos')
ORDER BY
sort_order |
3 |
0.000318 |
false |
SELECT
db_files.*
FROM db_files
WHERE
(db_files.master_object_id = '3196') AND (db_files.master_object_class='Catalog_Product' and field='photos')
ORDER BY
sort_order |
5 |
0.000314 |
false |
SELECT
db_files.*
FROM db_files
WHERE
(db_files.master_object_id = '3197') AND (db_files.master_object_class='Catalog_Product' and field='photos')
ORDER BY
sort_order |
5 |
0.000354 |
false |
SELECT
db_files.*
FROM db_files
WHERE
(db_files.master_object_id = '3198') AND (db_files.master_object_class='Catalog_Product' and field='photos')
ORDER BY
sort_order |
4 |
0.000302 |
false |
SELECT
db_files.*
FROM db_files
WHERE
(db_files.master_object_id = '3199') AND (db_files.master_object_class='Catalog_Product' and field='photos')
ORDER BY
sort_order |
2 |
0.000305 |
false |
SELECT
db_files.*
FROM db_files
WHERE
(db_files.master_object_id = '3201') AND (db_files.master_object_class='Catalog_Product' and field='photos')
ORDER BY
sort_order |
2 |
0.000282 |
false |
SELECT
db_files.*
FROM db_files
WHERE
(db_files.master_object_id = '3202') AND (db_files.master_object_class='Catalog_Product' and field='photos')
ORDER BY
sort_order |
1 |
0.000250 |
false |
SELECT
admin_module_settings.*
FROM admin_module_settings
WHERE
(admin_module_settings.module_id='admin') AND (admin_module_settings.form_id='default')
LIMIT 0, 1 |
1 |
0.000374 |
false |
SELECT
(menu_link_calculated_join.title) as menu_link_calculated, admin_text_blocks.*
FROM admin_text_blocks
LEFT JOIN admin_menu_items as menu_link_calculated_join ON menu_link_calculated_join.text_block_id = admin_text_blocks.id
WHERE
(admin_text_blocks.code = 'header_wa')
LIMIT 0, 1 |
1 |
0.000544 |
false |
SELECT
(menu_link_calculated_join.title) as menu_link_calculated, admin_text_blocks.*
FROM admin_text_blocks
LEFT JOIN admin_menu_items as menu_link_calculated_join ON menu_link_calculated_join.text_block_id = admin_text_blocks.id
WHERE
(admin_text_blocks.code = 'header_address')
LIMIT 0, 1 |
1 |
0.000403 |
false |
SELECT
(menu_link_calculated_join.title) as menu_link_calculated, admin_text_blocks.*
FROM admin_text_blocks
LEFT JOIN admin_menu_items as menu_link_calculated_join ON menu_link_calculated_join.text_block_id = admin_text_blocks.id
WHERE
(admin_text_blocks.code = 'header_tel')
LIMIT 0, 1 |
1 |
0.000364 |
false |
SELECT
admin_menus.*
FROM admin_menus
WHERE
(admin_menus.code = 'main')
LIMIT 0, 1 |
1 |
0.000506 |
false |
SELECT
admin_menu_items.*
FROM admin_menu_items
WHERE
(admin_menu_items.menu_id = '1') AND (admin_menu_items.parent_id is null and (admin_menu_items.is_hidden is null or admin_menu_items.is_hidden=0) and (admin_menu_items.is_hidden_in_menu is null or admin_menu_items.is_hidden_in_menu=0))
ORDER BY
group_name, sort_order |
6 |
0.000395 |
false |
SELECT
admin_menu_items.*
FROM admin_menu_items
ORDER BY
sort_order |
24 |
0.000359 |
false |
SELECT
admin_menus.*
FROM admin_menus
WHERE
(admin_menus.id = '1')
LIMIT 0, 1 |
1 |
0.000210 |
false |
select count(*) from shop_carts where cart_id = '48ed4603b7385b8a3dd75dab7736d8202884bfc10d886772877b0c290cb7e9ce5db83a30756205417fd20595c4ac42148dcfc7f3605e7b9ffa8bf9a9ae66aabf' |
1 |
0.000875 |
false |
SELECT
(menu_link_calculated_join.title) as menu_link_calculated, admin_text_blocks.*
FROM admin_text_blocks
LEFT JOIN admin_menu_items as menu_link_calculated_join ON menu_link_calculated_join.text_block_id = admin_text_blocks.id
WHERE
(admin_text_blocks.code = 'header_tel_mobile')
LIMIT 0, 1 |
1 |
0.000291 |
false |
SELECT
shop_carts.*
FROM shop_carts
WHERE
(shop_carts.cart_id = '48ed4603b7385b8a3dd75dab7736d8202884bfc10d886772877b0c290cb7e9ce5db83a30756205417fd20595c4ac42148dcfc7f3605e7b9ffa8bf9a9ae66aabf')
LIMIT 0, 1 |
0 |
0.000178 |
false |
select id, is_recommended, name
from catalog_categories
where parent_id is null and hidden is null
order by sort_order asc |
13 |
0.000349 |
false |
select id, is_recommended, name
from catalog_categories
where parent_id = 1 and hidden is null
order by sort_order asc |
5 |
0.000299 |
false |
select id, is_recommended, name
from catalog_categories
where parent_id = 21 and hidden is null
order by sort_order asc |
6 |
0.000211 |
false |
select id, is_recommended, name
from catalog_categories
where parent_id = 4 and hidden is null
order by sort_order asc |
9 |
0.000207 |
false |
select id, is_recommended, name
from catalog_categories
where parent_id = 22 and hidden is null
order by sort_order asc |
7 |
0.000204 |
false |
select id, is_recommended, name
from catalog_categories
where parent_id = 16 and hidden is null
order by sort_order asc |
8 |
0.000281 |
false |
select id, is_recommended, name
from catalog_categories
where parent_id = 8 and hidden is null
order by sort_order asc |
4 |
0.000175 |
false |
select id, is_recommended, name
from catalog_categories
where parent_id = 135 and hidden is null
order by sort_order asc |
8 |
0.000163 |
false |
select id, is_recommended, name
from catalog_categories
where parent_id = 232 and hidden is null
order by sort_order asc |
0 |
0.000122 |
false |
select id, is_recommended, name
from catalog_categories
where parent_id = 14 and hidden is null
order by sort_order asc |
0 |
0.000232 |
false |
select id, is_recommended, name
from catalog_categories
where parent_id = 63 and hidden is null
order by sort_order asc |
3 |
0.000142 |
false |
select id, is_recommended, name
from catalog_categories
where parent_id = 65 and hidden is null
order by sort_order asc |
11 |
0.000233 |
false |
select id, is_recommended, name
from catalog_categories
where parent_id = 62 and hidden is null
order by sort_order asc |
0 |
0.000135 |
false |
select id, is_recommended, name
from catalog_categories
where parent_id = 203 and hidden is null
order by sort_order asc |
0 |
0.000159 |
false |
SELECT * FROM banners_categories WHERE code = 'sidebar_banners' |
1 |
0.000429 |
false |
SELECT max(id) as id
FROM banners
WHERE category_id = '2' AND enabled = 1
GROUP BY position |
1 |
0.000522 |
false |
SELECT
(DATEDIFF(CURRENT_DATE(), date_enabled)) as days_enabled, (category_calculated_join.name) as category_calculated, (select group_concat(db_files.name ORDER BY 1 SEPARATOR ', ') from db_files where
db_files.master_object_id = banners.id and (master_object_class='Banners_Banner' and field='image')) as image_calculated, (select group_concat(db_files.name ORDER BY 1 SEPARATOR ', ') from db_files where
db_files.master_object_id = banners.id and (master_object_class='Banners_Banner' and field='flash_file')) as flash_file_calculated, banners.*
FROM banners
LEFT JOIN banners_categories as category_calculated_join ON category_calculated_join.id = banners.category_id
WHERE
(banners.id IN ('12'))
ORDER BY
banners.sort_order DESC, banners.id |
1 |
0.000613 |
false |
SELECT
(DATEDIFF(CURRENT_DATE(), date_enabled)) as days_enabled, (category_calculated_join.name) as category_calculated, (select group_concat(db_files.name ORDER BY 1 SEPARATOR ', ') from db_files where
db_files.master_object_id = banners.id and (master_object_class='Banners_Banner' and field='image')) as image_calculated, (select group_concat(db_files.name ORDER BY 1 SEPARATOR ', ') from db_files where
db_files.master_object_id = banners.id and (master_object_class='Banners_Banner' and field='flash_file')) as flash_file_calculated, banners.*
FROM banners
LEFT JOIN banners_categories as category_calculated_join ON category_calculated_join.id = banners.category_id
WHERE
(banners.position='12') AND ((
exposure_limit_type is NULL or
exposure_limit_type = 0 or
(exposure_limit_type = 1 and period_start >= CURRENT_DATE() and period_end <= CURRENT_DATE()) or
(exposure_limit_type = 2 and hits_left > 0)
)) |
1 |
0.000563 |
false |
update banners set impression_number = impression_number+1 where id in ('12') |
- |
0.000175 |
false |
SELECT
db_files.*
FROM db_files
WHERE
(db_files.master_object_id = '12') AND (db_files.master_object_class='Banners_Banner' and field='image')
ORDER BY
id |
1 |
0.000251 |
false |
SELECT
(menu_link_calculated_join.title) as menu_link_calculated, admin_text_blocks.*
FROM admin_text_blocks
LEFT JOIN admin_menu_items as menu_link_calculated_join ON menu_link_calculated_join.text_block_id = admin_text_blocks.id
WHERE
(admin_text_blocks.code = 'footer_address')
LIMIT 0, 1 |
1 |
0.000254 |
false |
SELECT
(menu_link_calculated_join.title) as menu_link_calculated, admin_text_blocks.*
FROM admin_text_blocks
LEFT JOIN admin_menu_items as menu_link_calculated_join ON menu_link_calculated_join.text_block_id = admin_text_blocks.id
WHERE
(admin_text_blocks.code = 'footer_address')
LIMIT 0, 1 |
1 |
0.000326 |
false |