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: SELECT Optimization Suggestion
PostPosted: Thu Oct 23, 2003 11:20 pm 
Regular
Regular

Joined: Tue Sep 16, 2003 11:35 am
Posts: 93
Location: San Francisco, CA
During a previous project using Perl and MySQL, I was able to significantly increase performance by fetching n rows with n/x queries of the type:

SELECT * FROM table WHERE id IN (id1,id2,id3,...,idx)

instead of n queries of the type

SELECT * FROM table WHERE id=id1

Every time Hibernate materializes a collection and I see the long series of identical queries printed in the query log, I wonder if there would be any performance gains by condensing the select queries in this way. You guys probably know more about whether this performance gain would be particular to Perl or MySQL, but I'm curious what you think of the idea.


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.