MySQL で EXPLAIN を使って実行計画を調べていると Extra フィールドに「Select tables optimized away」というメッセージが表示された。これはなんだろうか? mysql> explain select max(id) from products ; +----+-------------+-------+------+---------------+------+---------+------+------+------------------------------+ | id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra | +----+-------------+-------+------+---------------+
![MySQL の Select tables optimized away とは何か? - takatoshiono's blog](https://cdn-ak-scissors.b.st-hatena.com/image/square/f94506d14e1d5630a23c1b9d5fdb89084786c785/height=288;version=1;width=512/http%3A%2F%2Fcdn-ak.f.st-hatena.com%2Fimages%2Ffotolife%2Ft%2Ftakatoshiono%2F20150613%2F20150613005543.png)