One ZConnection and many data aware components?
Moderators: gto, cipto_kh, EgonHugeist
One ZConnection and many data aware components?
Hello,
I've finished coding stored procedures in my database and now it's time for user interface. I'm coding it in Delphi 7 with (surprise!) ZeosLib
The question is: which model is better from the performance and interoperability point of view?
1) One TZconnection component on the form, reused simultaneously by many datasources and dataware compontets?
2) Dedicated TZconnection component for each datasource existing on the form?
I'm using PostgresQL, so connection limit is not the issue.
Thank you in advance for any suggestions! :-)
Cezar
I've finished coding stored procedures in my database and now it's time for user interface. I'm coding it in Delphi 7 with (surprise!) ZeosLib
The question is: which model is better from the performance and interoperability point of view?
1) One TZconnection component on the form, reused simultaneously by many datasources and dataware compontets?
2) Dedicated TZconnection component for each datasource existing on the form?
I'm using PostgresQL, so connection limit is not the issue.
Thank you in advance for any suggestions! :-)
Cezar
-
- Fresh Boarder
- Posts: 7
- Joined: 26.08.2007, 12:26
- mdaems
- Zeos Project Manager
- Posts: 2766
- Joined: 20.09.2005, 15:28
- Location: Brussels, Belgium
- Contact:
No idea...
All I can tell is that the database connection library is only loaded once. So maybe you get trouble when 2 connections use the same library. When connecting using different libraries you might be lucky the connections work 'simultaneously'.
Somebody else with more usefull information concerning threaded programs in combination with zeoslib?
Mark
All I can tell is that the database connection library is only loaded once. So maybe you get trouble when 2 connections use the same library. When connecting using different libraries you might be lucky the connections work 'simultaneously'.
Somebody else with more usefull information concerning threaded programs in combination with zeoslib?
Mark
-
- Fresh Boarder
- Posts: 7
- Joined: 26.08.2007, 12:26
-
- Fresh Boarder
- Posts: 7
- Joined: 26.08.2007, 12:26