-->
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: 3 selects for one view page question
PostPosted: Tue Oct 02, 2007 5:17 am 
Beginner
Beginner

Joined: Wed Jul 25, 2007 6:32 am
Posts: 22
My viewpage is build up with the help of three selects.

One to load the sub categories with the total number items.
One to load special items per sub category
One to load banner/advertisement information related to the parent category.

My question is:

Are 3 selects per viewpage to much? Can I build up this page with less selects?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 02, 2007 5:31 am 
Regular
Regular

Joined: Sun Sep 30, 2007 7:51 pm
Posts: 93
I don't think it is too much. Sometimes, more smaller selects are better than one big one.

When tuning performance, make sure you have right indexes on tables, and you can also turn the second level cache. This will speed things a lot, and you don't have to ugly your code with making one select, than extracting values from it, etc..

Regards,
Pavol


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 02, 2007 10:03 am 
Beginner
Beginner

Joined: Wed Jul 25, 2007 6:32 am
Posts: 22
okay thank you!


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.