How to prevent Delphi ADO from loading the entire table into memory?

前端 未结 7 2261
后悔当初
后悔当初 2021-02-09 01:22

I am not a Delphi programmer, but I I got an old Delphi 7 application that I need to fix and it is using ADO.

The database table (MS Accesss) contains +100,000 rows and

7条回答
  •  故里飘歌
    2021-02-09 01:42

    This article is BDE specific, but applies to ADO or most client data access libraries.

    http://dn.codegear.com/article/28160

    I would recommend using TADODataSet (it's "closer" to the ADO layer than TADOQuery) and selecting only the data the client needs by providing a custom search form (date range, list of specific items, etc)

    Good luck

提交回复
热议问题