하나는 dev 서버 데이터베이스고 다른 하나는 stage 서버 데이터베이스 인데, 어째서 해당 테이블의 실행계획이 다를까요?
두 서버 모두 order 테이블에 tn_id가 외래키 설정이 되어 있습니다. 두 개의 설정이 똑같은 것 같은데 이유를 모르겠습니다 ㅠㅠ
1.
explain select * FROM `order` `o` WHERE `o`.`tn_id` = "9775b99fe1b944d3b5d182a868458059";
# id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE o ref FK_0fbad06a8ded9526fc70dd67eee FK_0fbad06a8ded9526fc70dd67eee 767 const 209 Using index condition
2.
explain select * FROM `order` `o` WHERE `o`.`tn_id` = "f1457d4829964ec2b7e32234e9bcb88b";
# id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE o ALL FK_0fbad06a8ded9526fc70dd67eee 7602 Using where