Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slow query #16

Open
kaibadash opened this issue Jan 25, 2021 · 0 comments
Open

Slow query #16

kaibadash opened this issue Jan 25, 2021 · 0 comments

Comments

@kaibadash
Copy link
Owner

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 |
+----+-------------+-------+------------+------+----------------+----------------+---------+-------+---------+----------+---------------------------------+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant