Join Slack
Powered by
Does the DAO api allow for batch insert?
# exposed
r
runjorel
07/01/2019, 7:39 PM
Does the DAO api allow for batch insert?
t
tapac
07/01/2019, 10:00 PM
It will do batch updates/inserts automatically when possible. That means what if you create entities in a loop then all of them will be inserted in a batch.
🎉 1
r
runjorel
07/01/2019, 10:05 PM
ooo. So just
Copy code
transaction{ allMyDtos.map{ MyDao.new{ .. } } }
and I am done?
👌 1
runjorel
07/01/2019, 10:07 PM
thank you!
132
Views
Open in Slack
Previous
Next