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
Post a Comment