'Is there equivalent of BatchMerge in jOOQ version 3.13.4?
I need to do upsert on batch records. I'm using jOOQ version 3.13.4, and I cannot update to the latest jOOQ version because I'm using Java 8. If I update the jOOQ version, then I get java.util.concurrent.flow not found errors with the current Java version. I have other constraints due to which I cannot update the Java version of my Spring Boot Application.
Is there a workaround for batchUpsert/batchMerge in jOOQ 3.13.4?
Solution 1:[1]
postgresql.loadInto(tableName).batchAll() // Batch Upsert Operation
.onDuplicateKeyUpdate()
.loadRecords(list)
.fields(tableName.fields())
.execute();
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Divyanshi Mangal |
