PC Review


Reply
Thread Tools Rate Thread

Dataset confusion?

 
 
=?Utf-8?B?c2VyZ2UgY2FsZGVyYXJh?=
Guest
Posts: n/a
 
      21st Jul 2005
Dear all,

I have read in many places that datasset are great for retriving data that
needs to be updated afterwards as they are working as discinnected mode.
But then an other topic comes is the fact that they are expensive in memory...

So now my question is that:
if you have a huge amount of data issu from a single table or linked
tables, you know that you need to make records update at a certain point. At
first Dataset is the proper way of doing it, but when people says that
dataset are expensive in memory what to do then, or when to use it ?

Thanks to clear upmy mind on that
Regards
serge
 
Reply With Quote
 
 
 
 
Marina
Guest
Posts: n/a
 
      21st Jul 2005
If you have large amounts of data, storing it in memory is going to be
expensive no matter what. That doesn't mean that datasets are ridiculously
more expensive as far as memory goes. It's just that the comment usually
takes place in the context of someone saying they are retriving 50K records
or something and storing it in a dataset.

"serge calderara" <(E-Mail Removed)> wrote in
message news:84C1849F-57BC-48EB-AE84-(E-Mail Removed)...
> Dear all,
>
> I have read in many places that datasset are great for retriving data that
> needs to be updated afterwards as they are working as discinnected mode.
> But then an other topic comes is the fact that they are expensive in
> memory...
>
> So now my question is that:
> if you have a huge amount of data issu from a single table or linked
> tables, you know that you need to make records update at a certain point.
> At
> first Dataset is the proper way of doing it, but when people says that
> dataset are expensive in memory what to do then, or when to use it ?
>
> Thanks to clear upmy mind on that
> Regards
> serge



 
Reply With Quote
 
Robbe Morris [C# MVP]
Guest
Posts: n/a
 
      21st Jul 2005
DataSets are like mini databases in memory. You can do all sorts
of things with "if necessary" such as parent/child relationships, cross
table
relationships (a DataSet holds one or more DataTable), and various other
items.

In a desktop app, they can work well for databinding to grids, lists, etc.
particularly
if you need a do/undo mechanism prior to commiting all the changes to the
database. I generally only utilize DataSets for managing database updates
when
I want to work with a whole set of related records. Otherwise, I stick with
the standard approach of calling stored procedures on individual records
using my own custom code.

That said...

If you are simply querying records for display, you'll want to look at
filling
a DataTable or just using a Reader. Far less overhead.

--
2004 and 2005 Microsoft MVP C#
Robbe Morris
http://www.masterado.net

Earn $$$ money answering .NET Framework
messageboard posts at EggHeadCafe.com.
http://www.eggheadcafe.com/forums/merit.asp



"serge calderara" <(E-Mail Removed)> wrote in
message news:84C1849F-57BC-48EB-AE84-(E-Mail Removed)...
> Dear all,
>
> I have read in many places that datasset are great for retriving data that
> needs to be updated afterwards as they are working as discinnected mode.
> But then an other topic comes is the fact that they are expensive in
> memory...
>
> So now my question is that:
> if you have a huge amount of data issu from a single table or linked
> tables, you know that you need to make records update at a certain point.
> At
> first Dataset is the proper way of doing it, but when people says that
> dataset are expensive in memory what to do then, or when to use it ?
>
> Thanks to clear upmy mind on that
> Regards
> serge



 
Reply With Quote
 
=?Utf-8?B?c2VyZ2UgY2FsZGVyYXJh?=
Guest
Posts: n/a
 
      21st Jul 2005
thanks marina,

So whatever the amount of records as soon as we know that update of recrds
will go soon or later, dataset object is the only way ...

:-)

"Marina" wrote:

> If you have large amounts of data, storing it in memory is going to be
> expensive no matter what. That doesn't mean that datasets are ridiculously
> more expensive as far as memory goes. It's just that the comment usually
> takes place in the context of someone saying they are retriving 50K records
> or something and storing it in a dataset.
>
> "serge calderara" <(E-Mail Removed)> wrote in
> message news:84C1849F-57BC-48EB-AE84-(E-Mail Removed)...
> > Dear all,
> >
> > I have read in many places that datasset are great for retriving data that
> > needs to be updated afterwards as they are working as discinnected mode.
> > But then an other topic comes is the fact that they are expensive in
> > memory...
> >
> > So now my question is that:
> > if you have a huge amount of data issu from a single table or linked
> > tables, you know that you need to make records update at a certain point.
> > At
> > first Dataset is the proper way of doing it, but when people says that
> > dataset are expensive in memory what to do then, or when to use it ?
> >
> > Thanks to clear upmy mind on that
> > Regards
> > serge

>
>
>

 
Reply With Quote
 
=?Utf-8?B?S2VycnkgTW9vcm1hbg==?=
Guest
Posts: n/a
 
      21st Jul 2005
serge,

No, datasets are not required for updating of records.

Any technique that handles concurrency issues will work. Of course, datasets
have some built-in methods of handling concurrency that you can take
advantage of.

Kerry Moorman


"serge calderara" wrote:

