Page 1 of 1

UniTable / UniConnection best practice

Posted: Sat 07 Jun 2014 19:57
by testpresta
Hello

I have a project with about 20 Delphi forms.
- 10 Forms that contains « lists »
Each form contains one TDBGrid and one or more TUniTable.
- 10 Forms that contains detailed view with fields.
Each form contains one or more TuniTable

I am wondering if i should put a TUniConnection on each form ?
Or should i put a global TUniConnection on the project ?
Or one TUniConnection on each list forms and share them for detailed forms ?

Thanks for your answer

Re: UniTable / UniConnection best practice

Posted: Tue 10 Jun 2014 08:29
by AlexP
Hello,

If your forms are created and opened in the same thread as the main form, it's enough to use one TUniConnection for the whole application. If you work with threads, then some databases require one connection, and some require a connection for each thread.