- 积分
- 62
- 威望
-
- 金钱
-
- 注册时间
- 2011-6-8
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|
楼主 |
发表于 2012-7-10 13:05:12
|
显示全部楼层
X2慢查询日志,慢的到10秒了
# Query_time: 8.359135 Lock_time: 0.000068 Rows_sent: 39 Rows_examined: 78
use tnbzcomdx20;
SET timestamp=1341734404;
SELECT * FROM pre_forum_ratelog WHERE pid IN (0,1078552,1078559,1078560,1078562,1078584,1078585,1078591,1078594,1078604,1078634) ORDER BY dateline DESC;
# User@Host: mysqluserxdh[mysqluserxdh] @ localhost []
# Query_time: 9.102929 Lock_time: 0.000084 Rows_sent: 10 Rows_examined: 10
SET timestamp=1341734404;
SELECT p.* FROM pre_forum_post_1 p WHERE p.tid='19025' AND p.invisible='0' ORDER BY p.dateline LIMIT 0, 10;
# Time: 120708 16:20:59
# User@Host: mysqluserxdh[mysqluserxdh] @ localhost []
# Query_time: 7.197750 Lock_time: 0.000121 Rows_sent: 20 Rows_examined: 750390
SET timestamp=1341735659;
SELECT p.authorid, p.tid, p.pid, p.fid, p.invisible, p.dateline, p.message, t.special, t.status, t.subject, t.digest,t.attachment, t.replies, t.views, t.lastposter, t.lastpost, t.displayorder FROM pre_forum_post p^M
INNER JOIN pre_forum_thread t ON t.tid=p.tid AND t.fid IN('71','75','6','67','2','61','4','73','5','23','64','57','59','15','72','63','70','77','58','68','51','28','55','38','56','60','20','69','25','34','54','22','49','26','27','30','29','32','33','8','65','50','37','36','11','9','41','76','42','43','62','35','19') ^M
WHERE p.authorid='27369' AND p.first='0' ORDER BY p.dateline DESC LIMIT 0,20; |
|