473,396 Members | 1,799 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Datareader or Dataset ?

I have a table with 1 million rows. I want to DISPLAY all
the rows in ASP.NET page. If 10,000 users are accessing my
page. I need to go for Datareader or Dataset...Problem is,
if i use Datareader there will be 10,000 connections to
the database. If i use Dataset it occupies 10,000 memory
blocks(xml format data) in my web server....Don't want
caching concept...If some one help me in this area?

Thanks in advance....
Srinivas
Jul 19 '05 #1
3 2751
guy
how does an operator physically read a million rows from a
web page?

guy
-----Original Message-----
I have a table with 1 million rows. I want to DISPLAY all
the rows in ASP.NET page. If 10,000 users are accessing mypage. I need to go for Datareader or Dataset...Problem is,if i use Datareader there will be 10,000 connections to
the database. If i use Dataset it occupies 10,000 memory
blocks(xml format data) in my web server....Don't want
caching concept...If some one help me in this area?

Thanks in advance....
Srinivas
.

Jul 19 '05 #2
Besides the fact that no human can use 1 million rows of data......

If each row contained only 1 byte of data, and you had no html(table) your
page would be 1 MB. Now add
<tr><td></td><td></td><td></td></tr> * 1million. Even with out the data
that's 36MB.

Good Luck!

Bob Lehmann
"srinivas" <sr******@yahoo.com> wrote in message
news:04****************************@phx.gbl...
I have a table with 1 million rows. I want to DISPLAY all
the rows in ASP.NET page. If 10,000 users are accessing my
page. I need to go for Datareader or Dataset...Problem is,
if i use Datareader there will be 10,000 connections to
the database. If i use Dataset it occupies 10,000 memory
blocks(xml format data) in my web server....Don't want
caching concept...If some one help me in this area?

Thanks in advance....
Srinivas

Jul 19 '05 #3
You want to show 1 million rows in one ASP.NET page? Hmmm. I don't think
that would make a lot of sense from and end user perspective - imagine to
have to browse through 1 million rows...

Paging might be a better solution in this scenario.

Regards,
Wim Hollebrandse
http://www.wimdows.com
http://www.wimdows.net

"srinivas" <sr******@yahoo.com> wrote in message
news:04****************************@phx.gbl...
I have a table with 1 million rows. I want to DISPLAY all
the rows in ASP.NET page. If 10,000 users are accessing my
page. I need to go for Datareader or Dataset...Problem is,
if i use Datareader there will be 10,000 connections to
the database. If i use Dataset it occupies 10,000 memory
blocks(xml format data) in my web server....Don't want
caching concept...If some one help me in this area?

Thanks in advance....
Srinivas

Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Yasutaka Ito | last post by:
Hi, My friend had a little confusion about the working of DataReader after reading an article from MSDN. Following is a message from him... <!-- Message starts --> I was going thru DataReader...
1
by: Rob via .NET 247 | last post by:
Ok, I'm new to .NET so I'm afraid I'm doing something stupidhere, but I'm trying to populate a DataSet manually from aDataReader, and its turning out to be ridiculously difficult. Yes, I could use...
5
by: Jason Huang | last post by:
Hi, Is it possible to bind DataReader to a DataGrid in C# windows form? And how? And can we update data in a DataSet by using the DataReader? Thanks for help. Jason
14
by: Bihn | last post by:
I was reading about datareader which is said to be slimmer & faster then dataset. Since the datareader have to go fetching the dat from the database every time it need it, the data it gets then...
2
by: Patreek | last post by:
Hi, I'm writing my first real asp.net app at my job, and I'd like opinions please. In my classic ASP apps that I've written, I'd often have separate files for retreiving data and returning the...
1
by: Ivan Weiss | last post by:
Hey all, I have the following code to populate a ListView control from my Access database. The listview is displaying a list of saved projects that the user will be able to open, edit, or delete...
2
by: SQL | last post by:
Hi, is there a method to move to the next record in a datareader? Kind of like the rs.MoveNext from VB6... Thanks
3
by: jason | last post by:
Hi, {asp .net 1.1, sp 2) I am facing problems with multi users accessing the same page. There is a datagrid in the webform. The "datareader already opened error/ object reference not found"...
7
by: =?Utf-8?B?UGV0ZXI=?= | last post by:
I have read some articles state that DataSet should NOT be used for large resultset. What does "large" mean? Is "large" based on # of rows/columns and/or memory required to hold the original and...
4
by: Chris | last post by:
Hi, i use this to recover data via a stored procedure from a database. Imports System.Data Imports System.Data.SqlClient Public Class chat Public Shared Function myfunction() As DataSet Dim...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.