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
Saving memory used by TZQuery
- EgonHugeist
- Zeos Project Manager
- Posts: 1936
- Joined: 31.03.2011, 22:38
Re: Saving memory used by TZQuery
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)
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/
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/
Re: Saving memory used by TZQuery
Many thanks! Very cool, I will try 7.2