在 CMS JOOMLA 和组件 DJ-CLASSIFIED 中发现慢查询
slow queries were found in CMS JOOMLA and component DJ-CLASSIFIED
我的网站www.MultiBienes.com
正在崩溃
我用
版本:
Joomla 3.3.0
DJ 分类广告 3.2.1
JM-JoomClassifieds 模板 1.04
当我进入管理员菜单时 "Components / DJ-Classifieds / Items"
它从不加载并显示错误 "ERR_EMPTY_RESPONSE"
我们确定
发现慢查询
sql1
SELECT i.*, c.name 作为 cat_name, u.name 作为 user_name,a.c_abuse, i.date_start <= NOW() AND i.date_exp >= NOW() AS s_active, img.path as img_path, img.name as img_name, img.ext as img_ext, img.ordering as img_ord FROM ugzaw_djcf_items i LEFT JOIN ugzaw_djcf_categories c ON i.cat_id=c.id LEFT JOIN ugzaw_users u ON i.user_id=u.id LEFT JOIN ( SELECT count(a.id) as c_abuse, a.item_id FROM ugzaw_djcf_items_abuse a GROUP BY a.item_id ) ON i.id=a.item_id LEFT JOIN ( SELECT img.id, img.item_id, img.name, img.path, img.ext, img.ordering FROM (SELECT * FROM ugzaw_djcf_images WHERE type='item' ORDER BY ordering) img GROUP BY img.item_id ) AS img ON img.item_id=i.id WHERE 1 order by i.id desc LIMIT 0, 20
由于连接图像 table,此查询速度很慢,在当前版本中它已更改并且运行速度更快。
我的网站www.MultiBienes.com 正在崩溃
我用
版本: Joomla 3.3.0 DJ 分类广告 3.2.1 JM-JoomClassifieds 模板 1.04
当我进入管理员菜单时 "Components / DJ-Classifieds / Items" 它从不加载并显示错误 "ERR_EMPTY_RESPONSE"
我们确定 发现慢查询
sql1
SELECT i.*, c.name 作为 cat_name, u.name 作为 user_name,a.c_abuse, i.date_start <= NOW() AND i.date_exp >= NOW() AS s_active, img.path as img_path, img.name as img_name, img.ext as img_ext, img.ordering as img_ord FROM ugzaw_djcf_items i LEFT JOIN ugzaw_djcf_categories c ON i.cat_id=c.id LEFT JOIN ugzaw_users u ON i.user_id=u.id LEFT JOIN ( SELECT count(a.id) as c_abuse, a.item_id FROM ugzaw_djcf_items_abuse a GROUP BY a.item_id ) ON i.id=a.item_id LEFT JOIN ( SELECT img.id, img.item_id, img.name, img.path, img.ext, img.ordering FROM (SELECT * FROM ugzaw_djcf_images WHERE type='item' ORDER BY ordering) img GROUP BY img.item_id ) AS img ON img.item_id=i.id WHERE 1 order by i.id desc LIMIT 0, 20
由于连接图像 table,此查询速度很慢,在当前版本中它已更改并且运行速度更快。