次ã®ããã«ãã¹ã¦ã® InnoDB ã¯ãè¡ã®ãã¼ã¿ãæ ¼ç´ããããã¯ã©ã¹ã¿ã¤ã³ããã¯ã¹ãã¨å¼ã°ããç¹å¥ãªã¤ã³ããã¯ã¹ãæã£ã¦ãã¾ãã ãã¼ãã«ã§ PRIMARY KEY ãå®ç¾©ããã¦ããå ´åãInnoDB ã¯ãããã¯ã©ã¹ã¿ã¤ã³ããã¯ã¹ã¨ãã¦ä½¿ç¨ãã¾ãã ãããã¼ãã«ã« PRIMARY KEY ãå®ç¾©ããªããã°ãMySQL ã¯ä¸»ãã¼ã¨ã㦠NOT NULL ã«ã©ã ã ããæã¤æåã® UNIQUE ã¤ã³ããã¯ã¹ãé¸æããInnoDB ããããã¯ã©ã¹ã¿ã¤ã³ããã¯ã¹ã¨ãã¦å©ç¨ãã¾ãã ãã¼ãã«ã« PRIMARY KEY ãé©å㪠UNIQUE ã¤ã³ããã¯ã¹ãåå¨ãã¦ããªãå ´åã«ã¯ãInnoDB ã®å é¨ã§ãè¡ ID å¤ãå«ãåæã«ã©ã ä¸ã«é ãã¯ã©ã¹ã¿ã¤ã³ããã¯ã¹ãçæããã¾ãããã®ãããªãã¼ãã«ã§ã¯ãInnoDB ãè¡ã«å²ãå½ã¦ã ID ã«åºã¥ãã¦è¡ã®é åºä»ããè¡ããã¾ããè¡ ID ã¯ãæ°ããè¡ãæ¿å ¥ãã
AWSã¢ããã³ã¹ãã³ã³ãµã«ãã£ã³ã°ãã¼ããã¼ã®ä¸å¡ã¨ãã¦æ´»åããæ ªå¼ä¼ç¤¾ã¹ã¿ã¤ã«ãºããAWSå°å ¥ã移è¡ãéçºãã»ãã¥ãªãã£ãéç¨ä¿å®ãªã©ããã¹ã¦ã®ãç¸è«ã«ä¹ããã¦ããã ãã¾ãã AWSãå°å ¥ããããä½ããå§ããããããããããªã æ¢åã®ãã³ãã¼ãæ°æè¡ã«å¼±ããè¯ãææ¡ãããããªã ã¯ã©ã¦ãã®å°å ¥ã«ã»ãã¥ãªãã£ã®ä¸å®ããã AWSãã¨ããããå°å ¥ããããããã«æ´»ç¨ãã¦ãããã 社å ã«AWSã®ç¥è¦ãæã£ã¦ãã人ãããªã AWSãªãã§ã¯ã®ã·ã¹ãã éçºã詳ããç¥ããã
ç¾å¨ãç±³å½ã§è¡ããã¦ããMySQL Conference & Expoã«ãããã¦ãæ°ããéçºçã§ããMySQL 5.6ãçºè¡¨ããããMySQL 5.5ã«ãããæ°æ©è½ãããªãã®ãã®ã ã£ãããMySQL 5.6ã®é²åã¯è³ªã»éã¨ãã«åã¨ãå£ããªãå 容ã¨ãªã£ã¦ãããããã§ãä»æ¥ã¯ç°¡åã«ãMySQL 5.6ã§è¿½å ãããæ°æ©è½ã®æ¦è¦ã«ã¤ãã¦è¦ã¦ã¿ãããéçºçãªã®ã§å©ç¨ã«ããã£ã¦ã¯ååãªæ³¨æãå¿ è¦ï¼äºæãªãäºå®ãå¤æ´ãããå¯è½æ§ããï¼ã ãã次ææ£å¼çã®ãªãªã¼ã¹ã«åãã¦æ¯é試ãã¦ã¿ã¦æ¬²ããã InnoDBé¢é£MySQL 5.5ã§å¤§å¹ ãªé²åãéããInnoDBã ãããã®å¢ãã¯ã¾ã£ããè¡°ãããã¨ãç¥ããªããæ§è½ã®å¼·åã ãã§ãªããçãã¨ããã«æãå±ã便å©ãªæ©è½ã追å ããã¦ããã ãã¼ãã£ãã¼ã¸ã®ãã©ãã·ã¥ãããã¹ã¬ãããç¬ç«ããã以åã¯ãã¹ã¿ã¼ã¹ã¬ããå ã§ãã©ãã·ã¥ãè¡ããã¦ããããã¹ã¬ãããç¬ç«ãããã¨ã«ãã£
MySQLã®ãã¥ã¼ãã³ã°ã«ããã¦é常ã«éè¦ã¨ãªãã¡ã¢ãª(ãããã¡)é¢é£ã®ãã©ã¡ã¼ã¿ã«ã¤ãã¦ã ãã¥ã¼ãã³ã°ã®ãã¤ã³ã DSASã®ã¨ããDBãµã¼ã(å®ã¡ã¢ãª4GB)ã®å®éã®è¨å®å¤ ãã¾ã¨ãã¦ã¿ã¾ãã ã¾ããå¿ è¦ã¡ã¢ãªã®ç·éã®è¨ç®ãéçå¤ãè¶ãã¦ãªãããã§ãã¯ãã¦ãããã¹ã¯ãªãããç´¹ä»ãã¾ãã æ¯éãåèã«ãã¦ã¿ã¦ãã ããï¼ ã¾ãæåã«æ³¨æç¹ãã ãããã¡ã«ã¯2ã¤ã®ã¿ã¤ããããã¾ãã ã°ãã¼ãã«ãããã¡ ã¹ã¬ãããããã¡ ã°ãã¼ãã«ãããã¡ã¯mysqldå ¨ä½ã§ãã®ãããã¡ã1ã¤ã ã確ä¿ããããã®ã§ã ããã«å¯¾ãã ã¹ã¬ãããããã¡ã¯ã¹ã¬ãã(ã³ãã¯ã·ã§ã³)ãã¨ã«ç¢ºä¿ããããã®ã§ãã ãã¥ã¼ãã³ã°ã®éã«ã¯ã°ãã¼ãã«/ã¹ã¬ããã®éããæèããããã«ãã¾ãããã ãªããªããã¹ã¬ãããããã¡ã«å¤ãã®ã¡ã¢ãªãå²ãå½ã¦ãã¨ãã³ãã¯ã·ã§ã³ãå¢ããã¨ããã«ã¢ãã¨ããéã«ã¡ã¢ãªä¸è¶³ã«ãªã£ã¦ãã¾ãããã§ãã in
ä»å¹´ãæ®ãã¨ãããã¨ãããã¨ãªã£ãã2010å¹´ãITæ¥çã«ã¨ã£ã¦ã¯å¤åã®å¤ãä¸å¹´ã ã£ãããçããã«ã¨ã£ã¦ã¯è¯ãå¹´ã ã£ãã ãããï¼æ¢ã«ä½åº¦ãMySQL 5.5ã®æ°æ©è½ã«ã¤ãã¦ã¯åãä¸ããããã¤ãã«æ£å¼çããªãªã¼ã¹ãããã¨ãããã¨ã§ããã§æ¹ãã¦æ°æ©è½ã解説ããä»å¹´æå¾ã®ã¨ã³ããªãç· ãããããã¨æãã MySQL 5.5ã«ã¯ããã§ããã£ï¼ã¨ãããããæ°æ©è½ã追å ããã¦ãããããããããããã¤ã¹ãªãã®ã°ããã ãä¸è¬çã«ã¯ãã½ããã¦ã§ã¢ã«æ°æ©è½ã追å ãããã¨éããªã£ããå®å®æ§ãä½ä¸ããäºä¾ãå¾ã絶ããªãã®ã ããMySQL 5.5ã«é¢ãã¦ã¯ãã®ãããªãã¨ã¯å ¨ããªãã®ã§å®å¿ãã¦å©ç¨ãã¦é ãããï¼ InnoDBã®å¤§å¹ ãªæ¹å種ã ããæ¹åç¹ã®ä¸ã§ãç¹ã«ç®ãã²ãã®ãInnoDBã¹ãã¬ã¼ã¸ã¨ã³ã¸ã³ã¸ã®æ¹è¯ã ãå®ã¯ãInnoDBã¯MySQL 5.1ãæåã«ãªãªã¼ã¹ãããã¨ãããã2åã¢ãããã¼ããè¡ããã¦ãããMy
InnoDBã¯ã¯ã©ã¹ã¿ã¤ã³ããã¯ã¹ã¨ããæ§é ã«ãªã£ã¦ãããä»æ¥ã¯ã¯ã©ã¹ã¿ã¤ã³ããã¯ã¹ãã©ããããã¨ãã¨ãããã¨ããçããã«ç解ãã¦é ãããããã£ã¨ãç解ãã¦é ããããã¤ã³ãã¯ãã»ã«ã³ããªã¤ã³ããã¯ã¹ã®ãªã¼ããã¼ãã«ã¯ä¸»ãã¼ã®å¤ãå«ã¾ãã¦ãããã¨ãããã¨ã ã 主ãã¼ã®æ§é InnoDBã®ä¸»ãã¼ã¯æ¬¡ã®å³ã®ããã«ããã¼ã¿ã主ãã¼ã®ãªã¼ããã¼ãã«å«ã¾ãããã¨ããæ§é ã«ãªã£ã¦ããããã®ãããªæ§é ãã¯ã©ã¹ã¿ã¤ã³ããã¯ã¹ã¨ããã ãã®ãããªæ§é ã«ãªã£ã¦ãããã¨ã«ã¯å©ç¹ã¨æ¬ ç¹ããããã大ããªå©ç¹ã¯ä¸»ãã¼ã®å¤ã§æ¤ç´¢ãããã¨é常ã«é«éã ã¨ãããã¨ã ã主ãã¼ã®ãªã¼ããã¼ãã«ãã©ãçããã¨ãã«ã¯ãæ¢ã«ãã¼ã¿ã®ãã§ãããå®äºãã¦ããããã¼ã¿ã¨ã¤ã³ããã¯ã¹ãå¥ã ã«æ ¼ç´ããã¦ããã¿ã¤ãã®ã¹ãã¬ã¼ã¸ã¨ã³ã¸ã³ã§ã¯ãã¤ã³ããã¯ã¹ãããã¼ã¿ã®ä½ç½®ãèªã¿åã£ã¦ããã®å¾ãã¼ã¿ãã¡ã¤ã«ãããã¼ã¿ããã§ããããããã®ããã«äºæ®µéã®æä½ã
InnoDB Pluginã®é¢ç½ãæ©è½ã®ä¸ã¤ã«ããã¼ã¿å§ç¸®æ©è½ãããã¾ããä»åã¯ãã®ä»çµã¿ã¨å¹æã«ã¤ãã¦è¦ã¦ããããã¨æãã¾ããã¾ãã¯ã°ã©ããã覧ãã ããã ããã¯Wikipediaæ¥æ¬èªçã®ãã¼ã¿ãã¼ã¹ããã¦ã³ãã¼ãããè¨äºæ¬æã®æ ¼ç´ããã¦ããtextãã¼ãã«ãMySQL 5.1ï¼InnoDB Plugin 1.0ã®ç°å¢ã«ãã¼ããããã®ã§ãã å ããã¹ãï¼ä»åå©ç¨ãããã¼ã¿ã¯2009/06/21çã®ãã®ã§ã(jawiki-20090621-pages-articles.xml.bz2)ãå ããã¹ãã¯ããããXml2sqlãç¨ãã¦ã¿ãåºåãããã¹ããåãåºãããã®ãç¨ãã¦ãã¾ãããã®ãã¡ã¤ã«ã«ã¯1,167,411件ã®è¨äºãæ ¼ç´ããã¦ããã容éã¯3,436MBã¨ãªã£ã¦ãã¾ãã å ããã¹ã gzipï¼å ããã¹ããgzipã³ãã³ãã§å§ç¸®ãããã®ã§ãã MyISAMï¼è¨äºãMyISAMã®ãã¼ãã«ã«
InnoDBé¢é£ã§ãããã質åã®ã²ã¨ã¤ã«ããã¼ãã«ã®ã¡ã³ããã³ã¹ã¯ä½ãããã°ãããã§ããï¼ãã¨ãããã®ããããInnoDBã¯MySQL 5.5ã§ããã©ã«ãã¹ãã¬ã¼ã¸ã¨ã³ã¸ã³ã¨ãªããããInnoDBã®ãã¼ãã«ã¡ã³ããã³ã¹è¨ç»ãç«ããã¨æãæ©ä¼ãå¢ãããã¨ã ãããããã§ãä»æ¥ã¯InnoDBã®ãã¼ãã«ã¡ã³ããã³ã¹ã®å種æ¹æ³ã¨ãªãããããªããã°ãããªããã¨ããçç±ã解説ãããã¨æãã ANALYZE TABLEãã¼ãã«ã¡ã³ããã³ã¹ã®ä»£åè©ã¨ããã°ãã¤ã³ããã¯ã¹çµ±è¨æ å ±ã®æ´æ°ã§ã¯ãªãããããéç¨ãç¶ãããã¡ã«ãç¥ããç¥ããã¤ã³ããã¯ã¹çµ±è¨æ å ±ãçã£ã¦ãã¾ããæããããªæ§è½ãåºãªããRDBMSã«ã¯ãã®ãããªåé¡ãã¤ããã®ã§ããããInnoDBã®å ´åãANALYZE TABLEã¯ä¸è¦ã§ããããªããªããInnoDBãèªçºçã«çµ±è¨æ å ±ãæ´æ°ããããã ãInnoDBã¯ä»¥ä¸ã®æ¡ä»¶ã«é©åããã¨ãANALYZE T
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}