由于以下MySQL查询一直在运行,我的Magento商店的CPU使用量突然大幅增加:
SELECT
`d`.`entity_id`
FROM
`catalog_category_entity_int` AS `d`
LEFT JOIN
`catalog_category_entity_int` AS `c` ON c.attribute_id = '42' AND
c.store_id = '1' AND
c.entity_id = d.entity_id
WHERE
(d.attribute_id = '42') AND
(d.store_id = '0') AND
(d.entity_id IN
(SELECT
`e`.`entity_id`
FROM
`catalog_category_entity` AS `e`
WHERE
(`e`.`entity_type_id` = '3') AND
(`e`.`entity_id` IN
('4', '31', '71', '72', '450',
// this continues to contain around 2000+ id's...
我不知道这是从哪里来的或是什么导致了这个?任何人都可以帮助解释这是在尝试什么,以及是否有任何建议是什么导致它?