看看能不能优化,先用explain分析一下你的SQL语句。例如:
mysql> EXPLAIN SELECT COUNT(*) FROM Headline WHERE ExpireTime >= 1112201600 \G*************************** 1. row ***************************           id: 1  select_type: SIMPLE        table: Headline         type: ALLpossible_keys: NULL-------->查询中可能存在的key          key: NULL------->查询中使用的key      key_len: NULL          ref: NULL         rows: 302116------>查询大约要扫描的行数        Extra: Using where1 row in set (0.00 sec)