Click here to Skip to main content
16,007,126 members
Home / Discussions / Database
   

Database

 
GeneralRe: So I know this guy... Pin
Jerry Hammond1-May-07 18:00
Jerry Hammond1-May-07 18:00 
GeneralRe: So I know this guy... Pin
Colin Angus Mackay2-May-07 0:00
Colin Angus Mackay2-May-07 0:00 
QuestionSqlServer 2005 File Permission Issues Pin
Aaron VanWieren1-May-07 11:19
Aaron VanWieren1-May-07 11:19 
QuestionXML-document into SQL-Column and back Pin
chrstn1-May-07 10:45
chrstn1-May-07 10:45 
QuestionSQL 2000 won't import data Pin
Bryan Bradford1-May-07 7:07
Bryan Bradford1-May-07 7:07 
AnswerRe: SQL 2000 won't import data Pin
Marcus J. Smith1-May-07 8:40
professionalMarcus J. Smith1-May-07 8:40 
GeneralRe: SQL 2000 won't import data Pin
Bryan Bradford1-May-07 11:29
Bryan Bradford1-May-07 11:29 
QuestionHow can I minimize a datatable's memory usage? Pin
Marcus J. Smith1-May-07 6:59
professionalMarcus J. Smith1-May-07 6:59 
I am attempting to improve a current VB.NET 2.0 program that originated in VB6 with disconnected recordsets and arrays by replacing the loops that look for matches with a DataTable.Find call. This seems to work all well and good except that the current and old program both use some time of in memory storage until it is time to write the output to a file.

The in memory storage was a disconnected recordset and is now...you guessed it...a datatable. I noticed that the program memory usage with the recordset stayed around 20 K while the program with the datatable seems to increase with each record dealt with so when the program has read in 500 K records it is using 700 K memory. Why is this and is there a way for me to minimize the datatable memory impact? I want to avoid using the VB6 style.

One tidbit - I currently do not have the option to utilize a table in SQL for this.


CleaKO

"I think you'll be okay here, they have a thin candy shell. 'Surprised you didn't know that.'" - Tommy (Tommy Boy)
"Fill it up again! Fill it up again! Once it hits your lips, it's so good!" - Frank the Tank (Old School)

AnswerRe: How can I minimize a datatable's memory usage? Pin
kubben1-May-07 7:21
kubben1-May-07 7:21 
GeneralRe: How can I minimize a datatable's memory usage? Pin
Marcus J. Smith1-May-07 8:01
professionalMarcus J. Smith1-May-07 8:01 
GeneralRe: How can I minimize a datatable's memory usage? Pin
kubben1-May-07 8:04
kubben1-May-07 8:04 
GeneralRe: How can I minimize a datatable's memory usage? Pin
Marcus J. Smith1-May-07 8:17
professionalMarcus J. Smith1-May-07 8:17 
GeneralRe: How can I minimize a datatable's memory usage? Pin
kubben1-May-07 8:26
kubben1-May-07 8:26 
GeneralRe: How can I minimize a datatable's memory usage? Pin
Marcus J. Smith2-May-07 10:08
professionalMarcus J. Smith2-May-07 10:08 
GeneralRe: How can I minimize a datatable's memory usage? Pin
kubben2-May-07 10:28
kubben2-May-07 10:28 
GeneralRe: How can I minimize a datatable's memory usage? Pin
Marcus J. Smith2-May-07 10:52
professionalMarcus J. Smith2-May-07 10:52 
GeneralRe: How can I minimize a datatable's memory usage? Pin
kubben2-May-07 12:37
kubben2-May-07 12:37 
QuestionO/R Mapping Recomendations Pin
Tristan Rhodes1-May-07 6:38
Tristan Rhodes1-May-07 6:38 
AnswerRe: O/R Mapping Recomendations Pin
Pete O'Hanlon1-May-07 22:42
mvePete O'Hanlon1-May-07 22:42 
Questionaccess to sql server Pin
Tamimi - Code1-May-07 3:11
Tamimi - Code1-May-07 3:11 
AnswerRe: access to sql server Pin
Colin Angus Mackay1-May-07 3:55
Colin Angus Mackay1-May-07 3:55 
Questionplease help me in this very urgent Pin
Vinay Dornala1-May-07 2:46
Vinay Dornala1-May-07 2:46 
AnswerRe: please help me in this very urgent Pin
Colin Angus Mackay1-May-07 4:04
Colin Angus Mackay1-May-07 4:04 
QuestionHow to get the unique key of a column in datatable? Pin
lior_s1-May-07 1:54
lior_s1-May-07 1:54 
AnswerRe: How to get the unique key of a column in datatable? Pin
lior_s1-May-07 21:20
lior_s1-May-07 21:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.