MySQL статистика (38)
Query Rows Time Cached
SET SESSION sql_mode = '' - 0.000117 false
SELECT items.id, items.parent_id, items.title, items.is_hidden_in_menu, items.sort_order, items.href, menus.code as menu_code, menus.use_code_in_links as menu_code_in_links, blocks.id as block_id, blocks.code as block_code, blocks.description, blocks.content, blocks.template, blocks.block_type, f.id as image_id, f.disk_name as image_path FROM admin_menu_items as items LEFT JOIN admin_menus as menus ON menus.id = items.menu_id LEFT JOIN admin_text_blocks as blocks ON blocks.id = items.text_block_id LEFT JOIN db_files as f ON f.master_object_id = items.id AND f.master_object_class = 'Admin_MenuItem' AND f.field = 'image' WHERE items.is_hidden is null ORDER BY items.parent_id, items.sort_order 10 0.002442 false
SELECT catalog_categories.* FROM catalog_categories ORDER BY sort_order asc 3 0.000355 false
SELECT seo_settings.* FROM seo_settings ORDER BY id desc LIMIT 0, 1 1 0.000305 false
update seo_settings set individual_seo_settings = 'a:0:{}' - 0.000191 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, 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 = '1') LIMIT 0, 1 1 0.000913 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, 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.category_id = '1') AND (catalog_products.deleted <> 1 or catalog_products.deleted is null) ORDER BY catalog_products.name 7 0.001609 false
select * from catalog_attribute_values where product_id = '9' 0 0.001543 false
select * from catalog_attribute_values where product_id = '1' 0 0.000390 false
select * from catalog_attribute_values where product_id = '5' 0 0.000324 false
select * from catalog_attribute_values where product_id = '4' 0 0.000315 false
select * from catalog_attribute_values where product_id = '2' 0 0.000307 false
select * from catalog_attribute_values where product_id = '6' 0 0.000297 false
select * from catalog_attribute_values where product_id = '3' 0 0.000248 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, 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 = '1') LIMIT 0, 1 1 0.000735 false
SELECT db_files.* FROM db_files WHERE (db_files.master_object_id = '9') AND (db_files.master_object_class='Catalog_Product' and field='photos') ORDER BY sort_order 1 0.000650 false
SELECT db_files.* FROM db_files WHERE (db_files.master_object_id = '1') AND (db_files.master_object_class='Catalog_Product' and field='photos') ORDER BY sort_order 3 0.000759 false
SELECT db_files.* FROM db_files WHERE (db_files.master_object_id = '5') AND (db_files.master_object_class='Catalog_Product' and field='photos') ORDER BY sort_order 2 0.000632 false
SELECT db_files.* FROM db_files WHERE (db_files.master_object_id = '4') AND (db_files.master_object_class='Catalog_Product' and field='photos') ORDER BY sort_order 1 0.000725 false
SELECT db_files.* FROM db_files WHERE (db_files.master_object_id = '2') AND (db_files.master_object_class='Catalog_Product' and field='photos') ORDER BY sort_order 1 0.000519 false
SELECT db_files.* FROM db_files WHERE (db_files.master_object_id = '6') AND (db_files.master_object_class='Catalog_Product' and field='photos') ORDER BY sort_order 1 0.000533 false
SELECT db_files.* FROM db_files WHERE (db_files.master_object_id = '3') AND (db_files.master_object_class='Catalog_Product' and field='photos') ORDER BY sort_order 1 0.000490 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, 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 = '2') LIMIT 0, 1 1 0.000940 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, 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.category_id = '2') AND (catalog_products.deleted <> 1 or catalog_products.deleted is null) ORDER BY catalog_products.name 3 0.001331 false
select * from catalog_attribute_values where product_id = '8' 0 0.000286 false
select * from catalog_attribute_values where product_id = '10' 0 0.000287 false
select * from catalog_attribute_values where product_id = '7' 0 0.000314 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, 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 = '2') LIMIT 0, 1 1 0.000903 false
SELECT db_files.* FROM db_files WHERE (db_files.master_object_id = '8') AND (db_files.master_object_class='Catalog_Product' and field='photos') ORDER BY sort_order 1 0.000467 false
SELECT db_files.* FROM db_files WHERE (db_files.master_object_id = '10') AND (db_files.master_object_class='Catalog_Product' and field='photos') ORDER BY sort_order 1 0.000385 false
SELECT db_files.* FROM db_files WHERE (db_files.master_object_id = '7') AND (db_files.master_object_class='Catalog_Product' and field='photos') ORDER BY sort_order 1 0.000380 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.000353 false
SELECT admin_menus.* FROM admin_menus WHERE (admin_menus.code = 'main') LIMIT 0, 1 1 0.000309 false
SELECT (select group_concat(db_files.name ORDER BY 1 SEPARATOR ', ') from db_files where db_files.master_object_id = admin_menu_items.id and (master_object_class='Admin_MenuItem' and field='document_files')) as document_files_calculated, 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 7 0.000916 false
SELECT admin_menu_items.* FROM admin_menu_items ORDER BY sort_order 11 0.000353 false
SELECT admin_menus.* FROM admin_menus WHERE (admin_menus.id = '1') LIMIT 0, 1 1 0.000209 false
SELECT admin_menus.* FROM admin_menus WHERE (admin_menus.code = 'main') LIMIT 0, 1 1 0.000263 false
SELECT (select group_concat(db_files.name ORDER BY 1 SEPARATOR ', ') from db_files where db_files.master_object_id = admin_menu_items.id and (master_object_class='Admin_MenuItem' and field='document_files')) as document_files_calculated, 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 7 0.000871 false