Slow « Load « JPA Q&A





1. Hibernate queries slow down drastically after an entity is loaded in the session    stackoverflow.com

I'm using Hibernate EntityManager, and am experiencing a weird slowdown in my Hibernate queries. Take a look at this code:

public void testQuerySpeed() {
    for(int i = 0; i ...

2. Queries slow down after an entity is loaded in session    forum.hibernate.org

I'm using Hibernate EntityManager, and am experiencing a weird slowdown in my Hibernate queries. Take a look at this code: Code: public void testQuerySpeed() { for(int i = 0; i < 1000; i++) { em.createNativeQuery("SELECT 1").getResultList(); ...

3. Slow loading of data when saving big set    forum.hibernate.org

Hello, Im using hibernate and spring on java 1.6. When i try to save a big set of 100,000 records i get stuck for 20 minutes! while hibernate loads the data. I can see that the GC is working very hard. I tried to disable the second cache and it stills slow. this is the definition of the set:

4. Loading of child Set very slow    forum.hibernate.org

Newbie Joined: Thu Dec 09, 2004 4:26 am Posts: 19 Location: Yorkshire, UK Yet another one-to-many question..... I'm pretty sure that the mapping is setup correctly since it works but is very slow. I have two classes, ELR and TRID with a parent/child relationship with ELR as the parent. When the session loads a sample ELR, I see the SQL for ...

5. Slow loading    forum.hibernate.org

I am running into problems with slow performance. Is there a way to load only objects needed for each request? I have created 160 hbm.xml files for each table and during each time I execute session it initializes all objects even though I only use a few of the tables. Is there a way to load only the tables I will ...