- 论坛徽章:
- 0
|
原帖由 yejr 于 2009-3-6 19:48 发表 ![]()
hi, try to add an index on column (clock)
index is already created:
mysql> show index from history;
+---------+------------+-----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+
| Table | Non_unique | Key_name | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment |
+---------+------------+-----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+
| history | 1 | history_1 | 1 | itemid | A | 17 | NULL | NULL | | BTREE | |
| history | 1 | history_1 | 2 | clock | A | 100033983 | NULL | NULL | | BTREE | |
+---------+------------+-----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+
the primary key is ( itemid, clock) |
|