Created
May 29, 2015 02:18
-
-
Save yoku0825/dc57d1937e08bcb68069 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
mysql56> SELECT table_name, index_name, sum(number_records) FROM information_schema.innodb_buffer_page WHERE table_name = '`d1`.`t1`' GROUP BY 1, 2; | |
Empty set (0.04 sec) | |
mysql56> SELECT 1 FROM d1.t1 FORCE INDEX(val); | |
.. | |
10000 rows in set (0.01 sec) | |
mysql56> SELECT table_name, index_name, sum(number_records) FROM information_schema.innodb_buffer_page WHERE table_name = '`d1`.`t1`' GROUP BY 1, 2; | |
+------------+------------+---------------------+ | |
| table_name | index_name | sum(number_records) | | |
+------------+------------+---------------------+ | |
| `d1`.`t1` | num | 127 | | |
| `d1`.`t1` | val | 10030 | | |
+------------+------------+---------------------+ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment