I have an insert critical application that needs to insert large quantities of data in a tree hierarchy structure of tables and in hopes to speed the persistence I changed to stateless session, however I got worse results than using the common session. Using Jprofiler showed me that prepareStatement() is called as many times as StatelessSession.insert(), what leads me to believe that for some reason Hibernate is generating one preparedStatement per insert, and that is slowing my persistence.
Is there any cause or solution to this behavior?
|