以åå ¬éããããé·èç·¨ã(https://yakst.com/ja/posts/4656) ã«å¼ãç¶ããæ¯è¼çæ°ããMySQLé«å¯ç¨æ§ãªãã·ã§ã³ï¼å¤§äººãã¡ï¼ã«ã¤ãã¦è§£èª¬ããè¨äºãåååæ§ãåå¿è åãã«ãGaleraãã¨ãRDS Auroraãã®2ã¤ãç´¹ä»ãã¦ããã ãã®è¨äºã§ã¯ãããã¤ãã®é«å¯ç¨æ§ã½ãªã¥ã¼ã·ã§ã³ã«ã¤ãã¦èå¯ãè¡ãã¾ãã ãã®ã·ãªã¼ãºã®ååã®è¨äºï¼è¨³æ³¨ï¼æ¥æ¬èªçã¯ãã¡ãï¼ã§ã¯ãé·ãã«ããã£ã¦å©ç¨ããã¦ããMySQLã®é«å¯ç¨æ§ã½ãªã¥ã¼ã·ã§ã³ãåãä¸ãã¾ãããç§ã¯ãããããThe Elders (é·èãã¡)ãã¨åã¥ãã¾ãããã¬ããªã±ã¼ã·ã§ã³ãªã©ã¯ä»ã§ããã使ããã¦ãããMySQLã®æ°ãã¼ã¸ã§ã³ããªãªã¼ã¹ããããã¨ã«æ¹åããã¦ãã¾ãã ãã®è¨äºã§ã¯ç´è¿5å¹´éã§ç»å ´ãããªããã¤ã³ãã¥ããã£ã®ä¸ã§ç½å¼åãå¢ãã¦ããé«å¯ç¨æ§ã½ãªã¥ã¼ã·ã§ã³ã«çç®ãã¾ããç§ã¯ãã®ä¸ãã2ã¤ã®ã½ãªã¥ã¼ã·ã§ã³ã
Percona Data Performance Blogã®ç¿»è¨³ãPercona CEOã®Peter Zaitevã«ãããMySQLã®ã¡ã¢ãªã¼ä½¿ç¨éãã©ã®ããã«æ±ºããã¹ãããã¾ãããã決ããæã«æ°ã«ããã¹ããã¨ã¯ä½ãã«ã¤ãã¦ã®ã¾ã¨ãã ãã®è¨äºã§ã¯ãæé©ãªMySQLã®ã¡ã¢ãªã¼ä½¿ç¨éãè¨å®ããããã®ãã¹ããã©ã¯ãã£ã¹ãæ±ããã¨æãã¾ãã 使ç¨ã§ããã¡ã¢ãªã¼ã®ãªã½ã¼ã¹ãã©ã®ããã«ä½¿ããæ£ããè¨å®ããã®ã¯ãMySQLãæé©ãªããã©ã¼ãã³ã¹ã§ãã¤å®å®ãã¦ä½¿ãããã«æãéè¦ãªãã¨ã®ã²ã¨ã¤ã§ããMySQL 5.7ã§ã¯ãããã©ã«ãã®è¨å®ã§ã¯é常ã«å°ãªãéã®ã¡ã¢ãªãã使ãã¾ãããããã©ã«ãã®ã¾ã¾ã«ãã¦ããã®ã¯ãæãè¯ããªããã¨ã®ã²ã¨ã¤ã§ããããããããä¸é©åã«è¨å®ãã¦ãã¾ãã¨ãããã©ã¼ãã³ã¹ãæ´ã«æªããã(ãããã¯ã¯ã©ãã·ã¥ãã)ãã¨ã«ããªãããã¾ããã MySQLã®ã¡ã¢ãªä½¿ç¨éãè¨å®ããã«ããã£ã¦ã®æå
MySQL5.5ãã¾ã ã¾ã 絶è³å©ç¨ä¸ãªç§ã§ãã ãµã¼ãã¹ãéç¨ãã¦ããã¨INDEX追å ãã«ã©ã 追å ãè¡ãããè¦æãå¤ã çºçãã¾ãã ãããç¡åæ¢ã§ã MySQL5.6ããã¯ç¡åæ¢ã§INDEX追å ãã«ã©ã 追å ãã§ãããªã³ã©ã¤ã³DDLãå®è£ ããã¾ããã ã«ã©ã 追å ã¯ã¾ã è²ã å¶ç´ãããã¿ããã§ããâ¦ã http://dev.mysql.com/doc/refman/5.6/en/innodb-create-index-overview.html pt-online-schema-change MySQL5.5ã§ãä¼¼ããããªãã¨ãããããã®ã§ã æåãªãPercona-Toolkitãã«å梱ããã¦ããpt-online-schema-changeãå©ç¨ãã¦ãã¾ãã http://www.percona.com/software/percona-toolkit é常ã¯ããã¯ãæãã£ã¦ãã¾ãALTER
Percona Toolkitã¯MySQLçã«é¢ãã便å©ãªã³ãã³ãã©ã¤ã³ãã¼ã«ã®éã¾ãã§ãã Percona Toolkit Documentation ä»åã¯åãã¼ã«ã®æ©è½ãç°¡åã«ç´¹ä»ãã¾ãã ç´°ãã使ç¨æ¹æ³ã«é¢ãã¦ã¯éæ追è¨äºå®ã pt-align ãã¡ã¤ã«ãæ¨æºå ¥åãåãåããåãæãã¾ãã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}