1. JPA entitymanager remove operation is not performant stackoverflow.comWhen I try to do an entityManager.remove(instance) the underlying JPA provider issues a separate delete operation on each of the GroupUser entity. I feel this is not right from a performance ... |
2. Huge performance difference: EntityManager and Session query forum.hibernate.orgHi, I am doing some experimentation with Hibernate and EJB3 and have noticed if I run a simple query using entityManager.createQuery() it is several times slower than a standard hibernate session.createQuery() executing the same query string. I am timing the actual hibernate call itself (not serialisation etc.) so i can't explain the differences.... -------------------------------------- long starMillis = System.currentTimeMillis(); List |