åæç¥è Rails ã¢ããªã«ããã¦ããã¼ãã«ã®è¿½å ãã«ã©ã ã®è¿½å ã¯ç°¡åãªãã®ã®ãã«ã©ã ã®åé¤ããªãã¼ã ã¯æ éã«è¡ãå¿ è¦ãããããã¨ãã¢ããªãããã®ã«ã©ã ãåç §ãã¦ãªãã¨ãã¦ãããããªãã«ã©ã ãåé¤ããã¨ã¨ã©ã¼ã«ãªãå¯è½æ§ã大ãã«ããã ã¨ããã®ã Rails ã«ã¯ã¹ãã¼ããã£ãã·ã¥ã¨ãããã®ãããããã¼ãã«ã®ã«ã©ã æ å ±ãã¢ãã«ããã£ãã·ã¥ãã¦ããããã ããã®ãã£ãã·ã¥ã¯ãã¨ãã°ãããã N+1 ã¯ã¨ãªåé¡ãé¿ããããã« includes (eager_load) ããã¨ãã«åç §ãããã SELECT å¥ã§ t0_r0 ã®ãããªæ©æ¢°çã«å¥åãæ¯ããããããªã¯ã¨ãªãè¦ããã¨ããã Rails ã¨ã³ã¸ãã¢ã¯å¤ãã¨æãã æ©æ¢°çã«å ¨ã«ã©ã ãåå¾ããããã«ã¹ãã¼ããã£ãã·ã¥ãå©ç¨ãã¦ããããããã®ãããªã¯ã¨ãªãå®è¡ããã¦ãä¸ã§ã«ã©ã ãåé¤ããããªãã¼ã ãããããã¨ãã¹ãã¼ããã£ãã·ã¥ããã¨ã«ä¸¦ã¹ã
{{#tags}}- {{label}}
{{/tags}}