Hi, EgonHugeist.
Ok. I completely forgot about forward only cursors.
Could you tell me what goals/todo for 7.3?
Search found 13 matches
- 13.11.2015, 17:10
- Forum: ZeosLib 7.1 stable Forum
- Topic: Thoughts about TZCachedResultSet implementation
- Replies: 3
- Views: 739
- 13.11.2015, 12:06
- Forum: ZeosLib 7.1 stable Forum
- Topic: Thoughts about TZCachedResultSet implementation
- Replies: 3
- Views: 739
Thoughts about TZCachedResultSet implementation
Why TZCachedResultSet exist =========================== DB native client (library) gets data from the DB server in its own format and places them in a continuous memory block. Client application (Zeoslib) gets pointer to this memory block. App could parse and show data from this memory area, but cou...
- 14.10.2015, 10:41
- Forum: ZeosLib 7.1 stable Forum
- Topic: TZQuery fetch control
- Replies: 12
- Views: 8488
Re: TZQuery fetch control
I try to rewrite our internal Foxpo 2.6 DOS app as 2-tire: client (Lazarus) and server (PostgreSQL). It have table like 'contracts' with now about 32000 records or, for example, 'clients' table. Our stuff is used to be able to view all contracts (as well as other parts of app data ) as (possibly lar...
- 11.10.2015, 18:52
- Forum: ZeosLib 7.1 stable Forum
- Topic: TZQuery fetch control
- Replies: 12
- Views: 8488
Re: TZQuery fetch control
Accordingly the memory consumptions of updateable ResultSets i think a little trick could help: A updatable RS is a cached-RS. This needs to be filled row by row. If this is done and the "native" RS returns Next=False we could close the handle with PGclear. This frees the memory in libpq....
- 11.10.2015, 17:44
- Forum: ZeosLib 7.1 stable Forum
- Topic: TZQuery memory issues (possible leaks)
- Replies: 5
- Views: 2679
Re: TZQuery memory issues (possible leaks)
I have reviewed the source code and could not find any problems with memory allocating/freeing. Each row is represented by a record TZRowBuffer which stores row values in 'Columns: TZByteArray' field by offsets. Strings and blobs not stored directly in row: for each string/blob TZAbstractBlob is cre...
- 01.10.2015, 12:36
- Forum: ZeosLib 7.1 stable Forum
- Topic: TZQuery memory issues (possible leaks)
- Replies: 5
- Views: 2679
Re: TZQuery memory issues (possible leaks)
Some extra debugging with rcUpdatable shown the following. 1. After connection etablished memory usage is 21336K . 2. After receiving data from server into NativeResultSet memory usage is 35612K , so data size is about 14276K . 3. Now we go to the last record of NativeResultSet. During this all reco...
- 29.09.2015, 11:25
- Forum: ZeosLib 7.1 stable Forum
- Topic: TZQuery memory issues (possible leaks)
- Replies: 5
- Views: 2679
Re: TZQuery memory issues (possible leaks)
Back to the subject... Recently I switch to using dbc layer of ZeosLib insteed of datasets, but with the same issue: with SetResultSetConcurrency( rcUpdatable ) some memory is not freed. With SetResultSetConcurrency( rcReadOnly ) memory freeing seems ok. While debugging ZeosLib I could not figure ou...
- 12.01.2015, 13:09
- Forum: ZeosLib 7.1 stable Forum
- Topic: TZQuery fetch control
- Replies: 12
- Views: 8488
Re: TZQuery fetch control
For the moment i have to pass. The Async functions work nice with DBC but with updateable RS where meta-informations are retrieved i failed. Maybe you have more success? I not fully understand about your problems with updateable RS in this case... are you talking about PGresult's metadata(fileds de...
- 11.01.2015, 17:12
- Forum: ZeosLib 7.1 stable Forum
- Topic: TZQuery fetch control
- Replies: 12
- Views: 8488
Re: TZQuery fetch control
I've recently started trying to implement async functions and SingleRowMode in Zeos by myself. So now I implemented PQsendQueryPrepared at dbc level and "async open+SingleRowMode+get first row" in TZAbstractRODataset. But during this hack I realize that IZResultSet and other classes assume...
- 10.01.2015, 17:25
- Forum: ZeosLib 7.1 stable Forum
- Topic: TZQuery memory issues (possible leaks)
- Replies: 5
- Views: 2679
TZQuery memory issues (possible leaks)
Lazarus 1.2.6+ZEOSDBO-7.1.4+PostgreSQL Consider simple project (code below). With TZReadOnlyQuery application memory usage after open/close cycles is the same (don't grows). With TZQuery application memory usage grows with each open/close cycle and I can't find any way to free that memory . There is...
- 12.12.2014, 17:49
- Forum: ZeosLib 7.1 stable Forum
- Topic: TZQuery fetch control
- Replies: 12
- Views: 8488
Re: TZQuery fetch control
Further study showed the following. Call "stack" procedure TZAbstractRODataset.InternalOpen; ResultSet := CreateResultSet(FSQL.Statements[0].SQL, FetchRow) function TZAbstractRODataset.CreateResultSet(const SQL: string; MaxRows: Integer): IZResultSet; Result := Statement.ExecuteQueryPrepar...
- 11.12.2014, 10:06
- Forum: ZeosLib 7.1 stable Forum
- Topic: TZQuery fetch control
- Replies: 12
- Views: 8488
Re: TZQuery fetch control
"Which driver are you using for?" You mean database driver? PostgreSQL 9.3. with 'postgresql-9' protocol. Sorry for FireDAC - I mention it for example only to clarify my question. Now I read http://www.postgresql.org/docs/9.3/static/libpq-single-row-mode.html: " Ordinarily, libpq coll...
- 09.12.2014, 17:58
- Forum: ZeosLib 7.1 stable Forum
- Topic: TZQuery fetch control
- Replies: 12
- Views: 8488
TZQuery fetch control
Hi! Can TZQuery or TZReadOnlyQuery fetch records on demand by configurable portions (records number). Something like http://docwiki.embarcadero.com/RADStudio/XE6/en/Fetching_Rows_%28FireDAC%29#Rowset_Fetching : "FireDAC is fetching rowsets according to the FetchOptions.Mode property: fmOnDemand...