Does the DAO api allow for batch insert?
# exposed
r
Does the DAO api allow for batch insert?
t
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
ooo. So just
Copy code
transaction{
  allMyDtos.map{
    MyDao.new{ .. }
  }
}
and I am done?
👌 1
thank you!
132 Views