Regular |
|
Joined: Thu Dec 11, 2003 4:14 pm Posts: 86 Location: Hibernate 3 + annotations, Oracle 9i, PostgreSQL 8.0, Java 1.5.0
|
Especially when you e.g. do mass data imports you'll only have commit() after - say - every 100 or even more imported records.
If you commit() after each record your performance will be extremely poor. And no, its not always possible to use a command-line tool for importing data.
Now, if there is an exception in one of the records you often simply would like to log it and continue.
In such a situation the object graph for the imported entity will also be very small, if it even exists, and I easily can decide if its save to remove the entity in question from the actionQueue.
But ok, it looks like we have to live with that it wont work ;-)
Thanks for your answers!!
|
|