Problems existing in the current project: because of the large amount of data, early didn't consider such a problem, cause the import function for a long time did not response and an error, even memory explosion, GC automatic recycle all not a line, so want to call a stored function to the 10 w level number through into the oracle stored function to carry on the batch, check, information processing of the documents at the same time, the information you need to merge into a record return,
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Dear leaders, I have two problems need leaders to help me here:
1, to the storage function, the parameter is an array List, how can I get in oracle this definition? And return values, I want to a record return, so that I can take an object on the Java side to receive the corresponding field information, but at present there is a problem, return the information, the field name don't know how to define in oracle,
More than 2, the optimization of memory approach is correct? - this leaflet number directly to the storage function to deal with, I don't need definition so many objects in Java, don't need a for loop that much, then I do addition and subtraction last saved again,
CodePudding user response:
With the front desk processing data into a file, and file import database so that noCodePudding user response:
Using SQLLDR loaded directly to the temporary table, the data and then the batch data of temporary tables, rather than use stored procedures to receive the data,CodePudding user response: