The Art of Workï¼MySQL InnoDB Pluginã®ãã¼ã¿å§ç¸®æ©è½ æ§è½ç·¨
MySQL InnoDB Pluginã®ãã¼ã¿å§ç¸®æ©è½ã®ç¶ãã§ããååã¯InnoDB Pluginã®ç¬èªæ©è½ã§ãããã¼ã¿å§ç¸®ã®ä»çµã¿ã解説ããWikipediaæ¥æ¬èªçã®ãã¼ã¿ãç´ååã«ã¾ã§å§ç¸®ããããã¨ã確èªãã¾ãããä»åã¯ãã¼ã¿å§ç¸®ã«ãã£ã¦æ§è½ãã©ã®ããã«å¤åãããããå®éã«ãã³ããã¼ã¯è©¦é¨ãè¡ã£ã¦è¦ã¦ããã¾ãã
試é¨ã®æ¹é
ãã¼ã¿å§ç¸®ã«ããæ§è½ã¸ã®å½±é¿ã¯ã以ä¸ã®äºç¹ãèãããã¾ãã
- ã¡ãªããï¼ãã¼ã¿ãµã¤ãºãå°ãããªãããããã£ã¹ã¯I/Oãæ¸ã
- ãã¡ãªããï¼å§ç¸®ã»å±éã®å¦çãè¡ããããããCPUè² è·ãé«ããªã
ããã§ããããã®ç¹å¾´ãããåããããã«è©¦é¨ãã¿ã¼ã³ã工夫ãã¾ããWikipediaæ¥æ¬èªçã®ãã¼ã¿ã¯InnoDBä¸ã§ããã5GBããã¾ãããã¾ãçãç¯å²ã«çµã£ã¦èªã¿åãå¦çãè¡ããã¨ã§ãã£ã¹ã¯I/Oããã¾ãçºçããªãããã«ãã¾ããããã§CPUè² è·ã®å¾åã確èªãããã¨ãã§ãã¾ãã次ã«èªã¿åãç¯å²ãå¾ã
ã«åºãã¦ãã£ã¦ãã£ã¹ã¯I/Oãçºçãããããã«ãããã£ã¹ã¯I/Oã®å¾åã確èªãã¦ããã¾ãã
試é¨ãè¡ããããããããããã¼ãã«ã以ä¸ã®ããã«ä½ãç´ãã¾ãã
CREATE TABLE `text_r` ( `id` int(11) NOT NULL AUTO_INCREMENT, `old_id` int(10) unsigned NOT NULL, `old_text` mediumtext COLLATE utf8_bin NOT NULL, `old_flags` tinyblob NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `old_id` (`old_id`) ) ENGINE=InnoDB
å
ã®ãã¼ãã«ã§ã¯old_idã主ãã¼ãªã®ã§ãããæãçªããã£ã¦ã¬ã³ã¼ããé¸æãã¥ããããæ°ãã«idã主ãã¼ã¨ãã¦é£çªãæ¯ãç´ãã¾ããå
ã®old_idã«ã¯ãä»åã®è©¦é¨ã§ã¯ä½¿ãã¾ããã念ã®ããä¸æãã¼ãä»ä¸ãã¾ããã¾ããæ¬æãæ ¼ç´ããã¦ããold_textã¯MEDIUMBLOBã ã£ãã®ã§ããããã¤ããªåã¯æ¬æ¥ããã¹ã姿ã§ã¯ãªãã¨èãã¦MEDUIMTEXTã«å¤æ´ãã¦ãã¾ãã
ãã¼ã¿ãã¼ãæã«ã¯ãORDER BY rand()ãç¨ãã¦ã¬ã³ã¼ãããã©ãã©ã«ä¸¦ã¹æ¿ãã¾ãã
INSERT INTO text_r (old_id, old_text, old_flags) SELECT old_id, cast(old_text as char), old_flags FROM text ORDER BY rand()
ããã¯ãtextãã¼ãã«ã®ãã¼ã¿ãåæããã¨ããold_idã®å°ããªã¬ã³ã¼ãã«ã¯æ¯è¼ççãè¨äºããold_idã®å¤§ããªã¬ã³ã¼ãã«ã¯æ¯è¼çé·ãè¨äºãæ ¼ç´ããã¦ããããã§ããWikipediaã§ã¯è¨äºãæ´æ°ããã¨old_idãæ¡çªãç´ãã®ã§ãããæ´æ°ãããè¨äºãã¤ã¾ãé·ãè¨äºã»ã©å¾ãã®ã»ãã«å¯ããããããã§ãããã®ã¾ã¾ã§ã¯èªã¿åãç¯å²ã¨å®éã«ã¢ã¯ã»ã¹ãããã¼ã¿ãµã¤ãºã®ç¸é¢ãã¤ãã¿ã¥ãããããã©ã³ãã ã«ä¸¦ã¹æ¿ãããã¨ã§èªã¿åãç¯å²ãããã®ãã¼ã¿ãµã¤ãºãå¹³æºåãã¦ãã¾ãã
試é¨ã§ã¯ä»¥ä¸ã®SQLãå®è¡ãã¾ãã
SELECT t.old_id, left(t.old_text, 100), t.old_flags FROM text_r t WHERE t.id = ?
ããã¯è¨äºãä¸ä»¶åãåºãã ãã®åç´ãªSQLã§ããidã«ä¸ããä¹±æ°ã®ç¯å²ãå¤æ´ãããã¨ã§ãèªã¿åãç¯å²ãå¶å¾¡ãã¾ããæåã¯1ãã25,000ã¾ã§ã®ä¹±æ°ã次ã¯50,000ã¾ã§ããã®æ¬¡ã¯75,000ã¾ã§â¦ã¨åºãã¦ãããå
¨ä»¶ã®1,167,411件ã¾ã§ç¹°ãè¿ã試é¨ãè¡ãã¾ãã
old_textåã«left()é¢æ°ãããã¦ãã¾ãããããã¯old_textããã®ã¾ã¾åå¾ãã¦ãã¾ãã¨100Base-TXã®ãããã¯ã¼ã¯å¸¯åã足ããªããªã£ã¦ãã¾ã£ãããã§ããold_textã®å¹³åã«ã©ã é·ã¯ç´3,000ãã¤ãã«ãªã£ã¦ãã¾ãããleft()é¢æ°ã«ãã£ã¦æåã®100æåã®ã¿ãã¯ã©ã¤ã¢ã³ãã«è¿ãããã«ãã¦ãã¾ãã
ãã®ä»ã®è©¦é¨æ¡ä»¶ã以ä¸ã«ç¤ºãã¾ãã
- 試é¨ããã°ã©ã ï¼Javaã§èªä½
- åææ¥ç¶æ°ï¼16 (ãã¹ã¦ã®è©¦é¨ãã¿ã¼ã³ã§ãµã¼ãã®idleããªãç¶æ ã«ãã)
- 試é¨æéï¼5åéã¦ã©ã¼ã ã¢ããããå¾ã5åé測å®
- 対象ãã¼ã¿ãã¼ã¹ï¼InnoDB Antelopeã¨InnoDB Barracuda Compressed
- ãµã¼ãCPUï¼Core Duo T2300 (1.66GHz)
- ãµã¼ãHDDï¼SATA 2.5inch 5,400rpm
- ãµã¼ãOSï¼CentOS 5.3 32bit (Windows XP SP3ã®VMware Server 1.0.9ä¸)
- RDBMSï¼MySQL Community Server 5.1.35ï¼InnoDB Plugin 1.0.3
my.cnfã®ãã¡ãã¤ã³ãã¨ãªãã¨ããã ã説æãã¾ãã
innodb_buffer_pool_size = 512M innodb_flush_method = O_DIRECT # query_cache_type = 1 # query_cache_size = 16M
innodb_buffer_pool_sizeã¯512MBã¨å°ãªãã«ãã¦ãããWikipediaæ¥æ¬èªçã®ãã¼ã¿ããã¨ãå§ç¸®ãã¦ãåã¾ããªãããã«ãã¦ãã¾ããã¾ãinnodb_flush_methodãO_DIRECTã«ãããã¨ã§ãOSã®ãã¼ã¸ãã£ãã·ã¥ã«ãã£ã¦æ§è½ãä¸ãã£ã¦ãã¾ããã¨ãé²ãã¾ããã¯ã¨ãªãã£ãã·ã¥ã¯ã³ã¡ã³ãã¢ã¦ããã¦ç¡å¹ã«ãã¦ããã¾ãã
試é¨çµæ
åç½®ããé·ããªã£ã¦ãã¾ãã¾ãããããã§ã¯çµæã確èªãã¦ããã¾ããããæåã¯æ§è½ã®ã°ã©ãã§ããèªã¿åãç¯å²(search range)ã横軸ã«ã1ç§ãããã®ã¯ã¨ãªå®è¡æ°ã縦軸ã«ãããããã¦ãã¾ãã横軸ã®æ°å¤ã¯1ä¸ä»¶åä½ã§ãã
ãããã§ããããã¿ãªããã®äºæ³ã¯å½ããã¾ãããï¼ç§ãå«ãã©ãã¾ã§æ§è½ãè½ã¡ãã®ã ããã¨æã£ã¦ããæ¹ã¯ãããæå³ã§æå¾
ãè£åãããããããã¾ããããä»åã®ã¯ã¼ã¯ãã¼ãã§ã¯ãã¼ã¿å§ç¸®ãè¡ã£ã¦ãæ§è½ã大å¹
ã«å£åãããã¤ã³ãã¯ãªããå ´åã«ãã£ã¦ã¯å§ç¸®ããæ¹ãæ§è½ãä¸ããã¨ããèå³æ·±ãçµæãã§ã¾ããã
ãã®ãã¨ã®è§£èª¬ã®ããã«ã試é¨çµæãä¸ã¤ã®ã¾ã¼ã³ã«åãã¦ããã¾ãã
- ã¾ã¼ã³Aï¼èªã¿åãç¯å²ãçãã¨ããã§ãããã¼ãã«ãå§ç¸®ããå ´åãæ§è½ãããã12%ä½ä¸ãã¦ãã¾ãã
- ã¾ã¼ã³Bï¼èªã¿åãç¯å²ãããåºãã¨ããã§ãããã¼ãã«ãå§ç¸®ããæ¹ãæ§è½ãé«ããªããæ大ã§ç´3.5åã®ã¹ã«ã¼ããããåºã¦ãã¾ãã
- ã¾ã¼ã³Cï¼èªã¿åãç¯å²ãåºãã¨ããã§ããã°ã©ãã§ã¯ããè¦ãã¾ãããããã¼ãã«ãå§ç¸®ããæ¹ã10%ã»ã©æ§è½ãè¯ããªã£ã¦ãã¾ãããã ãããã«ãããã¹ã«ã¼ãããã¯ãã¼ã¯æã®50åã®1ç¨åº¦ã¾ã§è½ã¡è¾¼ãã§ãã¾ã£ã¦ãã¾ãã
InnoDBãããã¡ãã¼ã«ã®ãããç
次ã«ç¤ºãã°ã©ãã¯ãInnoDBãããã¡ãã¼ã«ã®ãããçã§ããOracle Databaseã®ãããã¡ãã£ãã·ã¥ãããçã¨åãã§ãå¿
è¦ãªãã¼ã¿ãã©ãã ãã®ç¢ºçã§ã¡ã¢ãªä¸ã«ãã§ã«åå¨ãã¦ãããã示ãææ¨å¤ã§ãã
- ã¾ã¼ã³Aã§ã¯ãå§ç¸®ãéå§ç¸®ã©ã¡ããã»ã¼100%ã®ãããçã«ãªã£ã¦ãã¾ããé常ã«å¹çããåãã¦ããç¶æ ã§ãã
- ã¾ã¼ã³Bã§ã¯ãéå§ç¸®ã®æ¹ããããç100%ãç¶æã§ããªããªã£ã¦ãã¾ããæ§è½ã®ã°ã©ãã¨ãããã¦è¦ãã¨ããããçãä¸ããå§ããã¨ããã«æ§è½ãå¤§å¹ ã«å£åãã¦ãã¾ã£ã¦ãããã¨ãåããã¾ããä¸æ¹ãå§ç¸®ããæ¹ã¯ãããç100%ãããããç¶æãã¦ãã¾ããããããç100%ãç¶æãã¦ããã«ãé¢ãããå¾ã ã«æ§è½ãä½ä¸ãã¦ããã¾ãããããã¤ã³ãã§ãã
- ã¾ã¼ã³Cã§ã¯ãã©ã¡ãããããçã¯80%ç¨åº¦ã¾ã§ä½ä¸ãã¦ãã¾ãããã ãå§ç¸®ããæ¹ã¯éå§ç¸®ã«æ¯ã¹å¸¸ã«ããé«ããããçãç¶æãã¦ãã¾ãã80%ã¨ããã¨ããã»ã©æªããªãããã«è¦ãã¾ãããæ§è½ã¯å°ãéã£ã¦ãã¾ãã¾ããOracle Databaseã«ããã¦ãæã¯ãããã¡ãããç80%ããã¥ã¼ãã³ã°ã«ãããä¸ã¤ã®ç®å®ã ã£ãã®ã§ãããCPUã¨ã¹ãã¬ã¼ã¸ã®æ§è½å·®ã大ãããªã£ã¦ãã¾ã£ãç¾å¨ã¯99%ãç®æãã®ã常èã«ãªãã¤ã¤ããã¾ãã
CPU使ç¨ç
次ã¯CPU使ç¨çã®ã°ã©ãã§ããæåã¯éå§ç¸®æã«ãããã°ã©ãã§ãã
æåã«æã£ã¦ããã¨ãå
¨ä½çã«sysãç°å¸¸ã«é«ããªã£ã¦ãã¾ãããããã¯VMware Serverä¸ã§è©¦é¨ãè¡ã£ã¦ããããã§ããVMware Player/Workstation/Serverã¯ãããã¯ã¼ã¯éä¿¡ã®è² è·ãã¨ã¦ãé«ããããã«ãã£ã¦sysãé«é¨°ãã¦ãã¾ãã¾ãããã¤ãã£ãã®ç°å¢ã§ã¯é常usrï¼sysï¼4ï¼1ãããã«ãªãã¾ããèªå®
ã«ã¯ãã¤ãã£ãã®Linuxç°å¢ããªãã®ã§â¦ããã¾ããã
- ã¾ã¼ã³Aã§ã¯ãusrã¨sysã§ã»ã¼100%ãå ãã¦ãã¾ããç¡é§ãªãCPUã使ãåã£ã¦ããç¶æ ã§ãã
- ã¾ã¼ã³Bã»Cã§ã¯ãwaitãæ¯é çã«ãªãã¾ãããã£ã¹ã¯I/Oã«ãã£ã¦å¾ ãããã¦ãã¾ããããCPUãæå¹ã«ä½¿ããã¦ãã¾ããã
次ã¯å§ç¸®ããå ´åã®ã°ã©ãã§ãã
æããã«éãå¾åã§ããã¡ãã£ã¨ä»çµã¿ãè¦ãã¦ãã¾ãããï¼
- ã¾ã¼ã³Aã§ã¯usrãç´40%ã¨ãªã£ã¦ãããéå§ç¸®æã«æ¯ã¹ã¦ããé«ããªã£ã¦ãã¾ãã
- ã¾ã¼ã³Bã§ã¯ã¾ã¼ã³Aãããusrãé«ããªã£ã¦ãã¾ããéå§ç¸®ã®ãã®ã¨æ¯ã¹ãã¨å·®ã¯æ´ç¶ã§ãèªã¿åãç¯å²30ä¸ä»¶ã«ããã¦ã¯å®ã«CPUè² è·(usr)ã16åã«ãªã£ã¦ãã¾ãã
ã¯ã¨ãªãããã®CPUã³ã¹ã
æ§è½ã¨CPUã®ãã¼ã¿ããã1åã®ã¯ã¨ãªã«ã©ãã ãCPUã使ã£ãã®ããè¨ç®ãããã¨ãã§ãã¾ãã次ã®ã°ã©ãã¯ããã¼ã¿å§ç¸®ãè¡ããã¨ã«ãã£ã¦ã¯ã¨ãªãããã®CPUã³ã¹ã(usr)ãä½åã«ãªããããããããããã®ã§ãã
ãã¾ãå¤ãå®å®ãã¦ãã¾ããããå¾åã®éãã¯è¦ã¦ã¨ããã¨æãã¾ãã
- ã¾ã¼ã³Aï¼ããã1.4åã®CPUã³ã¹ããããã£ã¦ãã¾ã
- ã¾ã¼ã³Bã»Cï¼2.0åãã4.7åã®CPUã³ã¹ããããã£ã¦ãã¾ãã
ã¤ã¾ãInnoDB Pluginã¯ãã è¨ããããã¾ã¾ã«ãã¼ã¿ãå§ç¸®ã»å±éãã¦ããã®ã§ã¯ãªãã¦ãä½ã工夫ããã¦ããã¨ãããã¨ã§ãã
InnoDB Pluginã«ãããã¡ã¢ãªç®¡çã¢ã¼ããã¯ãã£
ã¨ããããã§è§£èª¬ç·¨ã§ããInnoDB Pluginã¯ããããã¡ãã¼ã«ããå§ç¸®ãã¼ã¸ãã¨ãå±éæ¸ãã¼ã¸ãã®äºã¤ã«åãã¦ç®¡çãã¦ãã¾ããå³ã«ããã¨ä»¥ä¸ã®ããã«ãªãã¾ãã
ãã£ã¹ã¯ããèªã¿è¾¼ã¾ãããã¼ã¿ã¯ã¾ããããã¡ãã¼ã«å
ã«å§ç¸®ãã¼ã¸ã¨ãã¦æ ¼ç´ãããããããzlibã©ã¤ãã©ãªã«ããå±éãè¡ããã¦å±éæ¸ãã¼ã¸ãä½æããã¾ãããã®ã¨ãããã¤ãã®ã«ã¼ã«ãããã¾ãã
- å§ç¸®ãã¼ã¸ã¨å±éæ¸ãã¼ã¸ã¯ãããããå¥ã®LRUãªã¹ãã«ãã£ã¦ç®¡çããã¦ãã¾ãã
- å§ç¸®ãã¼ã¸ãæ£ãå±éæ¸ãã¼ã¸ãå¯ã¨ãªãã¾ãããããã¡ãã¼ã«ä¸ã«å±éæ¸ãã¼ã¸ã®ã¿ãåå¨ãããã¨ã¯ã§ãããã両æ¹ããããå§ç¸®ãã¼ã¸ã ããããããã©ã¡ãããªããã®ä¸ãã¿ã¼ã³ã®ã¿ã¨ããããã«ãªã£ã¦ãã¾ãã
- ãããã¡ãã¼ã«ã«ä½è£ãããå ´åãInnoDB Pluginã¯å±éæ¸ãã¼ã¸ãç©æ¥µçã«æ®ãããã«æ¯ãèãã¾ãããã ãå ã®ã«ã¼ã«ã«ãããæ大ã§ãå§ç¸®ãã¼ã¸ã¨å±éæ¸ãã¼ã¸ã®å²åã¯1ï¼1ã¨ãªãã¾ãã
- ãããã¡ãã¼ã«ã«ä½è£ããªãå ´åãInnoDB Pluginã¯å±éæ¸ãã¼ã¸ãåªå çã«ç ´æ£ãã¾ãããã ãå ¨ãã¼ã¸ã«å¯¾ãæä½ã§ã10%ã¯å±éæ¸ãã¼ã¸ãæ®ãããã«ãã¦ãã¾ãã
試é¨çµæã¨ç §ããåãããã¨ãã¾ã¼ã³Aã«ãããæ§è½å£åã®å°ãªãã¯ã«ã¼ã«3ã«ãããã®ã§ããå®ã¯ã¾ã¼ã³Aã«ããã¦zlibã«ããå±éå¦çãªãã¦è¡ããã¦ããªãã£ãï¼ã¨ããããã§ããã¾ãã¾ã¼ã³Bã«ããã¦ãããç100%ã«ããããããå¾ã ã«æ§è½ãä½ä¸ãã¦ããã®ã¯ãã«ã¼ã«4ã«ãããã®ã§ãããããã¡ãã¼ã«ã«ä½è£ããªããªã£ã¦å±éæ¸ãã¼ã¸ã®å²åãæ¸ã£ã¦ããã«ã¤ãã¦ãã¯ã¨ãªã®ãã³ã«å§ç¸®ãã¼ã¸ãå±éãã¦ã¯æ¨ã¦ãå±éãã¦ã¯æ¨ã¦ãã¨ããå¦çãå¢ãã¦ãããã¨ã«ãªãã¾ãã
試é¨çµæã®å確èª
InnoDB Pluginã®ã¢ã¼ããã¯ãã£ãç解ããã¨ããã§ã試é¨çµæãå度確èªãã¦ããã¾ãããããããã¡ãã¼ã«ã«ãããå§ç¸®ãã¼ã¸ã¨å±éæ¸ãã¼ã¸ã®æ°ã¯ãshow engine innodb statusã³ãã³ãã§ç¢ºèªãããã¨ãã§ãã¾ãã
ä»åã¯innodb_buffer_pool_sizeã512MBã«ãã¦ããã®ã§ãæ¨æºã®16KBãã¼ã¸ã®å ´å32,768åã®ãã¼ã¸ããããã¡ãã¼ã«å
ã«æ ¼ç´ãããã¨ãã§ãã¾ããã¾ã¼ã³Aã§ã¯ãããã¡ãã¼ã«ã«ä½è£ãããããå±éæ¸ãã¼ã¸ãå¿
è¦ãªã ã確ä¿ãããã¨ãã§ããèªã¿åãç¯å²ãåºããã«å¿ãã¦å±éæ¸ãã¼ã¸ã®éãå¢ãã¦ãã£ã¦ãããã¨ãåããã¾ããããã¦èªã¿åãç¯å²15ä¸ä»¶ã«ããã¦å§ç¸®ãã¼ã¸ã¨å±éæ¸ãã¼ã¸ã®å²åãã»ã¼1ï¼1ã¨ãªãããããå±éæ¸ãã¼ã¸ãå
¨é確ä¿ã§ããéçç¹ã¨ãªãã¾ãã
èªã¿åãç¯å²15ä¸ä»¶ã«ããããããã¡ãã¼ã«ã®ç¶æ
ãå³ç¤ºããã¨ã以ä¸ã®ããã«ãªãã¾ãã
å§ç¸®ãã¼ã¸ã¨å±éæ¸ãã¼ã¸ã1ï¼1(ãã¼ã¸ãµã¤ãºãç°ãªãã®ã§å®¹éæ¯ã§ã¯1ï¼2)ã¨ãªããã¯ã¨ãªã¯å§ç¸®ãã¼ã¸ã«ã¢ã¯ã»ã¹ãããã¨ãªãå¦çããã¾ãã
ã¾ã¼ã³Bã«å
¥ã£ã¦å±éæ¸ãã¼ã¸ãå
¨é確ä¿ã§ããªããªãã¨ãInnoDB Pluginã¯ã«ã¼ã«4ã«ããå±éæ¸ãã¼ã¸ãåªå
çã«ç ´æ£ãã¦ãã®åå§ç¸®ãã¼ã¸ã«ããå¤ãã®ã¡ã¢ãªãå²ãå½ã¦ãããã«ãªãã¾ããèªã¿åãç¯å²27ä¸5å件ã«ããã¦å§ç¸®ãã¼ã¸ã¨å±éæ¸ãã¼ã¸ã®å²åã9ï¼1ã¨ãªããããããããã¡ãã¼ã«å
ã§æ大éãã¼ã¸æ°ã確ä¿ããå°ç¹ã¨ãªãã¾ãããã®ã¨ããããã¡ãã¼ã«å
ã«ãããåè¨ãã¼ã¸æ°ã¯32,768ã大ããè¶
ãã54,215ã¾ã§å¢å ãã¦ãã¾ãã
èªã¿åãç¯å²27ä¸5å件ã«ããããããã¡ãã¼ã«ã®ç¶æ
ãå³ç¤ºããã¨ã以ä¸ã®ããã«ãªãã¾ãã
ãããã¡ãã¼ã«å
ã®å±éæ¸ãã¼ã¸ã®æ°ãä¸è¶³ãã¦ããããã大åã®ã¯ã¨ãªã¯å§ç¸®ãã¼ã¸ãå±éããªããå¦çããããã¨ã«ãªãã¾ããç§ãå«ãå¤ãã®æ¹ãäºæ³ãã¦ãããã¼ã¿å§ç¸®æ©è½ã«ããCPUè² è·ã®å¢å çã¯ããããããã®å°ç¹ã®ãã®ã§ã¯ãªããã¨æãã¾ããã¯ã¨ãªãããã®CPUã³ã¹ãã§ããã4åã¨ãªã£ã¦ãã¾ãã
ã¾ãshow engine innodb statusã³ãã³ãã§ã¯ãå§ç¸®ãã¼ã¸ã®å±éãä½åè¡ãããã®ãã確èªãããã¨ãã§ãã¾ãã
ä¸ç®çç¶ã§ãããã¾ã¼ã³Aã§ã¯å§ç¸®ãã¼ã¸ã®å±éå¦çãã¾ã£ããçºçãã¦ããªããã¨ãã¾ã¼ã³Bã§ã¯å±éå¦çã大éã«çºçãã¦ãããã¨ãããåããã¨æãã¾ãã
ã¾ã¨ã
ä»åã¯InnoDB Pluginã®ãã¼ã¿å§ç¸®æ©è½ã«ã¤ãã¦ãå®éã«ãã³ããã¼ã¯è©¦é¨ãè¡ã£ã¦ãã®æ§è½ã確èªãã¾ããããã®çµæã以ä¸ã®ãã¨ãåããã¾ããã
- éå§ç¸®ç¶æ ã§ãã¡ã¢ãªã«è¼ããã¼ã¿éã®å ´åãCPUã³ã¹ãã¯ããã1.4åã¨ãªããæ§è½ã¯0.9åã«ä½ä¸ãã
- éå§ç¸®ç¶æ ã§ã¡ã¢ãªã«è¼ããªããã¼ã¿éã«ãªãã¨ãã§ããã ãå¤ãã®ãã¼ã¿ãå§ç¸®ç¶æ ã§ã¡ã¢ãªã«è¼ãããã¨ãã
- ãã®å ´åCPUã³ã¹ãã¯ããã4åã¨ãªããããã£ã¹ã¯I/Oãæå¶ã§ããå ´åã¯æ§è½ãæ大ã§3.5åã«åä¸ãã
- å§ç¸®ç¶æ ã§ãã¡ã¢ãªã«è¼ããªããã¼ã¿éã«ãªãã¨ãæ§è½åä¸ã¯1.1åã«ã¨ã©ã¾ã
æ°å¤ã¯ç°å¢ä¾åãªã®ã§ãããã¾ã§åèç¨åº¦ã¨ãã¦ãã ããã
ããã«ãã¦ãInnoDB Pluginã®ãã¼ã¿å§ç¸®æ©è½ã¯ããèãã¦ä½ããã¦ãã¾ãããç¹ã«å§ç¸®æ©è½ã®éçºã³ã¹ãã¨ããã«ãã£ã¦å¾ãããå¹æã®ãã©ã³ã¹ããä»ã®RDBMSã«æ¯ã¹ã¦é常ã«åªãã¦ããã¨æãã¾ãããã¤ã¦Googleã®Mark Callaghanæ°ãInnoDBã®ãã¨ãè©ãã¦ãThe Art of Workãã¨è¨ã£ã¦ãã¾ããããç§ãæ¬å½ã«ããæãã¾ãã