Bug: Zeos6.6.2 Incremental Fetch problem (CDS)

Forum related to version 6.5.1 (alpha) and 6.6.x (beta) of ZeosLib's DBOs

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
hudgi
Fresh Boarder
Fresh Boarder
Posts: 23
Joined: 19.03.2007, 16:13

Bug: Zeos6.6.2 Incremental Fetch problem (CDS)

Post by hudgi »

Hi,

(Env: Delphi7; PostgreSQL8.x; Zeos6.6.2; ClientDataset)

I need to use the CDS incremental fetching feature which fetches rows only on demand. To turn on this feature set CDS.PacketRecords larger then 0. Say 2.

I tried it out with BDE Query and it worked nicely. Using Zeos ZQuery (which I prefer) the number of records is ok, but no field values are shown in the grid.

test case:
- create a PoastgreSQL database with a test table and insert a few 10000 recods into it.

- create a test app and drop the following components on the MainForm: ZConnection, ZQuery, ClientDataset, DatasetProvider, Datasource, DBGrid. Link them together, establish the connection, set CDS.PacketRecords:=2.

- open the CDS and you will see the DBGrid showing a scrollbar with full of empty cells. The no. of columns is appropriate to the no. of fields in the table but with no data. (all field object values are empty) :(

- Now drop a Database and a Query (BDE) components on the form and set up the connection and link the Query to the Datasource. Open the CDS and you will see that all the data is shown correctly. :|

Is there a fix for this issue? How could I use this excellent feature with this excellent tool (Zeos)? :?

I hope it is not a big issue (maybe something "forgot to set field values" or similar) and is easy to fix because it would be very urgent to me. There are 50000+ records in a table and my customer forces me to show all of them.

No chance to convince him of using filters instead. The only correct way to open that large dataset is using PacketRecords=-1, which means that all of the records are fetched at once to the client, and it takes more then a minute. OK, another way is using BDE, but I do not have to explain why I don't want it - and why I want Zeos instead.

Many thanks!

-- hudgi
User avatar
cipto_kh
Senior Boarder
Senior Boarder
Posts: 83
Joined: 28.09.2005, 11:22
Location: Indonesia
Contact:

Post by cipto_kh »

have you try with the latest version (the URL is in below)?
http://zeosdownloads.firmos.at/downloads/snapshots/

there is a bug that I found earlier and already fixed, maybe it also fix your problem too.
hudgi
Fresh Boarder
Fresh Boarder
Posts: 23
Joined: 19.03.2007, 16:13

Post by hudgi »

Yes, I'm using ZEOSLIB_TESTING_REV288.zip (24-Aug-2007).
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

hudgi,
This seems to be a bug. Somebody did send it to me using mail, I think. I didn't find a solution yet. We'll have to add it to the bugtracker if it isn't there yet. I have a sample project.

Mark
hudgi
Fresh Boarder
Fresh Boarder
Posts: 23
Joined: 19.03.2007, 16:13

Post by hudgi »

Mark,
I found a bug in Mantis (ID:0000043) which reflects to a similar bug but it's about built in master detail relationships (without CDS).

I have to use the incremental fetching feature with a simple CDS. I do not know if it is the same problem or not though. It may be because the problem must be somewhere between DSP and ZQuery...

Should I put a new bug entry or the existing is enough for this problem too.

thank you,
-- Hudgi
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

Just log a new bug. Please include the simplest possible example project. Also include data and data structure using a sql script. So everybody can easily check/debug the problem.
please add the relation to bug 43. I have the impression both problems may be solved at once. I also had the impression there was something strange going on between DSP and ZQuery.

Mark
hudgi
Fresh Boarder
Fresh Boarder
Posts: 23
Joined: 19.03.2007, 16:13

Post by hudgi »

OK, I'm going to prepare an example package and add a new entry later today.

-- hudgi
hudgi
Fresh Boarder
Fresh Boarder
Posts: 23
Joined: 19.03.2007, 16:13

Post by hudgi »

I've done it. You can download the sample project as well.

Thank you very much,
-- Csaba
Post Reply