ãµã¼ãã¹çµäºã®ãç¥ãã NAVERã¾ã¨ãã¯2020å¹´9æ30æ¥ããã¡ã¾ãã¦ãµã¼ãã¹çµäºãããã¾ããã ç´11å¹´éãNAVERã¾ã¨ãããå©ç¨ã»ãæ顧ããã ãèª ã«ãããã¨ããããã¾ããã
MySQLã§æ´åæ§ã®ããããã¯ã¢ãããåå¾ããã®ã«ã "FLUSH TABLES WITH READ LOCK"ã§ãã¼ãã«ãã㯠ããã¯ã¢ããå¦ç(mysqldumpãã¹ãããã·ã§ãã) "UNLOCK TABLES"ã§ããã¯è§£é¤ ã¿ãããªã¹ã¯ãªãããå®è¡ãã¦ãããã"FLUSH TABLES WITH READ LOCK"ã£ã¦å¿ ãæ°ããªç§ã¿ãããªã¬ãã«ã§ããã¯ã§ããã®ããªã¨çåã«æã£ãã çµæ§æéã®ãããã¯ã¨ãªãå¦çããã¦ãããããã¨ãããã«ããã¯ã§ããªããã§ã¯ãªããã¨æã£ãã ã¡ãã£ã¨èª¿ã¹ã¦ã¿ãã¨ããã¯ãããã«ããã¯ãããªãå¯è½æ§ãããããã ã*1 FLUSH TABLES WITH READ LOCKã®é度ã«ã¤ã㦠ã¨ãããã¨ã§ã"FLUSH TABLES WITH READ LOCK"å¾ã«ã以ä¸ã®ãããªç¢ºèªå¦çã追å ããã "SHOW PROCESSLIST"ãå®è¡ãã¦ã"FLUS
èªåã®ããã°ã©ãã³ã°è³ãããã°ã©ã ã«ãã¦ããã¤ãããã°ã©ãã³ã°ããè±åºãã¦ãããã£ï¼ã¨ã夢è¦ãªãããæ¥ã ããã°ã©ã ä½ã£ã¦ãã ç¾é è²´å ã®æ¥è¨ã§ãï¼ä»ã¯ãå±å·ãç¾èµããã¨ãã¦ãSilverlightã»WPFã追跡ä¸ã§ãï¼ (2007/09/30) éçºããã¦ãã¦ã大éã®ãã¹ããã¼ã¿ã欲ãããªã¼ã¨ãããã¨ãæã ããã¾ãã å æ¥ã®ããMySQLã® using temporary; using filesort ãä½æ é ãã®ããã®å 容ããå®éã«æ¤è¨¼ãã¦ã¿ãã«ã¯ãsort_buffer_size ãè¶ ããéã®ãã¹ããã¼ã¿ãå¿ è¦ã«ãªãã¾ãã ãããããããæå¤ã¨é¢åããã㣠使ãæ £ããã¹ã¯ãªããè¨èªã§ããã§ãã§ã¤ã¨ã³ã¼ããæ¸ãã®ãOKãªã®ã§ãããã§ããã£ã±ãé¢åããã㣠ï¼ã§ãããï¼ï¼ ã¨ãããã¨ã§ãä»åã¯SQLã ãã§å¤§éãã¼ã¿ãä½ãæ¹æ³ãèãã¦è¦ã¾ãã ã¨ãã£ã¦ããã¹ãã¢ãããã·ã¼ã¸ã£ã§ã«ã¼ãã¨
ã¯ãªã¢ããªã®ç¹å¾´ ç¡æ·»å ã»ç¡çè²ã ããèãå¼±ã人ã§ãå®å¿ ã¯ãã¬ãå«ãªèãã®åå ã¨ãªãèã殺èã»æ¶æ¯ ãå¾ãªå®æã³ã¼ã¹ã¯ãè³¼å ¥ç¸ããªãï¼ãã¤ã§ã解ç´å¯è½ ä½èã®æ©ã¿ã¯èè¥ç·å¥³åããå ±éã®æ©ã¿ã§ãããä»äººã«ã¯ç¸è«ãã«ããã®ã§1人ã§æ©ãã§ãã人ãå¤ããã§ãã ä½èã£ã¦ãèªåã§ããªã¤ãæ°ã«ãªã£ãæã¯ãä»ã®äººã¯ãã£ã¨ã¯ãµã¤ã¨æã£ã¦ãã¾ãã ããããªãããèªåã§ã¯ãã¬ããâ¦ã¨æãã®ã§ããã°ãå¨ãã®äººã¯ããªãã®ããªã¤ã«æ°ã¥ãã¦ãããã⦠ã¯ãªã¢ããªã¯ããããªã¯ãã¬èã足ã®ããªã¤ãªã©ãã¤ã¤ã¼ãªä½èå ¨è¬ã10ç§ã§ã«ãããã¦ããããã§ãã ã¯ãªã¢ããªã®å¹æãå£ã³ãã調æ»ãã¾ããã®ã§å¾¹åºè§£èª¬ãã¾ãã è³¼å ¥æã«ç¹å ¸ãä»ãã¦ããã®ã§ãå¾ å ¬å¼ãµã¤ãã¯ã³ãã© â»ç¹å ¸ã¯æ¯æå¤ããã®ã§å ¬å¼ãµã¤ãã§ã確èªãã ãã ã¯ãªã¢ããªã¯ã©ããªäººã«ããããï¼ ã¯ãªã¢ããªã®æ®ºèçã¯ããªãã¨99.999%ï¼ä½èã®æ©ã¿ã解æ¶ãã¦ãããã¯ãª
ã¡ãã£ã¨ãã£ããâãªã¿ã¤ãã«ãã¤ãã¦ãã¾ã£ãããä»æ¥ã¯ç¬æã¨åè¦ã§MySQLãé«éåããæ¹æ³ã10åç´¹ä»ããããMySQLãµã¼ãããã¥ã¼ãã³ã°ããã¨ããåæå°å ¥ããå ´åãªã©ã«åèã«ãã¦ãããããã 1. ãããã¡ãå¢ãããã¾ãã¯æ¸ãã ãã¥ã¼ãã³ã°ã®åºæ¬ä¸ã®åºæ¬ã§ããããé©åãªãããã¡ãµã¤ãºãè¨å®ãããã¨ã¯ããã©ã¼ãã³ã¹ãã¥ã¼ãã³ã°ã®è¦ã§ããã主ãªãããã¡ã¯æ¬¡ã®éãã innodb_buffer_pool_sizeã»ã»ã»InnoDBã ããå©ç¨ããå ´åã¯ç©ºãã¡ã¢ãªã®7ã8å²ç¨åº¦ãå²ãå½ã¦ãæãéè¦ãªãããã¡ã§ãããä½è«ã ããå®éã«ã¯ããã§å²ãå½ã¦ãå¤ã®5ã10%ããããå¤ãã«ã¡ã¢ãªã使ãã®ã§æ³¨æãå¿ è¦ã ã key_buffer_sizeã»ã»ã»MyISAMã ããå©ç¨ããå ´åã¯ã空ãã¡ã¢ãªã®3å²ç¨åº¦ãå²ãå½ã¦ãã¨ãããæ®ãã¯ãã¡ã¤ã«ã·ã¹ãã ã®ãã£ãã·ã¥ç¨ã«æ®ãã¦ãããã sort_buffer_
https://dbstudy.info/jdbcrunner/ ã«ç§»è»¢ãã¾ããã ããããã¼ã¸ã«æ»ã Overview JdbcRunnerã¯å種ãã¼ã¿ãã¼ã¹ã対象ã¨ããè² è·ãã¹ããã¼ã«ã§ãã ã¹ã¯ãªããã§ãã©ã³ã¶ã¯ã·ã§ã³ãå®ç¾©ãã¦å¤éå®è¡ããã¹ã«ã¼ãããã¨ã¬ã¹ãã³ã¹ã¿ã¤ã ã測å®ãããã¨ãã§ãã¾ãã ã¾ããJdbcRunnerã«ã¯OracleãMySQLãPostgreSQLã対象ã¨ãã以ä¸ã®ãã¹ãããããä»å±ãã¦ããã ã¦ã¼ã¶ãç¬èªã«ã¹ã¯ãªãããä½æãã以å¤ã«ãããããç¨ããè² è·ãã¹ããè¡ããã¨ãå¯è½ã¨ãªã£ã¦ãã¾ãã Tiny SysBench - SysBench OLTPãã³ããã¼ã¯ã®ç§»æ¤ç Tiny TPC-B - TPC-Bã®ç°¡æå®è£ Tiny TPC-C - TPC-Cã®ç°¡æå®è£ Download JdbcRunnerã¯ãVectorã½ããã©ã¤ãã©ãªãããã¦ã³ãã¼ãã§ãã¾ãã
ã¡ã³ããã³ã¹
ãç¥ãã
é害
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}