Wrox Programmer Forums
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 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 December 22nd, 2004, 05:26 PM
Authorized User
 
Join Date: Jul 2004
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default optimize data access

I've been having headache for 3 days on this problem of retrieving 65,000 rows of DataTable from Oracle database. Customer needs to download the entire bill data. I tried a couple of ways of getting data, by filling DataSet or executing a DataReader, and generate a .csv file and zip it up on the server for download. But it either takes too long or gives an error of "Page Cannot be displayed". I'm not even doing any data binding to any control. Just the retrieving data seems to take forever. What is a good approach to this issue? Anybody can advise?
Yubo

 
Old December 26th, 2004, 01:56 AM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

I would suggest using a stored procedure. And check the timout parameter on your page or in the web.config file.
 
Old February 1st, 2005, 02:59 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

If the problem is not the database response time (your other topic indicated that the Oracle database was responding to this query ok) then the problem is most likely the amount of HTML. 65000 rows would certainly result in a whole lot of HTML. If you really need all that data together about all you can do to streamline the HTML as much as possible. Instead of a datagrid, use a repeater control. This will allow you to control the output HTML of the repeated items.

-Peter
 
Old February 2nd, 2005, 08:10 AM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 623
Thanks: 0
Thanked 1 Time in 1 Post
Default

you have 65,000 rows but in your page you just show limited rows,so in my opinion,you can use paging technique in your grid and every time just fetch limited rows from DB and bind them to your grid (its example).

_____________________________
Mehdi.
software engineering student.
Looking for a good job for summer 2005.
 
Old February 14th, 2005, 11:27 AM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 623
Thanks: 0
Thanked 1 Time in 1 Post
Default

Quote:
quote:Originally posted by planoie
 If you really need all that data together about all you can do to streamline the HTML as much as possible.
can you explain it?how can I do that?did you mean compressing something like this, http://www.codeproject.com/aspnet/WhitespaceFilter.asp





Similar Threads
Thread Thread Starter Forum Replies Last Post
optimize inesrt to MDB ishaywei Classic ASP Databases 1 November 27th, 2006 10:36 PM
to optimize the code-urgent mikedeepak Classic ASP Professional 1 November 4th, 2005 03:00 AM
Optimize SQL Statement JpJoe Access 1 June 7th, 2005 08:19 AM
Optimize Raul Classic ASP Databases 3 February 10th, 2004 02:08 PM





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