Prakash
Prakash

Reputation: 576

Slick 3 batch Update

My requirement is to do a batch update to a table. I was able to do a Batch insert but could not find a way to do the batch update in Slick3. Any sample or link to a document will be very help full. Tried to search the web could not find a solution. Using Slick 3 on Postgresql.

Upvotes: 2

Views: 2642

Answers (1)

Som Bhattacharyya
Som Bhattacharyya

Reputation: 4112

Why don't you just add whatever data you need to perform to a seq and perform the query. That will do the batching for you. Link here . This applies to all operations not only insert.

Look at this SO question to fall back on standard JDBC and do the update batching. Also there are some items the team is working on. See here.

Upvotes: 1

Related Questions