-->
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.  [ 3 posts ] 
Author Message
 Post subject: how optimize read only query
PostPosted: Fri Apr 02, 2004 10:23 am 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
hi all,
is there a way to optimize a read only query?

i've already define mutable=false in my mapping

does
query.setLockMode(alias,NONE) or query.setLockMode(alias,READ) optimize the query? If yes, which is the best?

I know about cache... but i want to optimize the query, i've optimized the outer join and lazy features thanks to Gavin... but i want to know if there are more things we can do.

I remember an old VB app, we were able to use a READONLY recordset, and using it, the time of execution of the query was very short.


Thanks,
Anthony


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 24, 2004 9:33 pm 
Regular
Regular

Joined: Tue Sep 30, 2003 11:27 am
Posts: 60
Location: Columbus, OH, USA
Anthony, have you tried to set up a read-only 2nd-level cache yet? Check out chapter 12.2 at http://www.hibernate.org/hib_docs/reference/html/performance.html .
Scott


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 25, 2004 5:04 am 
Regular
Regular

Joined: Wed Mar 03, 2004 9:38 am
Posts: 70
I gave some advice on this topic in the thread: http://forum.hibernate.org/viewtopic.php?t=409&highlight=


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

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.