2019/11/23ã«éå¬ãããJJUG CCC 2019 Fallã§ã®ç»å£è³æã§ã
2019/11/23ã«éå¬ãããJJUG CCC 2019 Fallã§ã®ç»å£è³æã§ã
ä½åº¦ãæãã¦ããã ãã¦ããã®ã§ãä»åº¦ãããã£ããè¦ãã¦ããããã¦ãã¾ãããããã®ã³ã¡ã³ããè¨é²ã ## ã¡ã¢ãªãµã¤ãºã®èãæ¹ SpringBootã®ã¢ããªãã³ã³ããã¨ãã¦åããå ´åã«ã¯768MB以ä¸å¿ è¦ã§ã1GBãããã¯å²ãå½ã¦ãå¿ è¦ãããã®ã§ã¯ãªããã¨ããåã®ã³ã¡ã³ãã«å¯¾ãã¦ããã ããã³ã¡ã³ãã ããã¯ä¸æ£ç¢º..Tomcatã使ãå ´åã¯æ大ã³ãã¯ã·ã§ã³(ã¹ã¬ãã)ãããã©ã«ã200ã§+50ã¹ã¬ãããããä½è£ãè¦ãã¨250M (-Xss1Mï¼ã§ããã©ã«ãã®ReservervedCodeCacheSize 240Mã¨DirectMemorySize 10Må ããä¸ã«MaxMetaSpaceSizeããã£ãã50Mããã足ãã¨550Mããã使ã£ã¦ããHeapã足ãã¨ã³ã³ãããµã¤ãºâ Toshiaki Maki (@making) November 16, 2019 ãã®åæã§ããã°Heap 2
Kotlinã§Webã¢ããªã±ã¼ã·ã§ã³ãä½ãã«ããããSQLãç´æ¥è¨è¿°ã§ããã¿ã¤ãã®O/Rãããã¼ï¼æ¬ç¨¿ã§ã¯SQLãããã¼ã¨å¼ã³ã¾ãï¼ãæ¢ãæ±ãã¾ããã SQLãããã¼ã«æ±ããæ©è½ SQLãããã¼ã«æ±ããæ©è½ã¯Bindã¨Mapã§ãããã®è¨äºã§ã¯Bindã¨Mapã次ã®ããã«å®ç¾©ãã¾ãã Bind SQLã«åãè¾¼ãã ãã¬ã¼ã¹ãã«ãã¼ï¼ååä»ããæã¾ããï¼ã«å¯¾å¿ãããã©ã¡ã¼ã¿ã¼ç¾¤ã渡ãæ©è½ã ä¾: SELECT ... WHERE price BETWEEN :minPrice AND :maxPrice ã®ãããªSQLã«ãminPriceã¨maxPriceããããã£ãæã¤ãªãã¸ã§ã¯ãã渡ãã Map å®è¡çµæã¨ãã¦å¾ãããè¡ããªãã¸ã§ã¯ãã«ãããã³ã°ããæ©è½ã ä¾: SELECT id, name, price FROM ... ã®ãããªSQLã®å®è¡çµæããid, name, price ã®ãã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}