To add to what Rick said it really depends on what you're timing. Any ORM framework is going to be slower than JDBC - the framework is doing some extra work for you. If you count the time taken to initialize the framework e.g. something that should be done infrequently (creating a new EntityManagerFactory) that can affect the performance results dramatically.
Considering the insert scenario. If you just compare the time it takes to perform an EntityTransaction (begin, create entity, commit) to the time to execute a prepared statement and commit a connection I suspect the numbers are a bit closer. -mike On Mon, Jul 12, 2010 at 10:23 AM, Rick Curtis <[email protected]> wrote: > I have a couple questions about your configuration: > 1.] JEE or JSE? > 2.] Is this out of box testing, or are you doing some amount of tuning to > OpenJPA? > 3.] Do you have some sort of connection pooling configured? > > Thanks, > Rick >
