Created
July 29, 2013 18:37
-
-
Save ramielrowe/6106567 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql> explain select max(length(`key`)), max(length(value)) from notifications; | |
+----+-------------+---------------+------+---------------+------+---------+------+-----------+-------+ | |
| id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra | | |
+----+-------------+---------------+------+---------------+------+---------+------+-----------+-------+ | |
| 1 | SIMPLE | notifications | ALL | NULL | NULL | NULL | NULL | 262505557 | | | |
+----+-------------+---------------+------+---------------+------+---------+------+-----------+-------+ | |
1 row in set (0.00 sec) | |
mysql> explain select max(length(value)) from notifications; | |
+----+-------------+---------------+-------+---------------+---------------------+---------+------+-----------+-------------+ | |
| id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra | | |
+----+-------------+---------------+-------+---------------+---------------------+---------+------+-----------+-------------+ | |
| 1 | SIMPLE | notifications | index | NULL | notifications_value | 303 | NULL | 262505557 | Using index | | |
+----+-------------+---------------+-------+---------------+---------------------+---------+------+-----------+-------------+ | |
1 row in set (0.00 sec) | |
mysql> explain select max(length(`key`)) from notifications; | |
+----+-------------+---------------+-------+---------------+-------------------+---------+------+-----------+-------------+ | |
| id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra | | |
+----+-------------+---------------+-------+---------------+-------------------+---------+------+-----------+-------------+ | |
| 1 | SIMPLE | notifications | index | NULL | notifications_key | 303 | NULL | 262505557 | Using index | | |
+----+-------------+---------------+-------+---------------+-------------------+---------+------+-----------+-------------+ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment