문제

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.

도움이 되었습니까?

해결책

I wrote a custom solution based off of the query located here: https://forums.oracle.com/thread/1115582

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top