- 积分
- 34
- 威望
-
- 金钱
-
- 注册时间
- 2010-9-6
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|
楼主 |
发表于 2012-8-1 14:03:09
|
显示全部楼层
回复 19# 的帖子
mysql> show full processlist;
+-----+------+-----------+-------+---------+------+--------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Id | User | Host | db | Command | Time | State | Info |
+-----+------+-----------+-------+---------+------+--------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| 408 | root | localhost | NULL | Query | 0 | NULL | show full processlist |
| 784 | root | localhost | fenom | Query | 1 | removing tmp table | SELECT t.subject,t.tid FROM cdb_attachments a,cdb_threads t WHERE a.tid=t.tid and a.uid=t.authorid and a.isimage in ('1','-1') and t.dateline>='1328248682' AND t.tid<'428233' ORDER BY t.dateline DESC LIMIT 1 |
怎麼看都是這些問題造成的?
cdb_attachments和cdb_threads建立索引嗎???
能教我怎麼索引這條語句嗎?
拜託了
感謝!!
[ 本帖最后由 qoologo 于 2012-8-1 15:02 编辑 ] |
|