1
I need to perform a function in a Spring and Hibernate project, to which I must update some information from all records of my table. The idea is to load the records to the application, process the data based on some values of these records and then persisistir all this data mass.
The values to be updated are different for each record, and depend on the data already persisted in each one.
The table contains about 200,000 records, and I would like to know what is the best strategy for me to be able to carry out this data load, processing and persistence without this generating bottlenecks in my application and database.
Do you really need to load the crates into the application, process them, and upgrade? Wouldn’t you, for example, have a Procedure that makes this update, at most being called by the application?
– Bruno César
In this case not, due to the business rule that I must execute in this update, which would generate a very complex query. I will need to use relationships, date operations, splits, interactions...
– Pedro