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

Dataset disconnected arch and memory

Hi

When I load a dataset with data obtained from a db, the dataset is stored in the memory of the client system. AFAIK the size of the dataset (which implicitly mean the number of rows that can be inserted in the dataset) is limited by the client system's memory.

What happens when the dataset exceeds this limit? I suppose Windows will start using the virtual memory. But what will happen if even this is surpassed? Is there any way to know how much memory I could use beforehand so that I can use that much memory only

Thanks a lot

Benn

Nov 15 '05 #1
3 2247
Hi Benny,

How big your dataset will be?

It will be impractical keep a huge dataset in memory, not only this consume
a lot of resources on the client machine but working with it will be also
resource intensive, remember that a database engine is an optimized tool to
handle big quantities of data and perform operations on them.
In this case would be more efficient to hit the DB several times and get
only the subset needed at the moment than gets all the data and manipulate
it from memory.
Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Benny" <an*******@discussions.microsoft.com> wrote in message
news:62**********************************@microsof t.com...
Hi,

When I load a dataset with data obtained from a db, the dataset is stored in the memory of the client system. AFAIK the size of the dataset (which
implicitly mean the number of rows that can be inserted in the dataset) is
limited by the client system's memory.
What happens when the dataset exceeds this limit? I suppose Windows will start using the virtual memory. But what will happen if even this is
surpassed? Is there any way to know how much memory I could use beforehand
so that I can use that much memory only?
Thanks a lot!

Benny

Nov 15 '05 #2
This is right. But nonetheless, I was just wondering what the results would have been. Any idea

Benn

----- Ignacio Machin ( .NET/ C# MVP ) wrote: ----

Hi Benny

How big your dataset will be

It will be impractical keep a huge dataset in memory, not only this consum
a lot of resources on the client machine but working with it will be als
resource intensive, remember that a database engine is an optimized tool t
handle big quantities of data and perform operations on them
In this case would be more efficient to hit the DB several times and ge
only the subset needed at the moment than gets all the data and manipulat
it from memory
Cheers

--
Ignacio Machin
ignacio.machin AT dot.state.fl.u
Florida Department Of Transportatio

"Benny" <an*******@discussions.microsoft.com> wrote in messag
news:62**********************************@microsof t.com..
Hi
When I load a dataset with data obtained from a db, the dataset is store in the memory of the client system. AFAIK the size of the dataset (whic
implicitly mean the number of rows that can be inserted in the dataset) i
limited by the client system's memory What happens when the dataset exceeds this limit? I suppose Windows wil start using the virtual memory. But what will happen if even this i
surpassed? Is there any way to know how much memory I could use beforehan
so that I can use that much memory only Thanks a lot
Benn

Nov 15 '05 #3
I'd expect the Fill method to throw an exception when you go to fill it with
GBs of data. In a perfect world maybe you'd get OutOfMemoryException, but
who knows. It should be easy to test: create a db table with a ridiculous
number of rows and fat columns and then Fill a dataset with the whole table.

"Benny" <an*******@discussions.microsoft.com> wrote in message
news:9C**********************************@microsof t.com...
This is right. But nonetheless, I was just wondering what the results would have been. Any idea?
Benny

----- Ignacio Machin ( .NET/ C# MVP ) wrote: -----

Hi Benny,

How big your dataset will be?

It will be impractical keep a huge dataset in memory, not only this consume a lot of resources on the client machine but working with it will be also resource intensive, remember that a database engine is an optimized tool to handle big quantities of data and perform operations on them.
In this case would be more efficient to hit the DB several times and get only the subset needed at the moment than gets all the data and manipulate it from memory.
Cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

"Benny" <an*******@discussions.microsoft.com> wrote in message
news:62**********************************@microsof t.com...
> Hi,
>> When I load a dataset with data obtained from a db, the dataset is
stored
in the memory of the client system. AFAIK the size of the dataset (which implicitly mean the number of rows that can be inserted in the dataset) is limited by the client system's memory. >> What happens when the dataset exceeds this limit? I suppose
Windows will
start using the virtual memory. But what will happen if even this is
surpassed? Is there any way to know how much memory I could use beforehand so that I can use that much memory only? >> Thanks a lot!
>> Benny

>

Nov 15 '05 #4

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

Similar topics

4
by: geilen | last post by:
I'm trying to use a dataset returned from a web service in an unmanaged C++ (MFC) client. The dataset is returned as a BSTR, and I'm having trouble reading the BSTR into an XML document for...
1
by: rawCoder | last post by:
Hi All Is there a way to Execute a query (possibly including two tables and joins) on a totally disconnected dataset. By 'Totally Disconnted' , I mean there is no DB and there is no DBConnection...
4
by: Kenny | last post by:
Hello all, I am wondering about the memory arrangement in C#. If I am going to load, say, 20000 data rows from about 20 tables at once, where will be the data stored in my machine? All save on...
3
by: AC | last post by:
Running VS.NET 2003 Enterprise Arch on WinXP Pro SP1 with a P4-2.4Ghz, 760MB+ RAM, and 10+GB free disk space. Laptop is part of a domain. When working on a web project connected at the office,...
3
by: Wance | last post by:
Hi everybody, I have datatable and stored in dataset. The dataset Never connect to datasource before. How can I move mydata in dataset into the table in data souce? For instance my table say it ...
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...
3
by: Venkat Venkataramanan | last post by:
Hello Let's say I have the following three table 1. Customer (100,000 rows 2. Invoice (1,000,000 rows 3. Detail (10,000,000 rows) 4. Product (100 rows an Customer has a 1-M...
10
by: Rich | last post by:
Hello, I have to read and write around one million records from an external data source to Sql Server2k every night. That's a lot of I/O. I am using VB6 for this (takes hours). I am...
5
by: Crash | last post by:
Is there any sort of query engine for use with .NET datasets? I have an application that has a very small disconnected client database - 2 dozen tables, largest table @100 rows. If loaded into a...
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
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,...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
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...

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.