jeroenzwart / laravel-csv-seeder

Seed your database with Laravel using CSV files
Other
92 stars 30 forks source link

Fix chunking #30

Closed Xint0-elab closed 1 year ago

Xint0-elab commented 1 year ago

Hi @jeroenzwart,

The current code inserts a single row at a time after inserting the first chunk, making the process slow.

With this change, the rows are correctly inserted in chunks every time the parsed data array has enough rows.