java - How to write "INSERT ALL INTO " from Oracle by using hibernate create native query? -
i tried insert lot of information beside main task table thread appear wasn't enough, unfortunately performance big issue. i'm had been using spring , hibernate still newbie. since had been using em.persist time. heard of insert oracle won't go along hibernate or maybe wasn't support since cannot find evidence. or can suggest solution can improve inserting performance, comment appreciated.
this code, inside save() method
list<obj> listofobj; this.save(listofobj); public void save(listofobj){ (int = 0; < listofobj.size(); ++i) { this.em.persist(listofobj.get(i)); if (i % 1000 == 0) { this.em.flush(); this.em.clear(); } }
Comments
Post a Comment