| 
							
					| Hibernate Team |  
					|  |  Joined: Sun Sep 14, 2003 3:54 am
 Posts: 7256
 Location: Paris, France
 | 
				
					| When the amount of entities are very high in the session and in particular when associations are numerous, the flush operation will need to go through it's persistence context a lot. So while seeing it dominate your application is a little surprising, it's not necessary inconceivable.We did improve that part significantly in the 4.x series and in particular the latests version. I highly encourage you to migrate if you can. And before you ask, these improvements have been a hard uphill battle one small improvement at a time. Backporting would not be an easy task.
 _________________
 Emmanuel
 
 
 |  |