Skip to content

Slow query #16

Description

@kaibadash
mysql> explain SELECT prefix02,suffix,chain_ID,prefix01,start FROM chain WHERE prefix01=44 order by rand() LIMIT 1;
+----+-------------+-------+------------+------+----------------+----------------+---------+-------+---------+----------+---------------------------------+
| id | select_type | table | partitions | type | possible_keys  | key            | key_len | ref   | rows    | filtered | Extra                           |
+----+-------------+-------+------------+------+----------------+----------------+---------+-------+---------+----------+---------------------------------+
|  1 | SIMPLE      | chain | NULL       | ref  | INDEX_PREFIX01 | INDEX_PREFIX01 | 9       | const | 1986170 |   100.00 | Using temporary; Using filesort |
+----+-------------+-------+------------+------+----------------+----------------+---------+-------+---------+----------+---------------------------------+

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions