åã®ã¨ã³ã㪠#isucon ã§åªåãã¦ãã¾ãã ã¯å½æ¥å¤ã«é ã£æã£ãé ã§å¢ãã§æ¸ãä¸ããã®ã§ãå°ãå·éã«æ¯ãè¿ã£ã¦ã¾ã¨ãã¦ã¿ã¾ãã æåã®ããã«ããã¯çºè¦ DB ã CPU 4ã³ã¢ããã«ã«ä½¿ã£ã¦åã£ã¦ããã®ã§ããã« Query ãéãã®ã¯åãã£ã éãã¯ã¨ãªã¯ãã£ãã·ã¥ããã°ãã¨ããçºæ³ã¯èªç¶ (å®é MySQL ã®ã¯ã¨ãªãã£ãã·ã¥ã ãã§ã¹ã³ã¢ã¯ 1.5åç¨åº¦ä¸ãã)ãã¨ã¯ãã ãã®ã¯ã¨ãªã¯å®è¡ã« 300ã400 ms ç¨åº¦ããã ã¢ããªã±ã¼ã·ã§ã³ã®è¦ä»¶ä¸ãæ¯ç§æ´æ°ããå¿ è¦ããã 1ç§ãã¨ã«æ´æ°ã« 0.3ã0.4ç§ãããå¦çãããã®ã¯æªæã ãã cache ãæ¶ãã¦ããçæãã¨ããã¨çæå¦çãè¤æ°åæã«èµ°ã£ã¦ç¡é§ã大ãã (å®éãã³ããã¼ã¯ä¸ã® slow query ãè¦ã㨠600ã700 ms ç¨åº¦ã®æéãæãã£ã¦ãã) ã¨ãããã¨ã§ãDB ã®ãã¼ãã«æ§æãå¤æ´ãã¦é«éåã§ããªããã
{{#tags}}- {{label}}
{{/tags}}