-->
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.  [ 2 posts ] 
Author Message
 Post subject: How to tune a length where-in clause in hibernate
PostPosted: Mon Aug 15, 2005 12:10 pm 
Newbie

Joined: Mon Aug 15, 2005 12:02 pm
Posts: 1
I have a query that has a "where in" clause that takes in aroung 1000 parameters.I would like to know if there is any query tuning that can be done in this place?

example:
list1 = session.createCriteria(ABC.class)
.add(Expression.in("custId", custIds))
.list()
Since i have a dynamically generated list of custIds which can be any thing between 500-1000.When i run this query in a recurring fashion,
oracle throws an archive error.So I was just wondering of there is any sort of query tuning links that you could suggest.


Top
 Profile  
 
 Post subject: in
PostPosted: Mon Aug 15, 2005 3:37 pm 
Expert
Expert

Joined: Fri Jul 22, 2005 2:42 pm
Posts: 670
Location: Seattle, WA
I would suggest trying to get rid of [in] query and replace it with one that does something else, like join with another table where selection criteria get applied.

Check also that ORACLE has enough space for logs, and that Query fits into query buffer size, I vaguely remember that there are some limitations on the size of one chunk of SQL server can chew at one time.

_________________
--------------
Konstantin

SourceLabs - dependable OpenSource systems


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.