Hibernate saveOrUpdate large data
问题 I am trying to insert or update a large data with Hibernate. I have a list contains 350k objects and when I use Hibernate saveOrUpdate() , it takes hours to insert all the data. I am using the code below for this operation. My development environment is JDK1.4 and Oracle Database. public void saveAll(List list)throws HibernateException{ Session session = HibernateUtil.getEYSSession(); Iterator it = list.iterator(); int i = 0; while(it.hasNext()){ i++; Object obj = it.next(); session