Any limits on insertValues(array)?
I am seeding data in migrations and received error when trying to insert over 35.000 rows at once.
but if I do the loop it all works without any problems.
3 Replies
Oh, I probably found the problem. The table includes a generated (stored) column and it’s not happening quickly enough and that’s why it fails. Difficult to confirm but it looks like that.
Databases have limits to how many parameters a query can have. You are probably hitting that
Solution
Just insert in chunks