Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 28th, 2006, 06:37 AM
Authorized User
 
Join Date: Aug 2005
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to speed up the page?

i need to populate many no. of drop downs from the db.
the no. of values coming form db will be in thousands.
so it will decrease the speed of the page for loading.
wt will be solution for this prob???
 
Old March 28th, 2006, 02:00 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

reduce the amount of data being sent to the page. There is no reason to load up thousands of items into a drop down.

 
Old March 28th, 2006, 03:14 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

I agree with jBenson, there is no reason to load 1000's of records into a dropdownlist not only that, do you expect your users to wade through 1000's or records to find the one they are looking for? You are better off filtering the result set by breaking the records out into categories and allow your users to select which category of records they want to deal with.

"The one language all programmers understand is profanity."
 
Old March 29th, 2006, 03:01 AM
Authorized User
 
Join Date: Aug 2005
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i agree u but m not getting wt exactly shud i do?
can i make use of XML
will it do anything?
and if so...how to make use of that?
 
Old March 29th, 2006, 04:21 AM
Authorized User
 
Join Date: Mar 2006
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Technology or buzzwords will not solve this one for you.

What you need is design. dparsons suggestion is spot-on:

1. Find a way to categorize the records
2. Load only the categories into the drop-down
3. If the user clicks on a category, load another drop-down with its members, or repeat from step 1 if required.

Joel
 
Old March 30th, 2006, 03:12 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

If you dont understand the concept behind this go to this website:

http://store.summitracing.com/eadvse...earchType=Make

That site makes use of what you should do, it dynamically changes all dropdown boxes based upon your initial selection. As you make a selection from the dropdown, the (main) drop down disappears and is replaced with plain text, this prevents your users from making a bunch of selections, then going back and altering the main category.

(To allow for functionality that would allow a user to change categories on the fly like that isnt overly difficult but will be come a pain in the amount of records you are talking about.)

As joel said, buzzwords arent going to get you out of this; sure you COULD use XML, but the XML file would simply replace your database as your datasource. Simply put, the only way to remedy your problem is going to be to apply some sort of filtering on your resultsets.



"The one language all programmers understand is profanity."





Similar Threads
Thread Thread Starter Forum Replies Last Post
Speed Transformation pallone XSLT 1 February 29th, 2008 03:56 PM
speed umeshtheone VB Databases Basics 2 May 21st, 2007 04:12 PM
speed up macro Pindacko Excel VBA 1 April 27th, 2006 01:41 PM
Speed and Normalization foddie MySQL 5 January 18th, 2006 01:39 PM
Speed kilika SQL Server 2000 10 July 1st, 2003 06:27 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.