ååã¯ããã£ã³ãã³ã°ã§ããã°ã©ã ã使ç¨ããã¡ã¢ãªã®éãæãããã¨ã説æãã¾ããããå®è¡é度ã¯ã©ããªã®ã§ãããï¼ ç§ã®ä»®æ³ãã·ã³ã§æ¸¬å®ãã¦ã¿ã¾ããã50ä¸ã®ã¬ã³ã¼ããããã¾ãã 1000ã¬ã³ã¼ããã¨ã®ãã£ã³ãã³ã°ã¯ã1å32ç§ã ãã£ã³ãã³ã°ãªãã§ãã¡ã¢ãªå¶éã1ã®ã¬ãã¤ãã¨ãã¦ã46ç§ã ãã£ã³ãã³ã°ã®æ¹ã2å以ä¸æéããã£ã¦ãã¾ãã ãã£ã³ãã³ã°ãã©ã®ãããªSQLã®ã¯ã¨ãªãå®è¡ããããtinkerã§è¦ã¦ã¿ã¾ããæ°ãå¤ãã®ã§ãããã§ã¯10,000ã¬ã³ã¼ããã¨ã®ãã£ã³ãã³ã°ã«ãã¦ãã¾ãã >>> DB::enableQueryLog(); => null >>> DB::table('users')->count(); => 500000 >>> App\User::chunk(10000, function($rows) { }); => true >>> DB::getQueryLog(
{{#tags}}- {{label}}
{{/tags}}