Saving memory used by TZQuery

The official tester's forum for ZeosLib 7.1. Ask for help, post proposals or solutions.
Post Reply
tobias_de
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: 03.10.2014, 23:22

Saving memory used by TZQuery

Post by tobias_de »

Hello,
my application needs to read memory rows from a database sequentially. Unfortunately, TZQuery caches them all and uses a lot of memory. Is there another component that acts more like a cursor and keeps only one row in memory? Or can I clear the cache from time to time?
Cheers
Tobias
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Re: Saving memory used by TZQuery

Post by EgonHugeist »

You can use the TZReadOnlyQuery instead.
Another suggestion:
Switch to 7.2. The TZReadOnlyQuery support also Unidirectional mode -> one row buffered (((: (Delphi, On FPC they are still allocing Row-by-Row but i didn't check if they free the buffers too)
Best regards, Michael

You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/

Image
tobias_de
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: 03.10.2014, 23:22

Re: Saving memory used by TZQuery

Post by tobias_de »

Many thanks! Very cool, I will try 7.2 :)
Post Reply