what is the correct way to do a bulk insertOrUpdate in Slick 3.0?
I am using MySQL where the appropriate query would be
INSERT INTO table (a,b,c) VAL
As you can see at Slick examples, you can use ++= function to insert using JDBC batch insert feature. Per instance:
val foos = TableQuery[FooTable]
val rows: Seq[Foo] = ...
foos ++= rows // here slick will use batch insert
You can also "size" you batch by "grouping" the rows sequence:
val batchSize = 1000
rows.grouped(batchSize).foreach { group => foos ++= group }