- 论坛徽章:
- 0
|
原帖由 yueliangdao0608 于 2008-7-28 13:06 发表 ![]()
开启一下慢查询,然后调整一下吧。
[root@localhost log]# mysqldumpslow -t 10 -a slow.log
Reading mysql slow query log from slow.log
Count: 1 Time=832.00s (832s) Lock=6.00s (6s) Rows=0.0 (0), szxnmysql[szxnmysql]@localhost
SELECT t.*, f.name FROM cdb_threads t, cdb_forums f WHERE f.fid=t.fid AND f.fid not in (41) AND t.displayorder not in (-1,-2) AND t.closed NOT LIKE 'moved|%' AND t.replies !=0 AND t.dateline>1216601202 ORDER BY t.views DESC LIMIT 0, 10
Count: 1 Time=831.00s (831s) Lock=8.00s (8s) Rows=0.0 (0), szxnmysql[szxnmysql]@localhost
SELECT t.*, f.name FROM cdb_threads t, cdb_forums f WHERE f.fid=t.fid AND f.fid not in (41) AND t.displayorder not in (-1,-2) AND t.closed NOT LIKE 'moved|%' AND t.replies !=0 AND t.dateline>1216601607 ORDER BY t.views DESC LIMIT 0, 10
Count: 1 Time=831.00s (831s) Lock=5.00s (5s) Rows=0.0 (0), szxnmysql[szxnmysql]@localhost
SELECT t.*, f.name FROM cdb_threads t, cdb_forums f WHERE f.fid=t.fid AND f.fid not in (41) AND t.displayorder not in (-1,-2) AND t.closed NOT LIKE 'moved|%' AND t.replies !=0 AND t.dateline>1216600889 ORDER BY t.views DESC LIMIT 0, 10
Count: 1 Time=831.00s (831s) Lock=4.00s (4s) Rows=0.0 (0), szxnmysql[szxnmysql]@localhost
SELECT t.*, f.name FROM cdb_threads t, cdb_forums f WHERE f.fid=t.fid AND f.fid not in (41) AND t.displayorder not in (-1,-2) AND t.closed NOT LIKE 'moved|%' AND t.replies !=0 AND t.dateline>1216600919 ORDER BY t.views DESC LIMIT 0, 10
Count: 1 Time=831.00s (831s) Lock=8.00s (8s) Rows=0.0 (0), szxnmysql[szxnmysql]@localhost
SELECT t.*, f.name FROM cdb_threads t, cdb_forums f WHERE f.fid=t.fid AND f.fid not in (41) AND t.displayorder not in (-1,-2) AND t.closed NOT LIKE 'moved|%' AND t.replies !=0 AND t.dateline>1216601319 ORDER BY t.views DESC LIMIT 0, 10
Count: 1 Time=831.00s (831s) Lock=7.00s (7s) Rows=0.0 (0), szxnmysql[szxnmysql]@localhost
SELECT t.*, f.name FROM cdb_threads t, cdb_forums f WHERE f.fid=t.fid AND f.fid not in (41) AND t.displayorder not in (-1,-2) AND t.closed NOT LIKE 'moved|%' AND t.replies !=0 AND t.dateline>1216601014 ORDER BY t.views DESC LIMIT 0, 10
Count: 1 Time=828.00s (828s) Lock=4.00s (4s) Rows=0.0 (0), szxnmysql[szxnmysql]@localhost
SELECT t.*, f.name FROM cdb_threads t, cdb_forums f WHERE f.fid=t.fid AND f.fid not in (41) AND t.displayorder not in (-1,-2) AND t.closed NOT LIKE 'moved|%' AND t.replies !=0 AND t.dateline>1216601490 ORDER BY t.views DESC LIMIT 0, 10
Count: 1 Time=828.00s (828s) Lock=7.00s (7s) Rows=0.0 (0), szxnmysql[szxnmysql]@localhost
SELECT t.*, f.name FROM cdb_threads t, cdb_forums f WHERE f.fid=t.fid AND f.fid not in (41) AND t.displayorder not in (-1,-2) AND t.closed NOT LIKE 'moved|%' AND t.replies !=0 AND t.dateline>1216601576 ORDER BY t.views DESC LIMIT 0, 10
Count: 1 Time=828.00s (828s) Lock=5.00s (5s) Rows=0.0 (0), szxnmysql[szxnmysql]@localhost
SELECT t.*, f.name FROM cdb_threads t, cdb_forums f WHERE f.fid=t.fid AND f.fid not in (41) AND t.displayorder not in (-1,-2) AND t.closed NOT LIKE 'moved|%' AND t.replies !=0 AND t.dateline>1216601288 ORDER BY t.views DESC LIMIT 0, 10
Count: 1 Time=828.00s (828s) Lock=7.00s (7s) Rows=0.0 (0), szxnmysql[szxnmysql]@localhost
SELECT t.*, f.name FROM cdb_threads t, cdb_forums f WHERE f.fid=t.fid AND f.fid not in (41) AND t.displayorder not in (-1,-2) AND t.closed NOT LIKE 'moved|%' AND t.replies !=0 AND t.dateline>1216600984 ORDER BY t.views DESC LIMIT 0, 10
[ 本帖最后由 zcongwei 于 2008-7-28 22:20 编辑 ] |
|