ãèªãã ãèå³æ·±ãã£ãã
ã ãã ã¨ãã³ãªã®ã§ãæã£ããã¨ãã¡ã¢ã£ã¦ã¿ãã
ããã°ãFalcon
ã¾ã çã¾ããã¦ãªã®ã§ãã³ããã¼ã¯ã®çµæã¯åèç¨åº¦ã«ã
InnoDB vs MyISAM
The second goal of benchmark was a popular myth that MyISAM is faster than InnoDB in reads, as InnoDB is transactional, supports Foreign Key and has an operational overhead. As you will see it is not always true.
ã®éããã©ã¡ãã¨ããã¨(Falconãã)InnoDBã¨MyISAMã®æ§è½æ¯è¼ã®æ¹ãèå³æ·±ãç¹ãå¤ãã£ãã
READ_PK_POINT
ãã®ã¨ã³ããªã®ç°å¢ã§ããã¼ã¯ã§45000qpsã
16 Threadsã®qpsãããã¦ããã以ä¸ã®å¹³è¡åº¦ã ã¨å¾ã
ã«qpsã¯æªããªãã
âç¡éã«max_connectionsãå¢ããã¦ãããã©ã¼ãã³ã¹ã¯ã¹ã±ã¼ã«ããªãã
READ_KEY_POINT
MyISAMã¯128 Threadsã§ã¬ã¯ã³ã¨qpsãè½ã¡ããpreadãåé¡ã½ãã¨ãã£ã¦ãããInnoDBã¯ã¬ã¯ã³ã¨ã¯è½ã¡ãªãã
Falconã¯ããªããã¼ãããï½
READ_KEY_POINT_LIMIT
4 Threadsã ã¨MyISAMããInnoDBã®æ¹ãã¯ããã«qpsãé«ãããThreadsãå¢ããã«å¾ãInnoDBã®qpsã¯ä½ä¸ãã¦ãããä¸æ¹ãMyISAMã¯ä½ä¸ããä¸å®ã
READ_KEY_POINT_NO_DATA
ãããInnoDBã®åã¡ã
ã¤ãã
è¤åã¤ã³ããã¯ã¹ï¼KEY (col1, col2)ã¨ãï¼ã§ãWHEREå¥ã§col1ã使ã£ã¦SELECT col2 FROMããã¨ãcol2ã®ããã®readã¯çºçããªããããããªãã§ãã¨ããã¨ãWHEREã®å¦çã§(è¤å)ã¤ã³ããã¯ã¹ãreadãã¦ããããã¤ãã£ã¦col2ã®å¤ãè¿ããã®ã§ãcol2ã®ããã«ã¾ãreadããå¿
è¦ããªãããã
ã£ã¦ç¥ãããã£ããã
READ_KEY_POINT_NO_DATA_LIMIT
ãããInnoDBã®åã¡ã
ã§ããThreadsãå¢ããã¨å¾ã
ã«InnoDBã¨MyISAMã®qpsã®å·®ã¯ç¸®ã¾ãã
READ_PK_POINT_INDEX
WHEREå¥ã§ä¸»ãã¼ã§ã²ã£ããã¦ã主ãã¼ã®å¤ã ããè¿ãããã£ã¨ãå¹ççã«ã¤ã³ããã¯ã¹ãæ´»ç¨ããã¯ã¨ãªã
MyISAMã¨InnoDBã®å·®ãã»ã¨ãã©ãªãã®ã¯ããã£ã¨ãå¹ççãªã±ã¼ã¹ã ã¨ãã¾ãå·®ãåºãªãã¨ãããã¨ã½ãã
READ_PK_RANGE
InnoDBå§åã
ãããpreadã®åé¡ããã¨æ¸ãã¦ããã
READ_PK_RANGE_INDEX
MyISAMã®qpsãè½ã¡ãªãã
ããã¯ãã¤ã³ããã¯ã¹ã«ã¢ã¯ã»ã¹ããã ããªãï¼æ§è½ä½ä¸ã®åå ã¨ãªãï¼preadãçºçããªããããã ãããªã
READ_KEY_RANGE
ãããThreadsãå¢ããã¨MyISAMã¯ãã£ããè½ã¡ãã