Re: slow Query (but not the SQL itself) (OpenJPA 1.2.x)

2009-12-03 Thread Marc Logemann
Hi, i found out that some one-to-one relations in the Superclass added some heavy performance penalties. I ve not seen it in the SQL logs though. Perhaps i missed it. Cant comment on the detachment. It seems that its not the problem at all in my case. --- regards Marc Logemann http://www.logem

Re: slow Query (but not the SQL itself) (OpenJPA 1.2.x)

2009-12-03 Thread Rick Curtis
Marc - In the case where you call em.find(...) and it takes 500ms how long does that operation take if the result doesn't need to be detached? The reason I ask is that I've been doing some performance work and we found that in some instances we are spending way too much time detaching Entities. -

Re: slow Query (but not the SQL itself) (OpenJPA 1.2.x)

2009-12-03 Thread Marc Logemann
small correction : public class SomeDao { @SuppressWarnings("unchecked") public Object getMetaData(Class clazz, long oid) { Object o = em.find(clazz, oid); return o; } .. } CALLER: Object o = someDao.getMetaData(Foo.class, 1); --- regards Marc Logemann http://www.logem

slow Query (but not the SQL itself) (OpenJPA 1.2.x)

2009-12-03 Thread Marc Logemann
Hi, i am facing some weird performance issues. Given this JPA Query: public class SomeDao { @SuppressWarnings("unchecked") public Object getMetaData(Foo.class, long oid) { Object o = em.find(clazz, client); return o; } .. } @Entity @VersionColumn(name = "jpaversion"