我有这样的疑问:(ts_in between 1249077600 AND 1318975199);(ts_in between 1249077600 AND 1318975199) and is_removed=0;CREATE INDEX range_idx_1 using BTREE
ON cart (is
some_other_column不是任何索引的一部分。primary_index_column是主键列;secondary_index_column有一个b树索引,基数为200 (根据MySQL)。以下是explain的结果:
mysql> explain select some_other_column from `table` order by primary_index_column limit----+-------------+---------+-------+---------------+-----