How does the batchInsert actually work? I'm trying to insert 50.000 rows at once, and it takes way to long.
t
tapac
11/06/2018, 4:00 PM
It uses jdbc batching under the hood, so there is no magic.
The speed of insertion depends on a database, jdbc driver and a lot of different options (such as connection bandwidth and does anyone blocks table where you want to insert).