SmartOpen

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

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
zippo
Silver Boarder
Silver Boarder
Posts: 322
Joined: 12.10.2005, 18:01
Location: Slovenia

SmartOpen

Post by zippo »

What is the mean of the doSmartOpen option in the TZQuery component? I played a little, but see no difference in the behaviour of the application.

Is there any mini FAQ for Zeos?
btrewern
Expert Boarder
Expert Boarder
Posts: 193
Joined: 06.10.2005, 18:51

Post by btrewern »

Don't see the option! What version of Zeos are you using?

Ben
gto
Zeos Dev Team
Zeos Dev Team
Posts: 278
Joined: 11.11.2005, 18:35
Location: Porto Alegre / Brasil

Post by gto »

btrewern wrote:Don't see the option! What version of Zeos are you using?

Ben
CVS 13/10 have that option
anyway, I don't know what it does too

if the mod's can play with a mini-faq, I wish to know what ZSequence does!
Use the FU!!!!!IN Google !

gto's Zeos Quick Start Guide

Te Amo Taís!
zippo
Silver Boarder
Silver Boarder
Posts: 322
Joined: 12.10.2005, 18:01
Location: Slovenia

Post by zippo »

True, the CVS from 13/10. Zeos team, help! :)
gto
Zeos Dev Team
Zeos Dev Team
Posts: 278
Joined: 11.11.2005, 18:35
Location: Porto Alegre / Brasil

Post by gto »

Hey zippo, I've been looking the sources for that option..

The main diference between SmartOpen and not SmartOpen is the procedure used to fetch the data on the background.

The code actually is in ZDbcInterbase6Statement.pas

Using SmartOpen will fire the ExecutePrepared function.. otherwise, the ExecuteQueryPrepared is used...

I cannot figure out the main difference through the functions, but, for me, SmartOpen enabled is slightly faster.. maybe SmartOpen is some kind of andvanced FetchOnDemand option.

Well, technical comments would be great :)
[]'s

Update!!

Googling out and I find that:

Added doSmartOpen option to Dataset to allow executing DML statements by Open without throwing exception.

link to google cache
Use the FU!!!!!IN Google !

gto's Zeos Quick Start Guide

Te Amo Taís!
zippo
Silver Boarder
Silver Boarder
Posts: 322
Joined: 12.10.2005, 18:01
Location: Slovenia

Post by zippo »

ahaaaa...

Thank you! I'll play a little to see what's the speed difference.
Post Reply