æè¿ã®æãã§ã«ã©ã¢ã²ãã¤ãã£ããã¼ã ã§åå ããã®ã ãã©ãtoriclsãåå ã§ããªããã¨ãããã£ã¦ãããæ°ã¡ã³ãã¼ã¨ãã¦MOSHã®æäºããã«å ¥ã£ã¦ããã ãã¦2024å¹´ãã¼ã¸ã§ã³ã¨ãã¦ææ¦ã
ãªãã¸ããªã¯ãã¡ãã
GitHub - motemen/isucon14: カラアゲネイティブ (2024)
æçµçãªæ§æã«ã¤ãã¦ã¯å¤§å·¥äºãªã©ã¨ãã«ãªããnginx + app*3 + db ã¨ããæ®éã®æ§æã«ãªã£ãã
pt-query-digestãè¦ã¦ããã¨ãããããã£ã¦ãã£ãã®ã ãã©ããããã³ã°å¨ãã§ããã¨ããã¢ããªã±ã¼ã·ã§ã³ãã¦ã¼ã¶ã®ç解ã«åºã¥ãæ¹åã«æãä»ããããªãã£ãï¼ææ°ã足ãã¦ããªãã£ããã¨ããã®ãããããçºæ³ã¨åªå 度ã¥ãï¼ã®ã¯åçç¹ãæäºãããalpã®åæããã£ã¨ãã£ã¦ããã¦ããã¤ãèªåãããã¾ã§æãåãã¦ãªãã£ãã®ãæ°ã«ãªã£ã¦ããã®ã§å©ãã£ãã
ãã¨ã¯æãåºããç¯å²ã§ãã£ããã¨ã
- ãã¤ãéãã¨ããæãã§èªåããªãã¸ããªããããã¤å¨è¾ºã®æºåããã¤ã¤ãæ®ãã®2åã§ã¬ã®ã¥ã¬ã¼ã·ã§ã³ãã¢ããªã±ã¼ã·ã§ã³ã®ç解ãé²ããã
- ã¨ãã«æºåãã§ãã¦ãªãã£ãã®ã ãã©ãååã®Makefileãè¦ãªãããã£ã¦ãããæå¤ã¨ã¹ã ã¼ãºã«ããã¦ãããã¯ããã£ãã
- ã·ãã¥ã¬ã¼ã¿ã¾ã§ç¨æããã¦ã¦ãããã
- pt-query-digest ã®çµæãè¦ãªãããä½æ¦ä¼è°ãç´ æ´ã«ã¤ã³ããã¯ã¹ãå¼µããç·èµ°è¡è·é¢ãDBã«ä¿åãããåªçãã¼ã®å¯¾å¿ãSSEåãªã©ããã¤ãæãä»ããããæ¹é¢ãããããã ã£ãã®ã§ããªãã¨ãªãå²ãå½ã¦ã¦æ£ã
- ç·èµ°è¡è·é¢ãå¥ãã¼ãã«ã«
- ãã®å¤æ´ã§å¾®å¦ã«ã¨ã³ãã°ãã¦ãã¾ããå¾ã«æ©ã¾ããããã¨ã«ãªãâ¦â¦ãchair_locationãæ´æ°ããªããªã£ãçµæãchair_locationã®æ´æ°æå»ã«DBä¸ã®å¤ãå©ç¨ã§ããªããªããå¥ã®å¤ãç¨æããã®ãå¾®å¦ã«ãºã¬ã¦ãã¦ããã³ããã¼ã«ã¼ããç·èµ°è¡è·é¢ããããã«ãºã¬ã¦ãããã¨ããè¦åãåãåãããã«ãªã£ã¦ãã¾ã£ãã
- æäºããã«è¦ã¦ããã£ãããã¦ãæçµçã«ã¯ç´ãããã©æéãç¡é§ã«é£ã£ã¦ãã¾ã£ããã
- ãã®å¾ã¯èªåãSSE対å¿ãå ¥ãããã¨ããã®ã ãã©ãä»ã²ã¨ã¤ã¹ã³ã¢ãä¸ãããæ¬ä½ã«å ¥ããããªãã£ããã
- ãã¨ã¯Songmuããã¨æäºããããããã³ã°æ¹åãåªçãã¼ãè¤æ°å°åãªã©ãªã©ãã£ã¦ããã¦æçµçã«14kç¹ã¾ã§è¡ã£ã¦ãã£ããã·ã¥ï¼ æããæ®ãã
ä»åããã³ãå¨è¾ºã§ä¸åå°ããªãã£ãã®ã§ããããéå¶ã®çæ§ãã¤ãããã¾ã§ãã&ãããã¨ããããã¾ããã