![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, We do ADO.NEt programming only on the time-to time basis, so we don't have the real deep experience in this matter. Every where in MSDN or other documentation I can read that DataTable/DataSet is designated to keeping disconnected data from a database. So far, so good. But I have never seen any recommendation about how (or when) to control the size of these objects. For example let's say we have a table that can be small at the beginning and we keep this small amount of records in a disconnected DataTable object. After several months the size of the table in a SQL database can grow to several-docents of thousand records. How should the client side application respond to this change, or, when we should start to worry about the size of fetched data? I know it depends from available memory and so on.. But anyway, what is your typical size of DataTable object (MBs, number of records.). Thanks, Lubomir |
#3
| |||
| |||
|
#4
| |||
| |||
|
#5
| |||
| |||
|
|
As Cor said, you should load only data you need for a certain process, process it and store it back. There is no need to keep enormous amounts of data in DataSet. -- Miha Markic [MVP C#, INETA Country Leader for Slovenia] RightHand .NET consulting & development www.rthand.com Blog: http://cs.rthand.com/blogs/blog_with_righthand/ |
#6
| |||
| |||
|
|
Hi, Thanks for answers. Yes, we are using filters to fetch the data from database. However we are concerned that when database will be loaded with real data, the amount of fetched records will be too big down the road. Maybe we are too much worried on the other hand. What I was looking for is to get the picture about the size of the DataTable used by other, more experienced database developers. In our case I think the disconnected datatable will not have more than 100 000 records with 8-10 columns - in teh worst scenario. Most probably it will be much less. Regards, Lubomir "Miha Markic" wrote: As Cor said, you should load only data you need for a certain process, process it and store it back. There is no need to keep enormous amounts of data in DataSet. -- Miha Markic [MVP C#, INETA Country Leader for Slovenia] RightHand .NET consulting & development www.rthand.com Blog: http://cs.rthand.com/blogs/blog_with_righthand/ |
#7
| |||
| |||
|
#8
| |||
| |||
|
|
Hi, Thanks for answers. Yes, we are using filters to fetch the data from database. However we are concerned that when database will be loaded with real data, the amount of fetched records will be too big down the road. Maybe we are too much worried on the other hand. What I was looking for is to get the picture about the size of the DataTable used by other, more experienced database developers. In our case I think the disconnected datatable will not have more than 100 000 records with 8-10 columns - in teh worst scenario. Most probably it will be much less. Regards, Lubomir "Miha Markic" wrote: As Cor said, you should load only data you need for a certain process, process it and store it back. There is no need to keep enormous amounts of data in DataSet. -- Miha Markic [MVP C#, INETA Country Leader for Slovenia] RightHand .NET consulting & development www.rthand.com Blog: http://cs.rthand.com/blogs/blog_with_righthand/ |
#9
| |||
| |||
|
#10
| |||
| |||
|
|
Hi, Thanks for answers. Yes, we are using filters to fetch the data from database. However we are concerned that when database will be loaded with real data, the amount of fetched records will be too big down the road. Maybe we are too much worried on the other hand. What I was looking for is to get the picture about the size of the DataTable used by other, more experienced database developers. In our case I think the disconnected datatable will not have more than 100 000 records with 8-10 columns - in teh worst scenario. Most probably it will be much less. Regards, Lubomir "Miha Markic" wrote: As Cor said, you should load only data you need for a certain process, process it and store it back. There is no need to keep enormous amounts of data in DataSet. -- Miha Markic [MVP C#, INETA Country Leader for Slovenia] RightHand .NET consulting & development www.rthand.com Blog: http://cs.rthand.com/blogs/blog_with_righthand/ |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |