DEV Community

Discussion on: Optimize multiple INSERTs (for Oracle)

Collapse
 
yyvess profile image
yyvess • Edited

Good trick but why not simply use jdbc batch update?
It should must faster and easily to use.
Note that in general you should commit each 1'000 - 10'000 otherwise performance decrease

docs.oracle.com/cd/E11882_01/java....

Collapse
 
michelc profile image
Michel

Indeed :)
But it's C# code and I used what I know best: ADO.NET and Dapper.
Otherwise, it's a translation of an old post. At this time, the batch update had to go through DataAdapter that I didn't use.