explain SELECT btitle.id,btitle.hit,btitle.bbstop,btitle.sign,btitle.huati,btitle.P_display,btitle.bbs_img,btitle.title,btitle.redate,btitle.rep,btitle.picture,btitle.name FROM bbstitle btitle WHERE btitle.BoardID_1='A_6' AND btitle.BoardID_2='A_6_4' AND btitle.deleted=0 ORDER BY bbstop desc,SIGN DESC,huati desc,redate desc LIMIT 0,30+----+-------------+--------+------+-----------------------------+-----------+---------+-------+------+-----------------------------+
| id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra |
+----+-------------+--------+------+-----------------------------+-----------+---------+-------+------+-----------------------------+
| 1 | SIMPLE | btitle | ref | deleted,BoardID_2,BoardID_1 | BoardID_2 | 1002 | const | 1001 | Using where; Using filesort |
+----+-------------+--------+------+-----------------------------+-----------+---------+-------+------+-----------------------------+
| id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra |
+----+-------------+--------+------+-----------------------------+-----------+---------+-------+------+-----------------------------+
| 1 | SIMPLE | btitle | ref | deleted,BoardID_2,BoardID_1 | BoardID_2 | 1002 | const | 1001 | Using where; Using filesort |
+----+-------------+--------+------+-----------------------------+-----------+---------+-------+------+-----------------------------+
这三个字段加联合索引