Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
[8.0] Use chunkById instead of chunk #360
Using chunkById is dramatically faster when importing millions of rows. This issue was originally reported in #182.
On a table with 1,632,576 rows, using the null scout driver so we don't have any noise from HTTP requests, an import goes from 29 minutes and 57 seconds to 28 seconds.
App\Order::where('price', '>', 100)->orderBy('price')->searchable();
I doubt that anyone actually needs that behavior? If they do there are a few options: