Re: Saving DataTable to session vs saving a Custom object.

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: John Kandell (someone_at_home.now)
Date: 12/07/04


Date: Mon, 6 Dec 2004 22:25:01 -0500

Hi

The data is unique per user.
And we are using SQL server as storage.

Also, the requirement is to keep the HTML as small as possible, so, we can't
use ViewState either.

John

"Matt Berther" <mberther@hotmail.com> wrote in message
news:6573723632379608441390505@news.microsoft.com...
> Hello John,
>
> Does it have to be saved in Session? Is the data unique per user? Or would
> HttpContext.Application or HttpContext.Cache be a better spot for it?
>
> Large objects in session dont scale very well...
>
> --
> Matt Berther
> http://www.mattberther.com
>
> > Hi,
> >
> > Would someone be able to shed some light on what is the cost of saving
> > a DataTable to session vs saving a custom object of the same data.
> >
> > For example, let's say I had a DataTable with 1000 records and each
> > record had 10 columns, how much extra cost is involved in saving that
> > vs, a custom object with 10 get/set properties in a ArrayList holding
> > 1000 instances of the object with the same data?
> >
> > Looking forward to your response.
> >
> > John
> >
>
>



Relevant Pages

  • Re: Saving DataTable to session vs saving a Custom object.
    ... I don't think the session you refer to will actually result in any ... The biggest overhead you'd see in memory usage would be the ... > DataTable to session vs saving a custom object of the same data. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Saving DataTable to session vs saving a Custom object.
    ... Large objects in session dont scale very well... ... > a DataTable to session vs saving a custom object of the same data. ... how much extra cost is involved in saving that ...
    (microsoft.public.dotnet.framework.aspnet)
  • Saving DataTable to session vs saving a Custom object.
    ... DataTable to session vs saving a custom object of the same data. ... had 10 columns, how much extra cost is involved in saving that vs, a custom ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: A Toot and a Snore in 74 is a rare bootleg alb...
    ... First mentioned by Lennon in a 1975 ... Loving John -- and it gained wider prominence when McCartney made ... reference to the session in a 1997 interview. ...
    (rec.music.beatles)
  • Re: Web Farms and session handling
    ... > Hi John, ... > with our own custom module, that may help implement our own session ... your current server should hardly notice it. ... > |> Our setup is with a web farm, one ldap server and a database cluster. ...
    (microsoft.public.dotnet.framework.aspnet)