Advertisement
Guest User

Untitled

a guest
Jan 26th, 2015
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nim 1.42 KB | None | 0 0
  1. mysql> explain select count(*) from geonames_features f left join geonames_timezones tz on f.country_code = tz.country_code and f.country_code in (select country_code from geonames_timezones group by country_code having count(*) = 1);
  2. +----+-------------+--------------------+-------+---------------+--------------+---------+----------------------------------------+---------+--------------------------+
  3. | id | select_type | table              | type  | possible_keys | key          | key_len | ref                                    | rows    | Extra                    |
  4. +----+-------------+--------------------+-------+---------------+--------------+---------+----------------------------------------+---------+--------------------------+
  5. |  1 | PRIMARY     | f                  | index | NULL          | utc_offset   | 785     | NULL                                   | 9668878 | Using index              |
  6. |  1 | PRIMARY     | tz                 | ref   | country_code  | country_code | 768     | blopboard_production_v1.f.country_code |       1 | Using where; Using index |
  7. |  2 | SUBQUERY    | geonames_timezones | index | country_code  | country_code | 768     | NULL                                   |     417 | Using index              |
  8. +----+-------------+--------------------+-------+---------------+--------------+---------+----------------------------------------+---------+--------------------------+
  9. 3 rows in set (0.11 sec)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement