'neutral' && )ORDER BY datum DESC该表有三个指数index_status_mit_spam index_user 32 const 7800 Using where; Using filesort
possible_keys是MySQL可能想使用的索引,keys是<em
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----+-------------+---------+-------+---------------+-----
Table `price`id site 该表是全新的,并且没有创建索引。然后,我使用以下查询发出了创建新索引的请求:
CREATE INDEX ix_price_site_product_value_id ON price (site, product, value, id我想知道如果我发出另一个索引创建,它会在计算过程中使用现有的索引吗?如果是这样,以什么形式?