Hi
Could somebody tell me what is the difference between
ZQuery + Readonly=True and ZReadOnlyQuery ?
Mainly speed ? or somthing else ? (FireBird SQL)
Thank you Attila
ZQuery vs ZReadOnlyQuery
-
- Platinum Boarder
- Posts: 1956
- Joined: 17.01.2011, 14:17
Re: ZQuery vs ZReadOnlyQuery
Hello Attila,
usually there should not be a big difference. But for some reason there is a notable difference - with Firebird at least. Use a TZReadOnlyQuery if you are sure, you don't need to modify anything.
With best regards,
Jan
usually there should not be a big difference. But for some reason there is a notable difference - with Firebird at least. Use a TZReadOnlyQuery if you are sure, you don't need to modify anything.
With best regards,
Jan
Re: ZQuery vs ZReadOnlyQuery
Thank you Jan, to clarify.
Attila
Attila
Re: ZQuery vs ZReadOnlyQuery
ZReadOnlyQuery executes queries (even modificating ones!) and returns resultset.
ZQuery additionally allows modification of this result set and posting it to DB.
ReadOnly property controls access level for current statement.
ZQuery adds some overhead, so if you don't need Dataset.Edit/Post methods, then use ZReadOnlyQuery.
ZQuery additionally allows modification of this result set and posting it to DB.
ReadOnly property controls access level for current statement.
ZQuery adds some overhead, so if you don't need Dataset.Edit/Post methods, then use ZReadOnlyQuery.