我的网站对数据库生成大量查询,每个用户生成 6 个查询。我试图找出它的来源,但我的知识不足以找到。如果有人可以帮助我如何完善该查询的来源?
我用了:
- Joomla 2.5.8
- 主要组件:CB、Kunena、SH404SEF、K2、Komento、UddeIM PMS
- 主要模块:加维克新闻PRO4
- 阻止垃圾邮件 IP
- 阻止机器人
为每个用户生成的查询:
SELECT *
FROM `_users`
WHERE `id` = 15
SELECT `g`.`id`,`g`.`title`
FROM `_usergroups` AS g
INNER JOIN `_user_usergroup_map` AS m ON m.group_id = g.id
WHERE `m`.`user_id` = 15
SELECT b.id
FROM _user_usergroup_map AS map
LEFT JOIN _usergroups AS a ON a.id = map.group_id
LEFT JOIN _usergroups AS b ON b.lft <= a.lft
AND b.rgt >= a.rgt
WHERE map.user_id = 15
SELECT a.rules
FROM _assets AS a
WHERE (a.id = 1)
GROUP BY a.id, a.rules, a.lft
SELECT id
FROM _assets
WHERE parent_id = 0
SELECT b.rules
FROM _assets AS a
LEFT JOIN _assets AS b ON b.lft <= a.lft
AND b.rgt >= a.rgt
WHERE (a.id = 1 OR a.parent_id = 0)
GROUP BY b.id, b.rules, b.lft
ORDER BY b.lft