-->
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: how many selects for one viewpage?
PostPosted: Sat Sep 29, 2007 5:35 am 
Beginner
Beginner

Joined: Wed Jul 25, 2007 6:32 am
Posts: 22
I have a question about the number of selects in a viewpage.

For example We have an auction site similar like ebay.

When the user clicks a parent category, the following view is returned.

A page that shows all the subcategories with the total number of items in it and the most interesting items in these sub categories.

Then a banner (is dependent on the category) is also in the view. And some other advertisement blocks, that are related to the category.

My question is how much selects to the database are needed in order to build such a page?

Is that:

1. One for the banner / advertisement information, based on the parent category?

2 Two, a select for the subcategories and the total number of items in it.

3 Three a select for the most wanted items in this category?

And three selects per viewpage is this a high number of selects? Because
the number of selects is nrOfUsers * 3 (when we cash nothing).

Is it normal to have 3 or more selects per viewpage?

Can it be done in one select?


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.