473,385 Members | 1,641 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,385 software developers and data experts.

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 1081
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.