-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: When to shift from Hibernate to direct use of SQL?
PostPosted: Thu May 12, 2011 2:04 pm 
Regular
Regular

Joined: Tue Apr 10, 2007 10:02 am
Posts: 56
I have a general question on the realistic constraints of using Hibernate for complex multi table queries versus using Hibernates own search mechanisms.

My Spring web app uses Hibernate to map all the entities and for simple CRUD operations or one/two/three table queries and master/detail associations this works fine. However, I've now started to add some quite complicated reporting facilities to my app that often join 6 to 10 tables. Doing all of this in Hibernate HQL is starting to get cumbersome, and I've even had the Hibernate tier crash a couple of times trying to process these large queries. Building the same queries in plain SQL is easier and seems to work faster.

I'm seeking some general advice on how best to approach this problem. Are there recognized constraints about where to best employ and not employ Hibernate?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.