I'm not a Delphi programmer, but I have an old Delphi 7 application that I need to fix and it uses ADO.
The database table (MS Access) contains +100,000 rows, and when I set ADOTable.Active = true, it starts loading the entire table into RAM and takes a lot of memory and time.
How can I prevent ADO from loading the entire table? I tried installing MaxRecords, but that does not help.
Basically, all we do is run the program:
// Connect to database DataModule.MyADOConnection.Connected:=true; DataModule.MeasurementsADOTable.MaxRecords:=1; // Open datatables DataModule.MeasurementsADOTable.Active:=true;
After setting Active = true, it starts loading all measurements into RAM and TIME is required!
We use the provider MSDASQL. 1. Perhaps this does not support the MaxRecords property?
How to add some restrictive query to this data object only for "loading TOP 1 * from dimensions"?
delphi ado
Andy
source share