473,472 Members | 2,257 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

DataSet is good for ASP.NET?

Hi,

According to some people, DataSet is good for the N-Tier Aapplication
because it maks the logic layer seperated from the database. But a DataSet
object will be assigned a block of memory to keep the data. If there is a
dataset object created in an aspx page and this page will be accessed by
many visitors (at the same time), is it possible the performance of the
server will be reduced?

Thanks

Q.
Nov 18 '05 #1
2 1084
Yes, the DataSet does take up space in memory, but there are several reasons
why this can still be the best way to go....

If you expect high volume and the data doesn't change very often, you can
cache the DataSet so that only one copy is in memory and no trips to the
database need to take place.

If the data does change frequently, then you have 2 options...

Use OutputCaching to store different DataSets based on parameters passed to
the page...Still no trips to the database and the benefits of caching.

Even if the initial page request must go to the database, storing the data
in a DataSet will eliminate the need to make additional calls to the
database, which is a good trade off for storing the DataSet in memory.

"Quentin Huo" <q.***@manyworlds.com> wrote in message
news:OI**************@TK2MSFTNGP12.phx.gbl...
Hi,

According to some people, DataSet is good for the N-Tier Aapplication
because it maks the logic layer seperated from the database. But a DataSet
object will be assigned a block of memory to keep the data. If there is a
dataset object created in an aspx page and this page will be accessed by
many visitors (at the same time), is it possible the performance of the
server will be reduced?

Thanks

Q.

Nov 18 '05 #2
Yes, the DataSet does take up space in memory, but there are several reasons
why this can still be the best way to go....

If you expect high volume and the data doesn't change very often, you can
cache the DataSet so that only one copy is in memory and no trips to the
database need to take place.

If the data does change frequently, then you have 2 options...

Use OutputCaching to store different DataSets based on parameters passed to
the page...Still no trips to the database and the benefits of caching.

Even if the initial page request must go to the database, storing the data
in a DataSet will eliminate the need to make additional calls to the
database, which is a good trade off for storing the DataSet in memory.

"Quentin Huo" <q.***@manyworlds.com> wrote in message
news:OI**************@TK2MSFTNGP12.phx.gbl...
Hi,

According to some people, DataSet is good for the N-Tier Aapplication
because it maks the logic layer seperated from the database. But a DataSet
object will be assigned a block of memory to keep the data. If there is a
dataset object created in an aspx page and this page will be accessed by
many visitors (at the same time), is it possible the performance of the
server will be reduced?

Thanks

Q.

Nov 18 '05 #3

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

Similar topics

7
by: Marty | last post by:
Hi, Ok I use the OLEDBConnector and dataset to retrieve data from my Access DB. I have a problem to read/parse the dataset and I would like to know if I am using the right object to reach my...
3
by: Bill C. | last post by:
Hi, I've got a simple console app that just reads an XML file into a DataSet then prints out a description of each table in the DataSet, including column names and row values for each column. ...
4
by: suzy | last post by:
hello. how can i sort data in a dataset? all the examples i have seen on msdn, etc are sorting a dataview. this works fine, but i want to return the results in xml and the dataview doesn't...
9
by: Dave | last post by:
Compilier will not recognize DataSet object. As you can see below is from a test simple form with no other code. I'm just trying to get any Aspx form to recognize the DataSet object. You can...
1
by: Quentin Huo | last post by:
Hi, According to some people, DataSet is good for the N-Tier Aapplication because it maks the logic layer seperated from the database. But a DataSet object will be assigned a block of memory to...
16
by: Geoff Jones | last post by:
Hi Can anybody help me with the following, hopefully simple, question? I have a table which I've connected to a dataset. I wish to add a new column to the beginning of the table and to fill...
22
by: Arne | last post by:
How do I pass a dataset to a webservices? I need to submit a shoppingcart from a pocket PC to a webservice. What is the right datatype? II have tried dataset as a datatype, but I can't get it to...
12
by: Marc | last post by:
I have used XMLDataToString = DataSetForXML.GetXml() to get an XML string from a dataset. I am looking for a way to create a dataset from this XML string. I tried...
3
by: David P. Donahue | last post by:
I'm re-writing an application in C# that was originally written in Delphi 7. The heart of the application is a DataSet displayed in a DataGrid. One of the main functions of the previous...
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
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,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.