> thanks marina,
>
> So whatever the amount of records as soon as we know that update of recrds
> will go soon or later, dataset object is the only way ...
>
> :-)
>
> "Marina" wrote:
>
> > If you have large amounts of data, storing it in memory is going to be
> > expensive no matter what. That doesn't mean that datasets are ridiculously
> > more expensive as far as memory goes. It's just that the comment usually
> > takes place in the context of someone saying they are retriving 50K records
> > or something and storing it in a dataset.
> >
> > "serge calderara" <(E-Mail Removed)> wrote in
> > message news:84C1849F-57BC-48EB-AE84-(E-Mail Removed)...
> > > Dear all,
> > >
> > > I have read in many places that datasset are great for retriving data that
> > > needs to be updated afterwards as they are working as discinnected mode.
> > > But then an other topic comes is the fact that they are expensive in
> > > memory...
> > >
> > > So now my question is that:
> > > if you have a huge amount of data issu from a single table or linked
> > > tables, you know that you need to make records update at a certain point.
> > > At
> > > first Dataset is the proper way of doing it, but when people says that
> > > dataset are expensive in memory what to do then, or when to use it ?
> > >
> > > Thanks to clear upmy mind on that
> > > Regards
> > > serge

> >
> >
> >

 
Reply With Quote
 
=?Utf-8?B?c2VyZ2UgY2FsZGVyYXJh?=
Guest
Posts: n/a
 
      22nd Jul 2005
Yes that was what I was in mind when saying that they are the only way based
on the big adavtage they gets such as updating only what has been change and
also the fact that they handle by themselves the connection object when
needed.

"Kerry Moorman" wrote:

> serge,
>
> No, datasets are not required for updating of records.
>
> Any technique that handles concurrency issues will work. Of course, datasets
> have some built-in methods of handling concurrency that you can take
> advantage of.
>
> Kerry Moorman
>
>
> "serge calderara" wrote:
>
> > thanks marina,
> >
> > So whatever the amount of records as soon as we know that update of recrds
> > will go soon or later, dataset object is the only way ...
> >
> > :-)
> >
> > "Marina" wrote:
> >
> > > If you have large amounts of data, storing it in memory is going to be
> > > expensive no matter what. That doesn't mean that datasets are ridiculously
> > > more expensive as far as memory goes. It's just that the comment usually
> > > takes place in the context of someone saying they are retriving 50K records
> > > or something and storing it in a dataset.
> > >
> > > "serge calderara" <(E-Mail Removed)> wrote in
> > > message news:84C1849F-57BC-48EB-AE84-(E-Mail Removed)...
> > > > Dear all,
> > > >
> > > > I have read in many places that datasset are great for retriving data that
> > > > needs to be updated afterwards as they are working as discinnected mode.
> > > > But then an other topic comes is the fact that they are expensive in
> > > > memory...
> > > >
> > > > So now my question is that:
> > > > if you have a huge amount of data issu from a single table or linked
> > > > tables, you know that you need to make records update at a certain point.
> > > > At
> > > > first Dataset is the proper way of doing it, but when people says that
> > > > dataset are expensive in memory what to do then, or when to use it ?
> > > >
> > > > Thanks to clear upmy mind on that
> > > > Regards
> > > > serge
> > >
> > >
> > >

 
Reply With Quote
 
Sahil Malik [MVP]
Guest
Posts: n/a
 
      25th Jul 2005
Serge,

The other choice is to use Custom business objects.

Here is a good discussion on Custom Business Objects versus DataSets -

http://codebetter.com/blogs/sahil.ma.../07/64172.aspx

Saving disconnected hierarchical data is going to be a pain no matter if you
use Datasets or Business objects, but that isn't the fault of either
datasets or BOs.

- Sahil Malik [MVP]
ADO.NET 2.0 book -
http://codebetter.com/blogs/sahil.ma.../13/63199.aspx
----------------------------------------------------------------------------





"serge calderara" <(E-Mail Removed)> wrote in
message news:84C1849F-57BC-48EB-AE84-(E-Mail Removed)...
> Dear all,
>
> I have read in many places that datasset are great for retriving data that
> needs to be updated afterwards as they are working as discinnected mode.
> But then an other topic comes is the fact that they are expensive in
> memory...
>
> So now my question is that:
> if you have a huge amount of data issu from a single table or linked
> tables, you know that you need to make records update at a certain point.
> At
> first Dataset is the proper way of doing it, but when people says that
> dataset are expensive in memory what to do then, or when to use it ?
>
> Thanks to clear upmy mind on that
> Regards
> serge



 
Reply With Quote
 
Cor Ligthert [MVP]
Guest
Posts: n/a
 
      25th Jul 2005
Serge,

As in any OOP solution there is a little bit overhead, that can be gained
not using that. (Mostly the effect is loosed again by the complex methods
that should be used to gain that)

However, it is in my opinion a fool who wants in 2005 on a windows based
system to win some bytes.

A dataset is almost nothing more than a collection of collections that holds
references to objects.
There are some values in it by instance for the name of the dataset itself.

Just my opinion

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
SelectionBox + dataset confusion sweetiecakes Microsoft C# .NET 3 23rd Apr 2008 07:28 PM
Dataset confusion Brad Microsoft ADO .NET 2 24th Aug 2004 01:44 PM
Typed dataset confusion Rob Richardson Microsoft VB .NET 2 22nd Jan 2004 08:00 AM
Typed DataSet confusion Rob Richardson Microsoft ADO .NET 4 22nd Jan 2004 05:48 AM
Re: Dataset confusion/problems William \(Bill\) Vaughn Microsoft ADO .NET 0 1st Sep 2003 01:23 AM


Features
 

Advertising
 

Newsgroups
 


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