Batch Insert using akka slick Java API's

16 views
Skip to first unread message

Jammie Jamloki

unread,
Feb 20, 2018, 9:36:41 AM2/20/18
to Akka User List
Hi Guys,
I am trying to batch insert rows in the table using akka slick Java APIs.

Here is what I have right now : 

                    Slick.<User>sink(

                session2,

                6, // number of threads. 

                // add an optional second argument to specify the parallism factor (int)

                (user) -> "INSERT INTO TEST_TGT VALUES (" + user.id + ", '" + user.name + "')"

              ), materializer)



Can you please help ?


Regards

Shailesh

Reply all
Reply to author
Forward
0 new messages