How many component to use with one TZConnection?

Forum related to PostgreSQL

Moderators: gto, cipto_kh, EgonHugeist, olehs

Post Reply
AndGaG
Fresh Boarder
Fresh Boarder
Posts: 1
Joined: 25.02.2006, 20:12
Location: Celaya Guanajuato
Contact:

How many component to use with one TZConnection?

Post by AndGaG »

Greetings.

I am using about 30 components (TZQuery and ZTable), and wanted to know if its correct that I uses only 1 TZConnection component,
and if this does not affect the performance of my application in Delphi 7. Thanks. :roll:
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

Well,

If the queries are not executed simultaneously I would not expect performance problems. For simultaneous queries probably more connections could help. On the other hand, if you use transactions, it's better to have 1 connection, as different connections do not see each others updates until a commit has been executed.

So generally I think your solution is alright, unless you can avoid that many components by reusing them. (Modifying queries in runtime or using parameters)

Does anybody disagree?

Mark
Image
zippo
Silver Boarder
Silver Boarder
Posts: 322
Joined: 12.10.2005, 18:01
Location: Slovenia

Post by zippo »

I agree :)
Post Reply