Memory Problem each TMyDataset 8 MB
Memory Problem each TMyDataset 8 MB
I am working with the C++ Builder 6 and MyDac Component 2.0.
After my application is started 170MB memory are used and from this 170MB use the TMyDataSet components 125MB. I don't have a huge project and I want to ask if 8MB for each TMyDataSet is normal?
I tested it in that way that I set all TMyDataSet components incative. Start the debugger and step over each line like
TMyDataSet->Active = true;
And after each Active = true; 8MB are gone to my app.
It is a small database with few tables and if you have e.g. 20 TMyDatSet it would mean that the application needs only for Db connection 160MB which will not work if you want to create a app for standard business with 50-60 tables.
Thanks for your help
After my application is started 170MB memory are used and from this 170MB use the TMyDataSet components 125MB. I don't have a huge project and I want to ask if 8MB for each TMyDataSet is normal?
I tested it in that way that I set all TMyDataSet components incative. Start the debugger and step over each line like
TMyDataSet->Active = true;
And after each Active = true; 8MB are gone to my app.
It is a small database with few tables and if you have e.g. 20 TMyDatSet it would mean that the application needs only for Db connection 160MB which will not work if you want to create a app for standard business with 50-60 tables.
Thanks for your help
Re: Memory Problem each TMyDataset 8 MB
Memory usage depends on the data retrieved on client side. Please specify if the volume of used memory is reduced if set LIMIT 0 in the queries.
Thanks a lot! last question. Why depends the acllocation of memory not by the number of fields which I have defined in the filed list.
For example the table has 20 Fields and 18 of them are not needed (typically a listbutton) and it doensn't matter if I define in the field list the two or all fields.
For example the table has 20 Fields and 18 of them are not needed (typically a listbutton) and it doensn't matter if I define in the field list the two or all fields.