Java stored procedure batch with multiple OUT params -
i'm using oracle db.
and need call stored procedure sequentially 1000 times. stored procedure has several in params , out params. i'm doing under 1 transaction. using java's for-each loop , using spring's storedprocedure within of it. transaction takes 4 seconds. , it's not cool. need speed-up transaction time. there way that?
thanks in advance
write wrapper stored proc calls other ones, inputting data wrapper proc hashmap, or similar (see http://docs.oracle.com/cd/b19306_01/java.102/b14355/oraarr.htm#g1072333), storing output in cursor , returning out java. call wrapper java. let db heavy lifting , entire job runs in 1 db tx.
Comments
Post a Comment