hibernate - PlayFramework updating a large number of records -


i have database contains 2 tables (simplified) session contains records, 1 session can contain somewhere between 1,000 , 10,000 records.

after receiving session data (with records) , saving in database - takes total of 200ms when using solution previous question year ago: jpa/hibernate improve batch insert performance

which enough situation.

now, after has been saved need go through records , calculate values 2 columns (these can't calculated before records have been saved).

when looping through records , saving each record - process takes way long (~30 records per second) making 5000 record session calculation take 2 minutes.

now, if try same thing did insert , use hibernate session 'batch' update - data calculated (20,000 rows per second) columns in database not updated these new values.

any ideas why 'session trick' (described in linked question) works insert fails silently update queries? i'm not catching exceptions , ignoring them, nor there exceptions being logged while running.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -