MySQLã§ãã¼ãã«ã«indexè²¼ãã¨ãbufferã«è¼ãã
ã¾ãã¯ãã¼ãã«ã®ãã¼ã¿ãµã¤ãºç¢ºèªã
mysql >show table status like 'ãã¼ãã«å' \G; *************************** 1. row *************************** Name: ãã¼ãã«å Engine: InnoDB Version: 10 Row_format: Compact Rows: 798021 Avg_row_length: 100 Data_length: 80462672 Max_data_length: 0 Index_length: 0 Data_free: 4194304 Auto_increment: NULL Create_time: 2013-03-12 13:17:34 Update_time: NULL Check_time: NULL Collation: utf8_general_ci Checksum: NULL Create_options: Comment: 1 row in set (0.00 sec)
buffer poolã«è¼ãã¦ã大ä¸å¤«ãã空ã容éã確èªããã
mysql >show engine innodb status; Buffer pool size 786431 Free buffers 683895
ä»åã¯ã»ã¨ãã©ç©ºãã¦ãã®ã§å¤§ä¸å¤«ããã
å ¨ä»¶SELECTåãã¦ã
select count(*) from hoge_table_name;
INDEXè²¼ãã
create index ***on hoge_table_name(key);