java - big insert query fails Hibernate\Postgresql -
i'm trying find out root cause of failure in existing system. don't know it, looks issue in inserting big row postregsql via hibernate. fails insert record w/ text field 50-100k size.
should not issue postgresql itself. guess there might settings\parameters in hibernate can affect it. suggestion search direction?
first try @ exception, if it's in local machine or server log, more clues. since it's when inserting row, maybe know it's happening.
try inserting row text field has few bytes see if works. maybe connection slow , inserting more 50k causes timeout followed rollback.
also check out if insertion belongs larger transaction or it's executing on smaller one.
try doing insertion in plain jdbc (just temporarily) see if works , rule out connection issues.
if problem not in connection can start tweaking hibernate parameters. maybe disabling 2nd cache. stack exception or debugging session helpful know parameters change.
Comments
Post a Comment