magento category tree menu query being called on every page
Posted
by
user1173309
on Stack Overflow
See other posts from Stack Overflow
or by user1173309
Published on 2012-07-10T13:49:50Z
Indexed on
2012/07/10
21:16 UTC
Read the original article
Hit count: 253
I have this query being called on every page in Magento CE 1.6.2, to find out where is it being called from, I have disabled all modules, removed the customizations done but it's still being called, this query is slowing up the page loading time and am at my wit's end trying to find out how can I stop it from being executed. The query is given below, for simplcitiy, I have removed lot of category id' to keep the sql short, it would be great if I could get solutions or hints to stop this query being called.
SELECT e
.*, IF(at_is_active.value_id > 0, at_is_active.value, at_is_active_default.value) AS is_active
, IF(at_include_in_menu.value_id > 0, at_include_in_menu.value, at_include_in_menu_default.value) AS include_in_menu
, core_url_rewrite
.request_path
FROM catalog_category_entity
AS e
INNER JOIN catalog_category_entity_int
AS at_is_active_default
ON (at_is_active_default
.entity_id
= e
.entity_id
) AND (at_is_active_default
.attribute_id
= '119') AND at_is_active_default
.store_id
= 0
LEFT JOIN catalog_category_entity_int
AS at_is_active
ON (at_is_active
.entity_id
= e
.entity_id
) AND (at_is_active
.attribute_id
= '119') AND (at_is_active
.store_id
= 1)
INNER JOIN catalog_category_entity_int
AS at_include_in_menu_default
ON (at_include_in_menu_default
.entity_id
= e
.entity_id
) AND (at_include_in_menu_default
.attribute_id
= '934') AND at_include_in_menu_default
.store_id
= 0
LEFT JOIN catalog_category_entity_int
AS at_include_in_menu
ON (at_include_in_menu
.entity_id
= e
.entity_id
) AND (at_include_in_menu
.attribute_id
= '934') AND (at_include_in_menu
.store_id
= 1)
LEFT JOIN core_url_rewrite
ON (core_url_rewrite.category_id=e.entity_id) AND (core_url_rewrite.is_system=1 AND core_url_rewrite.product_id IS NULL AND core_url_rewrite.store_id='1' AND id_path LIKE 'category/%') WHERE (e
.entity_type_id
= '9') AND (e
.entity_id
IN('105', '125', '284', '285', '286', '288', '289', '185', '463', '464', '465', '625')) AND (e
.entity_id
NOT IN('140', '145', '530', '531', '775')) AND (IF(at_is_active.value_id > 0, at_is_active.value, at_is_active_default.value) = '1') AND (IF(at_include_in_menu.value_id > 0, at_include_in_menu.value, at_include_in_menu_default.value) = '1')
Cheers Arjun
© Stack Overflow or respective owner