Rubyã§ã¯æ¯è¼çç°¡åã«ãã«ãããã»ã¹ããã«ãã¹ã¬ããã®ããã°ã©ãã³ã°ãã§ãã¾ãããããã§ãããç
©éãªæ¸ãæ¹ã«ãªã£ã¦ãã¾ãã¾ãã ãããã®å¦çãç°¡åã«æ¸ãããã®ã©ã¤ãã©ãªã¨ãã¦parallelããªã¹ã¹ã¡ã§ãã ã«ã¼ãã®åã«å°ãæ§æãå ããã ãã§ç°¡åã«ãã«ããªå¦çãå®è¡ã§ãã¾ãã # æ®éã«æ¸ãã¨ãããªæã [1, 2, 3, 4, 5, 6].each do |i| p i end # Parallelã使ã£ã¦å¦ç Parallel.each([1, 2, 3, 4, 5, 6], in_processes: 6) do |i| p i end ãã®ããã«å
é ã«Parallelãä»ããã ãã§ãã ã¾ãActiveRecordã使ç¨ããéã¯ãã¹ã¬ããã»ããã»ã¹ãçæããã度ã«ãã¼ã¿ãã¼ã¹æ¥ç¶ãè¡ãã¨ãã¼ã¿ãã¼ã¹å´ã§ã¨ã©ã¼ã¨ãªã£ã¦ãã¾ãã®ã§ãParallelã«éãããã«ãã§ã®å¦çã§ã¯ä»¥ä¸ã®ãã
{{#tags}}- {{label}}
{{/tags}}