Storing huge number of records in hibernate -
i have list more 50k entities attached it. have store each entity row in db .
to store them i'm traversing list , calling below function each node
public serializable create(t entity) throws mycustomexc{ serializable serializable = null; try{ session session = gethibernatesession(); session.save(entity); }catch(hibernateexception e){ throw new mycustomexc("error...."+entity,e); } return serializable; }
the issue i'm getting error this
jdbcexception e org.hibernate.util.jdbcexceptionreporter logexceptions db2 sql error: sqlcode=-964, sqlstate=57011, sqlerrmc=null, driver=3.62.56
which means "running out of space in transaction log." now, can't change of transaction log properties.
in hibernate autocommit property false.
what issue here?? should change "session.save(entity)" "session.persist(entity)". let me know if other info needed.
Comments
Post a Comment