Lazarus
Home
Forum
Help
TinyPortal
Search
Login
Register
Lazarus
»
Programming
»
Databases
»
ZQuery vs ZReadOnlyQuery
Free Pascal
Website
Downloads
Wiki
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
FAQ
Wiki
Bugtracker
Packages
IRC channel
Developer Blog
Follow us on Twitter
Latest SVN
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
Search
Advanced search
« previous
next »
Print
Pages: [
1
]
Author
Topic: ZQuery vs ZReadOnlyQuery (Read 940 times)
k1attila1
Jr. Member
Posts: 68
ZQuery vs ZReadOnlyQuery
«
on:
April 27, 2017, 05:13:46 pm »
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
Logged
Zoran
Hero Member
Posts: 1185
Re: ZQuery vs ZReadOnlyQuery
«
Reply #1 on:
April 27, 2017, 06:18:02 pm »
Short answer: no difference.
Long answer:
ZReadOnlyQuery descends directly from ZReadOnlyDataSet, and ZQuery descends from ZDataSet, which then also descends from ZReadOnlyDataSet, but adds functionalities of cashing and updating.
So, ZReadOnlyQuery is "lighter".
In practise, you can hardly notice any difference.
If you are absolutely sure that you will use it only for reading, use ZReadOnlyQuery.
If you are not sure if you might want later to decide to use it for updating, use ZQuery with ReadOnly = True, so you can easily set it later to False and use it for updating database.
«
Last Edit: April 27, 2017, 06:49:59 pm by Zoran
»
Logged
k1attila1
Jr. Member
Posts: 68
Re: ZQuery vs ZReadOnlyQuery
«
Reply #2 on:
April 27, 2017, 06:28:01 pm »
Thank you Zoran !
I understand.
Attila
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Programming
»
Databases
»
ZQuery vs ZReadOnlyQuery
Recent
Ubuntu Launcher not using...
by
soerensen3
[
Today
at 11:03:33 pm]
[HowTo] Android Developme...
by
HobbyDev
[
Today
at 10:40:00 pm]
An advice - um conselho
by
ezlage
[
Today
at 10:16:30 pm]
how to disable directive
by
Thaddy
[
Today
at 09:01:09 pm]
Terminal Component Availa...
by
BBasile
[
Today
at 08:59:22 pm]
FrameBrowser substring pr...
by
Sniper
[
Today
at 08:31:08 pm]
Is there a Bitfield contr...
by
jamie
[
Today
at 08:13:33 pm]
Picture hotspots
by
kapibara
[
Today
at 08:04:22 pm]
[TCocoaMenuItem _setMenuO...
by
skalogryz
[
Today
at 04:43:48 pm]
Insert check mark symbol
by
lainz
[
Today
at 03:32:07 pm]