Re: EXPLAIN shows optimized query
explain SELECT * FROM `questions` inner join choices on questions.question_id = choices.FK_question_id
1 SIMPLE questions NULL ALL PRIMARY NULL NULL NULL 2 100.00 NULL
1 SIMPLE choices NULL ref FK_question_id FK_question_id 4 dummy_quiz.questions.question_id 2 100.00 Using index condition
Here choices table is myisam
When i convert it to innodb
The same explain produces the following output.
1 SIMPLE questions NULL ALL PRIMARY NULL NULL NULL 2 100.00 NULL
1 SIMPLE choices NULL ALL FK_question_id NULL NULL NULL 5 20.00 Using where; Using join buffer (Block Nested Loop)
Above the two, which one will produce faster results?
Which one produce slower results? Why?
Do i need to design every table with different engines?
Please help
Subject
Written By
Posted
Re: EXPLAIN shows optimized query
October 31, 2017 08:09AM
November 01, 2017 01:19PM
November 01, 2017 02:11PM
November 01, 2017 02:42PM
November 01, 2017 03:28PM
November 02, 2017 04:02AM
November 02, 2017 09:09AM
November 18, 2017 12:18AM
November 18, 2017 11:18AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.