Range missing in zTable?

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

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
teo
Fresh Boarder
Fresh Boarder
Posts: 9
Joined: 23.11.2005, 21:14

Range missing in zTable?

Post by teo »

I'm using Zeosdbo 6.5.1 alpha and a ZTable. I want to see only a number of records in the result set, but cannot find any property for that in the ZTable component. When using it on a 245.000 records table of which I only want to see the first 50, this is slooooww..

What I'm looking for: Select * from table LIMIT 0,50

Thanks for any help.

Regards,
Teo
pol
Senior Boarder
Senior Boarder
Posts: 91
Joined: 13.10.2005, 08:19

Post by pol »

Hi!
Never use a ZTable (any TTable) for such a big table. Use a ZQuery with the SQL you mentioned inside. In fact, always try to avoid TTable.
Regards,
Rüdiger
teo
Fresh Boarder
Fresh Boarder
Posts: 9
Joined: 23.11.2005, 21:14

Post by teo »

Hello Rüdiger,

Thanks for replying. I see remarks about avoiding TTable a lot, I know why but TTable kind of components were designed to do table editing.

Anyway.. You are right about the amount of records, that is why I wanted to get the first 50 or so. The ZTable component was very suitable for me because, in the architecture that I knew allowed me to show records in a dbGrid and edit them. (I'm working on a database management frontend kind of like mysql-front and want a plain view of the database content).

Unlike what I expected, a ZQuery needed some figuring out, but to my supprise is able to be used for data editing. So.. I replaced the ZTable with a ZQuery and all works fine.
Michael
ZeosLib's Handyman :o)
ZeosLib's Handyman :o)
Posts: 189
Joined: 15.08.2005, 16:08
Location: Wehrheim
Contact:

Post by Michael »

Hi pol,

please also take a look into our Knowledge Base articles ... ;-).
:prog2: Use the source, dude!

[align=right]..::.. ZeosLib on SourceForge ..::..[/align]
pol
Senior Boarder
Senior Boarder
Posts: 91
Joined: 13.10.2005, 08:19

Post by pol »

Hi Michael,

Thanks for your remark, but what exactly do you mean?
Michael
ZeosLib's Handyman :o)
ZeosLib's Handyman :o)
Posts: 189
Joined: 15.08.2005, 16:08
Location: Wehrheim
Contact:

Post by Michael »

:prog2: Use the source, dude!

[align=right]..::.. ZeosLib on SourceForge ..::..[/align]
Post Reply