Replies: 1 comment 2 replies
-
I think that the reason is that the model creating/created/saving/saved events do not fire on |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
As was pointed out by Ryuta Hamasaki on twitter currently when you call
It will execute 5 separate insert statements. So if you want to execute a single insert with 100 records you have to use something like
Which is obviously much more verbose. Is there are a reasons factories are constructed like this? I was curious if I could PR this, but didn't want to go too far down the rabbit hole if there was a good reason for this behavior. I would assume it may have something to do with the other more advanced features of factories that may not work as well trying to batch insert them.
Beta Was this translation helpful? Give feedback.
All reactions