PC Review


Reply
Thread Tools Rate Thread

Data loaded into DataSet

 
 
=?Utf-8?B?S2Vubnk=?=
Guest
Posts: n/a
 
      17th Sep 2005
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 RAM? Or a portion of
them is fetched to RAM for processing?

Thanks.
 
Reply With Quote
 
 
 
 
Cor Ligthert [MVP]
Guest
Posts: n/a
 
      17th Sep 2005
Kenny,

The datarows are loaded in memory, where that is depends on your memory
management, however you cannot influence that in your dataset.

(By the way, probably nobody will find this a good idea what you try to do.
There is a lot to tell why that is not a good idea, however start thinking
about a not wanted power down of the computer or any other reason it goes
down).

I hope this helps,

Cor


 
Reply With Quote
 
=?Utf-8?B?S2Vubnk=?=
Guest
Posts: n/a
 
      17th Sep 2005
Cor, Thanks much for your help.

So, how about... I construct a dataset containing tables like what I've put
in my SQL server, then if I wanna view/edit info of one of the records, I
just load the datarows from all tables which are related to it?

There is no need to load all data. All I need to do is construct the entire
table structure in my dataset...

(Please help me on this. Coz I am new to C# programming, and this is the
very first dataset programs I've ever dealt with.)

Thanks much.

"Cor Ligthert [MVP]" wrote:

> Kenny,
>
> The datarows are loaded in memory, where that is depends on your memory
> management, however you cannot influence that in your dataset.
>
> (By the way, probably nobody will find this a good idea what you try to do.
> There is a lot to tell why that is not a good idea, however start thinking
> about a not wanted power down of the computer or any other reason it goes
> down).
>
> I hope this helps,
>
> Cor
>
>
>

 
Reply With Quote
 
Cor Ligthert [MVP]
Guest
Posts: n/a
 
      17th Sep 2005
Kenny,

Try to get only that what is needed by the client in your dataset.
And do needed updates as soon as possible.

However, there is impossible to give a "best" solution. In a webform you
will need another solution than on a PDA and/or on a windowsform.

In all circumstances is a dataset disconnected by the way, which means that
you are self responsable to do the updates.

What everybody almost forever forget is that as soon as you have filled the
dataset in the computer, somebody else can have changed that again. If the
filled data is few, than the change on that is of course much less.

This concept is complete different from the recordset approach.

I hope this gives some ideas

Cor

"Kenny" <(E-Mail Removed)> schreef in bericht
news:A4863246-3ABE-4F65-A731-(E-Mail Removed)...
> Cor, Thanks much for your help.
>
> So, how about... I construct a dataset containing tables like what I've
> put
> in my SQL server, then if I wanna view/edit info of one of the records, I
> just load the datarows from all tables which are related to it?
>
> There is no need to load all data. All I need to do is construct the
> entire
> table structure in my dataset...
>
> (Please help me on this. Coz I am new to C# programming, and this is the
> very first dataset programs I've ever dealt with.)
>
> Thanks much.
>
> "Cor Ligthert [MVP]" wrote:
>
>> Kenny,
>>
>> The datarows are loaded in memory, where that is depends on your memory
>> management, however you cannot influence that in your dataset.
>>
>> (By the way, probably nobody will find this a good idea what you try to
>> do.
>> There is a lot to tell why that is not a good idea, however start
>> thinking
>> about a not wanted power down of the computer or any other reason it goes
>> down).
>>
>> I hope this helps,
>>
>> Cor
>>
>>
>>



 
Reply With Quote
 
=?Utf-8?B?S2Vubnk=?=
Guest
Posts: n/a
 
      18th Sep 2005
Thanks much.

"Cor Ligthert [MVP]" wrote:

> Kenny,
>
> Try to get only that what is needed by the client in your dataset.
> And do needed updates as soon as possible.
>
> However, there is impossible to give a "best" solution. In a webform you
> will need another solution than on a PDA and/or on a windowsform.
>
> In all circumstances is a dataset disconnected by the way, which means that
> you are self responsable to do the updates.
>
> What everybody almost forever forget is that as soon as you have filled the
> dataset in the computer, somebody else can have changed that again. If the
> filled data is few, than the change on that is of course much less.
>
> This concept is complete different from the recordset approach.
>
> I hope this gives some ideas
>
> Cor
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy large data from one dataset to another dataset mina Microsoft VB .NET 1 1st Sep 2009 08:19 PM
Restricting number of records to be loaded to DataSet =?Utf-8?B?TWljaGFsIFJpemVr?= Microsoft Dot NET Compact Framework 6 20th Jun 2006 08:02 AM
Clipboard doesn't clear old data when new data is loaded Sid9 Windows XP General 0 14th Feb 2006 02:24 AM
Unable to cast object of type 'System.Data.DataSet' to Typed DataSet Optimus Microsoft VB .NET 1 31st Jan 2006 06:26 AM
DataSet.HasChanges = True after DataSet Loaded =?Utf-8?B?QXNwbm90?= Microsoft Dot NET Framework Forms 1 26th Sep 2005 09:04 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:35 AM.