To continue fun with FusionIO cards, I wanted to check how MySQL / InnoDB performs here. For benchmark I took MySQL 5.1.42 with built-in InnoDB, InnoDB-plugin 1.0.6, and XtraDB 1.0.6-9 ( InnoDB with Percona patches). As benchmark engine I used tpcc-mysql with 1000 warehouses ( which gives around 90GB of data + indexes) on my workhourse Dell PowerEdge R900 ( details about box ). On storage configur
drop table if exists t; create table t ( iid int ,nid int ,bid binary(3) ,msg varchar(69) ,key (iid) ,key (bid) ) ENGINE=InnoDB; insert into t values (1,1,1,"ichi"),(2,2,2,"ni"),(3,3,3,"san") ,(4,4,4,"si"),(5,5,5,"go"),(6,6,6,"roku") ; ãªãã¼ãã«ã¨ãã¼ã¿ã§ã2ã¤ç«¯æ«ãç¨æã㦠update ãããã£ããã¦ã¿ã¾ãã ã¾ããããâã¯ä¸¡æ¹ã¨ãupdateãå®äºãã¦ã¹ã³ã£ã¨è¿ã£ã¦ãã¾ããè¡ã¬ãã«ããã¯++ begin; update t set msg = "t1" where iid = 1; 㨠begin; update t set msg = "t2" wh
InnoDBã¯MyISAMã¨æ¯è¼ãã¦å®å ¨(OSã¯ã©ãã·ã¥ãé»æºæãçºçãã¦ããã¼ãã«ãå£ããªã)åãæ¸ãè¾¼ã¿ãé ãããã¼ã¿ãã¼ã¹å±ããããããã¨ãããã¯å½ç¶ã®ãã¨ã§MyISAMããããããã ãã¨ãããã¨ã«ãªããã ããããããªããã¯ã¢ããæ©è½ã®ã¤ããRAIDã«ã¼ãã使ããã ãã¨ãã話ã«ãªããã§ããMyISAMã使ã£ã¦ããã¦ã§ãå±ããã®ç¾å ´ã§ã¯ãå ´åã«ãã£ã¦å¤å°ãã¼ã¿ãæ¶ãã¦ããã¾ããªããããå®ããã¼ãã¦ã§ã¢ã§å¤§éã®ã¢ã¯ã»ã¹ãæããã... ã£ã¦ä¹é¢ãããããããªãããªã¼ã¨æã£ã¦ãã ãã®ãããªå ´åã«ã¯ãmy.cnf ã® innodb_flush_log_at_trx_commit ãã©ã¡ã¼ã¿ã調æ´ãããã¨ã§ãMyISAMã«æ¯è©ããæ¸ãè¾¼ã¿é度ãå¾ããã¨ãã§ãã(ãã®ããããã¯ã©ãã·ã¥ãé»æºæã®å ´åã¯ãè¨å®ã«ãã£ã¦ç´è¿ï¼ç§ä»¥å ã®å¤æ´ã失ããã)ã ä»ã®ãã©ã¡ã¼ã¿ãå«ãã¦æ¸ãã¦ããã¨ããã¼ã¿ãã¼
MySQL InnoDB Pluginã®ãã¼ã¿å§ç¸®æ©è½ã®ç¶ãã§ããååã¯InnoDB Pluginã®ç¬èªæ©è½ã§ãããã¼ã¿å§ç¸®ã®ä»çµã¿ã解説ããWikipediaæ¥æ¬èªçã®ãã¼ã¿ãç´ååã«ã¾ã§å§ç¸®ããããã¨ã確èªãã¾ãããä»åã¯ãã¼ã¿å§ç¸®ã«ãã£ã¦æ§è½ãã©ã®ããã«å¤åãããããå®éã«ãã³ããã¼ã¯è©¦é¨ãè¡ã£ã¦è¦ã¦ããã¾ãã 試é¨ã®æ¹é ãã¼ã¿å§ç¸®ã«ããæ§è½ã¸ã®å½±é¿ã¯ã以ä¸ã®äºç¹ãèãããã¾ãã ã¡ãªããï¼ãã¼ã¿ãµã¤ãºãå°ãããªãããããã£ã¹ã¯I/Oãæ¸ã ãã¡ãªããï¼å§ç¸®ã»å±éã®å¦çãè¡ããããããCPUè² è·ãé«ããªã ããã§ããããã®ç¹å¾´ãããåããããã«è©¦é¨ãã¿ã¼ã³ã工夫ãã¾ããWikipediaæ¥æ¬èªçã®ãã¼ã¿ã¯InnoDBä¸ã§ããã5GBããã¾ãããã¾ãçãç¯å²ã«çµã£ã¦èªã¿åãå¦çãè¡ããã¨ã§ãã£ã¹ã¯I/Oããã¾ãçºçããªãããã«ãã¾ããããã§CPUè² è·ã®å¾åã確èªãããã¨ãã§ãã¾ãã次
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ã®ãã¼ãã«ã«
ã³ã³ãã³ãã¸ã¹ããã ç¡æã§ä½¿ããï¼HubSpotã®é¡§å®¢ãªã¹ãã®æ´»ç¨æ³ ç¡æã®ã¢ã³ã±ã¼ãä½æãã¼ã« æ¯è¼ï¼ã¾ã¨ã ç¡æãExcelã ãã³ãã¬ã¼ã æ¯è¼ï¼ã¾ã¨ã ç¡æã§ä½¿ãããã¼ãã¢ããªæ¯è¼ (Evernote / OneNote / Google Keep) ããããã®ç¡æWebä¼è°ã·ã¹ãã 5é¸ WebP Converter å¾¹åºè§£èª¬ï¼åå¿è ã§ãç´ãã«ä½¿ãã HubSpot ã¯ããã¼ã±ãã£ã³ã°ãã»ã¼ã«ã¹ããµã¼ãã¹ã®ããã®CRMï¼Continue reading å¤ãã®äººã®å£°ãèããã¨ã§æ¹åã§ãããã¨ãå¤ã ä¼æ¥ãå£ä½ãªã©éå¶ãã¦ãContinue reading å°±è·ã»è»¢è·ã«ã¯å¿ é ã¨ãªãå±¥æ´æ¸ã»è·åçµæ´æ¸ ããããå°±è·æ´»åãã¹ã¿ã¼ãContinue reading 便å©ãªãã¼ãã¢ããªã§å¹ççãªä»äºãããã ãã¤ã®æ代ãä»äºããã¦ãã¦ã¡Continue reading è¿å¹´ããªã¢ã¼ãã¯ã¼ã¯
[è¿½è¨ 2012/09/29] æè¿ã§ããã®è¨äºãåç §ãã¦ãã ããæ¹ãããã®ã§è¿½è¨ãã¾ããä¸è¨ã¨ã³ããªãæ¸ããæç¹ã§ã¯é常ã«å±æçãªã±ã¼ã¹ã§éãç¾è±¡ã«æ©ã¾ããã¦ãããã¨ãåæã«èª¿æ»ãã¦ããããã®å»¶é·ç·ä¸ã§ãä¸å¾InnoDBã¨ããã®ã¯è¨ãéããªå°è±¡ãåããããã©ã¼ãã³ã¹å·®ã«æãããã¨ãããã¨ãæ¸ãã¦ãã¾ã£ã¦ãã¾ããããã®å¾è²ã ã¨åå¼·ããçµæãç¹å®ç®æã®ããããªãã³ããã¼ã¯ã§ã¯ãªãä¸è¬çãªéç¨ä¸ã®è² è·ãç¦ç¹ã«ããå ´åã¯InnoDBã¯é©åã«è¨å®ãã¦ããã°ååã«ããã©ã¼ãã³ã¹ãããï¼ãããã¯InnoDBã®æ¹ãæå©ï¼ã¨ããã®ãç¾å¨ã®æè¦ã§ãã ãMyISAM InnoDBãã§æ¤ç´¢ããã¨ãã¡ããã¡ãã§ããããã«ãä»æã¯çç±ããªããã°InnoDBãã¨ãããã¨ã§MyISAMã®ãã¼ãã«ãããã¤ãInnoDBã«å¤æ´ããã¨ãããããªãããã©ã¼ãã³ã¹ãè½ã¡ãã±ã¼ã¹ããã£ãã InnoDBã«ãããè»ä¸¦ã¿é ããªã£ãã¨
MySQLã®ã¢ãã¿ããã®ã«ä¾¿å©ãªmytopãªãã§ãããMySQL 5ã«å¯¾ãã¦ä½¿ãã¨ãã¯ã¨ãªã®å²å表示ãå ¨é¨ã¼ãã«ãªã£ã¦ãã¾ã£ããã¾ãã ããã¯ãMySQL 5.0.2ã§SHOW STATUSæãå¤æ´ãããGLOBALãSESSIONã¨ãããªãã·ã§ã³ãæå®ã§ããããã«ãªã£ããã¨ã«èµ·å ãã¾ãããã®ãªãã·ã§ã³ãçç¥ããéã¯SESSIONãæå®ããã¨ãã¨åãåä½ã¨ãªããSHOW STATUSæã§å¾ãããã®ã¯èªåèªèº«ã®æ¥ç¶ã«ã¤ãã¦ã®æ å ±ã®ã¿ã¨ãªãã¾ãã mytopã¯ãªãã·ã§ã³ãªãã®SHOW STATUSæã使ã£ã¦ããã®ã§ãMySQL 5ã§ã¯mytopèªèº«ã®æ¥ç¶ã«ã¤ãã¦ã®æ å ±ããå¾ãããããã®å½±é¿ã¨ãã¦ãã¯ã¨ãªã®å²å表示ãå ¨é¨ã¼ãã«ãªã£ã¦ãã¾ã£ããããããã§ãã 対å¿ã¯ç°¡åã§ãmytopã®SHOW STATUSãSHOW GLOBAL STATUSã«æ¸ãæããã°ãã(æ¸ãæããã¨MySQL 4.1以å
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}