0

In Oracle there is an important note in the explain plain where it says filter a.col1=... this one letting you know col1 is first retrieved from the disk and only then filter is been done. This important piece of information let you know the exact column been used within a specific index and which are filter after and may be good candidate for index.

In MySQL explain result we see something like:

+----+-------------+-------+------------+--------+--------------------+---------+-------+--------+----------+------------------------------------+
| id | select_type | table | partitions | type | key | key_len | ref | rows | filtered | Extra |
+----+-------------+-------+------------+--------+--------------------+---------+-------+--------+----------+------------------------------------+
| 1 | SIMPLE | SD | NULL | range | ix_store_composite | 64 | NULL | 252978 | 60.00 | Using index condition; Using where |
+----+-------------+-------+------------+--------+--------------------+---------+-------+--------+----------+------------------------------------+

What I would like to know which of the columns data are coming from the index and which are been filtered after (the using where). I couldn't find any option to get additional detail on the explain

asked Jun 28, 2020 at 9:47

1 Answer 1

0

"Using index condition" does not mean the same as "Using index".

Run this:

EXPLAIN FORMAT=JSON SELECT ...

If you need further help, post that in your Question. Also show us the SELECT; it will help us go into more detail.

answered Jun 29, 2020 at 14:09
0

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.