https://kotlinlang.org logo
#ktor
Title
# ktor
r

Renaud

05/28/2021, 9:39 AM
I have a Publication object and i’d like to insert a batch of them. Two options: 1. Insert only via the Entity
Copy code
for loop
  Publication.new { ... }
2. Insert via entity table
Copy code
Publication.table.batchInsert
1? 2? I’m not sure
j

Julien Salvi

05/28/2021, 11:08 AM
Maybe ask in the #exposed for better results but both seems correct :)
❤️ 1