Importing data, we have the following speeds (in ms)
Code:
FI import: 7492 records inserted... Time:13877
FI import: 7492 records flushed... Time:662184
I had assumed that actually creating the objects would be the slow part, but it appears that the flush to database is the bigger bottleneck. Somehow I find it hard to believe that the database is the problem unless its a combination of jdbc and statement creation? Are the insert/update statements generated in batches, or send 1-at-a-time to the database?
Are there any optimization tricks I should be aware of (on the hibernate side)?
Using: postrgreSQL, linux, and jboss 3.2.1 w/tomcat
Thnx.