473,387 Members | 3,750 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,387 software developers and data experts.

dataset usage

i am tring to generate a single dataset which contains
all records from a table and then create subsets of this
dataset which can fill certail controls and i am not sure
of the best method eg. dataview, select etc.

can someone help..
Nov 18 '05 #1
1 1353
There are a lot of different possibilities here and without more info, it is
hard to give a good answer. But I will try to give a couple of
recommendations.

First, I would ask why you are generating a dataset with all of your table
data. Is all of this data used on the page? If not, I would shrink the
dataset to just what is needed - reading the database just isn't that costly
unless the queries are extremely nasty.

Second, I would apply a DataView to the DataTable to get the subset of
records you are interested in. A DataView does not take a copy of the
data - rather it is just an alternate way to view the data in the DataTable.
So DataViews are lightweight. And in my experience, they are pretty fast
although I would suspect they would slow down if the DataTable is large.
You can also bind controls to DataViews.

Jeff

"david" <li*@dodo.com.au> wrote in message
news:02****************************@phx.gbl...
i am tring to generate a single dataset which contains
all records from a table and then create subsets of this
dataset which can fill certail controls and i am not sure
of the best method eg. dataview, select etc.

can someone help..

Nov 18 '05 #2

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

Similar topics

3
by: Derrick | last post by:
I am reading in xml files that equate to sql tables, via XmlDataDocument, and then operating on the DataSet. With the most simple app that just loads the xml doc, I see the memory footprint of the...
10
by: localhost | last post by:
I have a static, thread-safe class with a DataSet as a property. When the class is instanced into an object, some callers add rows to a DataTable in the DataSet. Other callers read the DataSet. ...
3
by: ALI-R | last post by:
in the following statement why we have to give Dataset a name? what is it used for? Dataset myDataset =new Dataset("name_of_Dataset"); what is "name_of_Dataset" and what is its usage? thanks
2
by: Frank Rizzo | last post by:
Hello, My app reads a large number of records (about 50MB, according to Task Manager) into a Dataset. What is the proper clean up method when I am done with the dataset? There is...
11
by: scorpion53061 | last post by:
Well I had a way to write an array to an excel spreadsheet but on a huge time critical run it failed iwth the dreaded HRESULT: 0x800A03EC error. It worked fine when i sampled the data to go in but...
2
by: anand | last post by:
hi, i am fetching data from database using dataadaptor and filling up a dataset. i checked memory usage of the app, and it consumes 50 Mb of RAM for the given amount of data. that is, i checked...
2
by: -=JLK=- | last post by:
All, I'm looking for opinions on the best way to accomplish a given task. Here is the senario: I have a Data Warehouse that I need to update with information that has been loaded into a...
2
by: Walt | last post by:
I have a small xml document that I bring into my application by reading the xml file with a dataset: Dim ds As New DataSet ds.ReadXml(fileName) ' Do some work with the tables in the dataset...
0
by: c.w.browne | last post by:
Hi, Ive had a bit of a look around for other people with this problem and cant find anything that solves it in my case, so I'm afraid im going to have to bother you all with a post of my own. ...
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.