Привет!
Появилась такая ерунда сайт тормозит на ровном месте. Если открыть сайт и перейти по ссылке любой а потом через несколько минут перейти на другую то он не всегда сразу переходит может стоять минуты 2 и грузиться. Провел статистику запросов и вот какая разница когда тормозит
Нашел проблемные места вот это когда нормально работает
48. (0.002) SELECT * FROM category c LEFT JOIN category_description cd ON (c.category_id = cd.category_id) LEFT JOIN category_to_store c2s ON (c.category_id = c2s.category_id) WHERE cd.language_id = '1' AND c2s.store_id = '0' AND c.status = '1' ORDER BY c.parent_id, c.sort_order, cd.name
43. (0.001) SELECT * FROM information i LEFT JOIN information_description id ON (i.information_id = id.information_id) LEFT JOIN information_to_store i2s ON (i.information_id = i2s.information_id) WHERE id.language_id = '1' AND i2s.store_id = '0' AND i.status = '1' AND i.sort_order <> '-1' ORDER BY i.sort_order, LCASE(id.title) ASC
44. (0.000) SELECT * FROM url_alias WHERE `query` IN ('information_id=4')
Вот те же но в момент виса время в 20 раз увеличено
43. (0.009) SELECT * FROM information i LEFT JOIN information_description id ON (i.information_id = id.information_id) LEFT JOIN information_to_store i2s ON (i.information_id = i2s.information_id) WHERE id.language_id = '1' AND i2s.store_id = '0' AND i.status = '1' AND i.sort_order <> '-1' ORDER BY i.sort_order, LCASE(id.title) ASC
44. (0.020) SELECT * FROM url_alias WHERE `query` IN ('information_id=4')
48. (0.020) SELECT * FROM category c LEFT JOIN category_description cd ON (c.category_id = cd.category_id) LEFT JOIN category_to_store c2s ON (c.category_id = c2s.category_id) WHERE cd.language_id = '1' AND c2s.store_id = '0' AND c.status = '1' ORDER BY c.parent_id, c.sort_order, cd.name
В чем может быть проблема хелппп
0Ответить
Цитата
Изменить