MySQL 5.5.0-m2ãªãªã¼ã¹
åºã¾ãããçªç¶ã®ã¡ã¸ã£ã¼ãã¼ã¸ã§ã³ã¢ããã§ãããããã¯æ°ããéçºãµã¤ã¯ã«ã«åºã¥ããã®ã§ããæ°ãã
- trunkã¯å¸¸ã«Î²ç以ä¸ã®å質ãä¿ã¤ (ç´ç²ãªæ°æ©è½ã®éçºã¯å¥ã®staging treeã§è¡ã)
- 3ã6ã¶æãã¨ã«RCçã®å質ã§ãã¤ã«ã¹ãã¼ã³ãªãªã¼ã¹ãè¡ã
- 12ã18ã¶æãã¨ã«ããããã®ãã¤ã«ã¹ãã¼ã³ããbranchãåã£ã¦GAçã®ãªãªã¼ã¹ãè¡ã
- ãã¤ã«ã¹ãã¼ã³ãªãªã¼ã¹ã®ç´å¾ã«staging treeããæ°æ©è½ã®ãã¼ã¸ãè¡ã
ã¨ããä»çµã¿ã§ããããã«ãã£ã¦å¤§è¦æ¨¡ãªæ°æ©è½ã®è¿½å ã«ãããªãªã¼ã¹ã®é
延ãæããã¨ã¨ãã«ãããå®å®ããå質ã§ã®ãªãªã¼ã¹ãè¡ãã¨ãããã¨ãçã£ã¦ããããã§ããã¾ãMySQL 5.5.0-m2ã®ãªãªã¼ã¹ã«ä¼´ããMySQL 5.4.x-betaã®æ´æ°ã¯çµäºã¨ãªãã¾ãã
MySQL 5.5ã®æ°æ©è½ããããã¤ãããã¯ã¢ãããã¦ãç´¹ä»ãã¾ãã
- æºåæã¬ããªã±ã¼ã·ã§ã³ãMySQL 5.5ã®ç®çã¨ãªãæ©è½ã§ãã詳ããã¯æ¼¢(ãªãã³)ã®ã³ã³ãã¥ã¼ã¿é: æå¼·ã®MySQL HAåææ³ - Semi-Synchronous Replicationããåç §ãã ããã
- InnoDB Pluginãæ¨æºã®InnoDBã¹ãã¬ã¼ã¸ã¨ã³ã¸ã³ã¨ãã¦ãã«ãã¤ã³ãããããã«ãªãã¾ãããã½ã¼ã¹ã®äºé管çã¯ããªãã¨æã£ã¦ããã®ã§ç§ã¨ãã¦ã¯äºæ³éãã§ãããããã¯å¤§ããã§ããã
- RANGE COLUMNSããã³LIST COLUMNSãã¼ãã£ã·ã§ãã³ã°ãMySQL 5.1ã«ãããRANGEãLISTãã¼ãã£ã·ã§ãã³ã°ã®æ¡å¼µã¨ãªããã®ã§ãã
RANGE COLUMNSãã¼ãã£ã·ã§ãã³ã°ã ãç°¡åã«ç¢ºèªãã¦ã¿ã¾ããããRANGE COLUMNSãã¼ãã£ã·ã§ãã³ã°ã¯å¾æ¥ã®RANGEãã¼ãã£ã·ã§ãã³ã°ã«æ¯ã¹ã¦ã以ä¸ã®éããããã¾ãã
- æååãDATEãDATETIMEåã®åããã¼ãã£ã·ã§ã³åã¨ãã¦å©ç¨å¯è½
- è¤æ°ã®åãå©ç¨ãããã¼ãã£ã·ã§ãã³ã°ãå¯è½
- ãã ããè©ä¾¡å¼ãç¨ãããã¼ãã£ã·ã§ãã³ã°ã¯ä¸å¯
å æ¥ã®ã¿ã¤ã ã©ã¤ã³ãã¼ãã«ãé¡æã«ããã¨ãå ¸åçã«ã¯ä»¥ä¸ã®ãããªè¨è¨ãã§ããã¨ãããã¨ã«ãªãã¾ãã
mysql> CREATE TABLE timeline ( -> id BIGINT(20) NOT NULL, -> created_at DATETIME DEFAULT NULL, -> screen_name VARCHAR(15) DEFAULT NULL, -> text VARCHAR(140) DEFAULT NULL, -> PRIMARY KEY (id, created_at) -> ) -> ENGINE = InnoDB -> PARTITION BY RANGE COLUMNS (created_at) ( -> PARTITION p2009 VALUES LESS THAN ('2010-01-01'), -> PARTITION p2010 VALUES LESS THAN ('2011-01-01'), -> PARTITION p2011 VALUES LESS THAN ('2012-01-01'), -> PARTITION plast VALUES LESS THAN MAXVALUE -> ); Query OK, 0 rows affected (0.05 sec)
ããã£ã¦æ®éã§ãããMySQL 5.1ã§ã¯ãã¼ãã£ã·ã§ã³ã®è©ä¾¡å¼ã¯INTå¤ãè¿ããªããã°ãªããªãã®ã§ã次ã®ããã«æ¸ãå¿ è¦ãããã¾ããã
mysql> CREATE TABLE timeline ( -> id BIGINT(20) NOT NULL, -> created_at DATETIME DEFAULT NULL, -> screen_name VARCHAR(15) DEFAULT NULL, -> text VARCHAR(140) DEFAULT NULL, -> PRIMARY KEY (id, created_at) -> ) -> ENGINE = InnoDB -> PARTITION BY RANGE (TO_DAYS(created_at)) ( -> PARTITION p2009 VALUES LESS THAN (TO_DAYS('2010-01-01')), -> PARTITION p2010 VALUES LESS THAN (TO_DAYS('2011-01-01')), -> PARTITION p2011 VALUES LESS THAN (TO_DAYS('2012-01-01')), -> PARTITION plast VALUES LESS THAN MAXVALUE -> ); Query OK, 0 rows affected (0.06 sec)
ä½ãéãã®ãã¨è¨ããããã§ãããMySQL 5.5ã§ã¯1æ¥ãããç´°ããåä½ã§ãã¼ãã£ã·ã§ã³ãä½ã£ããããã¼ãã£ã·ã§ã³ã®åºåãã0æ0å以å¤ã«ã§ããã¨ãããç°ãªãã¾ããç§ã¯ä»¥å1æ¥ãããç´°ããåä½ã§ãã¼ãã£ã·ã§ã³ãä½ããæ¹ãè¯ãã®ã§ã¯ãªããã¨ææ¡ãã¦å´ä¸ããããã¨ãããã®ã§ãããã¯ããããæ°æ©è½ã§ãã