@
encro 结果是这个。
id select_type `table` partitions `type` possible_keys `key` key_len `ref` `rows` filtered Extra
1 SIMPLE rt ALL rel_id,data_id 187 100 Using where
1 SIMPLE ni ref rel_id rel_id 111 test.rt.rel_id 1 100
1 SIMPLE dt ref data_id,data_time data_id 110 test.rt.data_id 232 3.73 Using where
1 SIMPLE pni ALL 96014 10 Using where; Using join buffer (Block Nested Loop)
1 SIMPLE <subquery2> eq_ref <auto_key> <auto_key> 110 test.pni.parent_id 1 100
2 MATERIALIZED parent_list index parent_id parent_id 110 185 100 Using index