PC Review


Reply
Thread Tools Rate Thread

decent size datatable

 
 
=?Utf-8?B?cm9kY2hhcg==?=
Guest
Posts: n/a
 
      14th Nov 2007
hey all,
i have a datatable that i'm keeping in application state only to be used by
my datalayer class. i have to cast it from my code-behind and pass it to my
datalayer on each postback.

any suggestions on how to improve this type of overhead? is the answer going
to be to design it differently?

thanks,
rodchar
 
Reply With Quote
 
 
 
 
Nicholas Paldino [.NET/C# MVP]
Guest
Posts: n/a
 
      14th Nov 2007
rodchar,

I wouldn't worry about it. If you are just casting the data table, its
a trivial operation, with virtually no performance overhead. If you were
running this in a tight loop many, many times, I'd understand, but that
doesn't seem to be the case.

That's assuming you are storing session state in memory. Is that the
case?

--
- Nicholas Paldino [.NET/C# MVP]
- (E-Mail Removed)

"rodchar" <(E-Mail Removed)> wrote in message
news:5CEC2EEC-544B-4730-BABF-(E-Mail Removed)...
> hey all,
> i have a datatable that i'm keeping in application state only to be used
> by
> my datalayer class. i have to cast it from my code-behind and pass it to
> my
> datalayer on each postback.
>
> any suggestions on how to improve this type of overhead? is the answer
> going
> to be to design it differently?
>
> thanks,
> rodchar



 
Reply With Quote
 
=?Utf-8?B?TWljaGFlbCBOZW10c2V2?=
Guest
Posts: n/a
 
      14th Nov 2007
I wouldnt worried about this till u start rendering your datatable in grids.
In this case suppose to use simplified storage, like custom collections or
json.

--
WBR, Michael Nemtsev [C# MVP].
Blog: http://spaces.live.com/laflour



"rodchar" wrote:

> hey all,
> i have a datatable that i'm keeping in application state only to be used by
> my datalayer class. i have to cast it from my code-behind and pass it to my
> datalayer on each postback.
>
> any suggestions on how to improve this type of overhead? is the answer going
> to be to design it differently?
>
> thanks,
> rodchar

 
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
The DataTable / DataSet size =?Utf-8?B?THVib21pcg==?= Microsoft ADO .NET 9 22nd Oct 2007 11:00 PM
Max Size for DataTable Bruce D Microsoft VB .NET 1 6th Apr 2005 01:49 PM
restrict size of datatable Daniel Microsoft ADO .NET 1 25th Oct 2004 01:44 PM
Decent data grid at decent price. Corobori Microsoft VB .NET 0 24th Nov 2003 10:33 PM
How can i get the size of the datatable? db_tang Microsoft ADO .NET 0 15th Sep 2003 08:10 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:29 PM.