MyISAM 㨠InnoDB ã® SELECT ããã©ã¼ãã³ã¹ã®è©±
InnoDB 㯠MVCC ã§é ããã ããèªã¿è¾¼ã¿ä¸»ä½ã®å ´å㯠MyISAM ã¨ãè¨ããã©ãããããçºæ³ã®äººã¯ãããã MVCC ä¸è¦ï¼è¤éãªã¯ã¨ãªãæ¸ããªã人ãªããã§ãã§ãæ°¸ç¶çãªããã·ã¥ã¨ãã¦ãã MySQL ã使ããªããããªã±ã¼ã¹ã§ã¯ãã©ã®ã¿ã¡ããã»ã¹ééä¿¡ãããã«ããã¯ã«ãªãã®ã§ InnoDB ã§ã MyISAM ã§ãããã©ã¼ãã³ã¹ã¯å¤ãããªãããããªããã¨æã£ãã
以ä¸ã¯ã250 ä¸ä»¶ã®ãã¼ãã«ããã©ã³ãã ã«ãã©ã¤ããªãã¼ãæå®ãã¦èªã¿è¾¼ãã å ´åã®ããã©ã¼ãã³ã¹ (10ä¸å)ã
ã¯ã¨ãª | MyISAM | InnoDB | |
WHERE id=x | 10.4ç§ | 10.7ç§ | |
WHERE id>x LIMIT 10 | 19.8ç§ | 18.1ç§ |
ç°å¢ã¯ MySQL 5.1.28-rcããã¥ã¼ãã³ã°ã¨ãã¦ã¯ãkey_buffer_size, myisam_use_mmap, innodb_buffer_pool_size ãæå®ãã¦ãã©ã¡ãã I/O 極å°åããªã³ã¡ã¢ãªç¶æ ã§åãããã¤ããã
HDD ã¸ã®ã¢ã¯ã»ã¹ãé »çºããå ´åã®ãã³ããã¼ã¯ã¯ã誰ãåã£ã¦ãã ãããè¨å®ã§ããããå¤ããã¨æããã©ã
MyISAM ã®ãããªãã¼ãã«ããã¯åé¡ããªãããã¾ãããã¨ãããã InnoDBãã§ãã¡ãªçç±ã¯ãªãããããªãããªã