I wrote a custom solution based off of the query located here: https://forums.oracle.com/thread/1115582
batching DataFieldMaxValueIncrementer
-
30-06-2022 - |
Question
I am using a DataFieldMaxValueIncrementer (specifically, OracleSequenceMaxValueIncrementer) to get the value of the next available primary key before I do an insert. For performance reasons, I am rewriting the insert queries to be batched. Is there a similar way to use the DataFieldMaxValueIncrementer to batch retrieve the next couple of primary keys rather than retrieving each individually?
I am using spring-jdbc 3.0.4 on an oracle 10g database.
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow