quality@glassfish.java.net

Re: Performance JPA?

From: Matthias Fraass <matthias.fraass_at_tricoder.net>
Date: Fri, 04 Mar 2011 15:49:54 +0100

Am 04.03.2011 12:34, schrieb Richard Kolb:
> Another thing to remember is cache.
> You should proably have a second bunch of tests that do the queries
> twice. JPA will cache , so the second run should be much faster.

I know but the use case is "batch processing" without any double
entries. So caching shouldn't happen anyway. I will change the example
in that respect.

> Don't forget to implement equals and hashCode on Customer to make JPA happy.

I will do that!

Regards,

Matthias