Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / October 2004

Tip: Looking for answers? Try searching our database.

ok to use one global dataset?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Max - 26 Oct 2004 17:53 GMT
I use a lot of datagrids in my project, and each time I fill a datagrid I'm
creating a new dataset, adding a datatable (via remote SQL Server) and then
after the datagrid is done with it,  I dispose of the dataset. I'm thinking
why not just maintain ONE global (public) dataset that contains all the
datatables my datagrids will use, and that lasts the life of the
application? The datagrids can just pull tables from this dataset, and I can
control independently whether or not the dataset needs updated by the SQL
Server. Wouldn't that actually be better performance?

-Max
Justin Rogers - 27 Oct 2004 01:29 GMT
DataSet's maintain a slight amount of overhead per DataTable, but that won't
sink you at all. The DataTable and the associated collections is where all
of your data is actually stored (DataColumn actually holds huge arrays of values
for that particular column). Using a single global data-set will probably be a
drastic
improvement in performance for you...

Signature

Justin Rogers
DigiTec Web Consultants, LLC.
Blog: http://weblogs.asp.net/justin_rogers

>I use a lot of datagrids in my project, and each time I fill a datagrid I'm
>creating a new dataset, adding a datatable (via remote SQL Server) and then
[quoted text clipped - 6 lines]
>
> -Max

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.