Re: Keeping a DataView in Memory

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi William,

Thanks again for the response. I'll make a note of that.

Also - I'll be picking up the book you wrote that's on the market now as I'm
sure it'll be a huge help!

Merry Christmas!

Kind regards - Fred

"William Vaughn (MVP)" <billva@xxxxxxxxxxxxxxx> wrote in message
news:e%23fhdmJYJHA.4072@xxxxxxxxxxxxxxxxxxxxxxx
Of course if you've been reading my books you would know that the impact
of a reasonably-constructed DataSet (of <1000 rows) is small. Yes, it
should be kept in memory if you can use it to avoid more round trips.

And no, I'm not working on an ADO.NET 3.5 book 'cause by the time it was
printed MS will have abandoned 3.5 and moved to more fun stuff for another
18 months (or less). I'm not a fan of LINQ or the EF so it's not likely
that I'll be doing another. The 7th edition took about 30 months to write.
I can't afford to donate that kind of time any more.

--
__________________________________________________________________________
William R. Vaughn
President and Founder Beta V Corporation
Author, Mentor, Dad, Grandpa
Microsoft MVP
(425) 556-9205 (Pacific time)
Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition)
http://betav.com/blog/billva
http://betav.com
____________________________________________________________________________________________



"Fred Block" <fblock_no_spamming@xxxxxxxxx> wrote in message
news:uwMMjUIYJHA.2620@xxxxxxxxxxxxxxxxxxxxxxx
Hi and thanks!

Being new to this may I ask if I "should" keep the DataSet in memory or
is that not needed after the table is created? I'm not sure of the
pecking order of these objects.

BTW - I own older books if yours and they're "awesome". Are you working
on one for ADO.NET 3.5?

Thanks again!

Kind regards - Fred


"William Vaughn (MVP)" <billva@xxxxxxxxxxxxxxx> wrote in message
news:%238OXeAIYJHA.5336@xxxxxxxxxxxxxxxxxxxxxxx
A DataView is simply a filtered "view" of a DataTable. As long as the
DataTable is not destroyed, it remains in memory.

--
__________________________________________________________________________
William R. Vaughn
President and Founder Beta V Corporation
Author, Mentor, Dad, Grandpa
Microsoft MVP
(425) 556-9205 (Pacific time)
Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition)
http://betav.com/blog/billva
http://betav.com
____________________________________________________________________________________________



"Fred Block" <fblock_no_spamming@xxxxxxxxx> wrote in message
news:#DwuCRAYJHA.256@xxxxxxxxxxxxxxxxxxxxxxx
Hi All,

What is the best way to keep a DataView in memory? I need to access it
often (using "Find" to get data from it repeatedly) and then process
other data based on what I pull from it. I'm thinking a class but I'm
new to ADO.NET and OOP (for the most part). I was also thinking this
may give better performance than repeated calls using a stored
procedure.

I thought at first module level variables...

Also - Will I need to keep the DataSet and/or DataTable open too used
to ?

All thoughts and ideas are greatly appreciated with many thanks in
advance!

Kind regards - Fred





.



Relevant Pages

  • Re: Keeping a DataView in Memory
    ... Of course if you've been reading my books you would know that the impact of a reasonably-constructed DataSet is small. ... 556-9205 (Pacific time) ... Being new to this may I ask if I "should" keep the DataSet in memory or is that not needed after the table is created? ... Kind regards - Fred ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Total kernel freeze under 2.6.1
    ... From memory it did this all over the place with regards to sound, ... Device Drivers - ATA/ATAPI/MFM/RLL ... with kind regards, ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • RE: physical memory
    ... Kind Regards, ... Subject: physical memory ... Bu elektronik posta ve onunla iletilen butun dosyalar sadece gondericisi ... TURKCELL bu mesajin icerdigi bilgilerin dogrulugu veya eksiksiz oldugu ...
    (RedHat)
  • Re: Excel 2000 large files losing formulars...
    ... Is there an error message? ... Kind regards, ... just don't work anymore, and they can't add new ones either. ... We're on Win2K, 1GB memory. ...
    (microsoft.public.excel)
  • Re: web server
    ... Brian Chadwick wrote: ... Kind regards, ... memory, httpd will not have the time to write to it's own error_log. ... the process will be killed by the kernel. ...
    (Fedora)