Lazarus

Programming => Databases => Topic started by: Danyfirex on July 03, 2015, 04:46:16 pm

Title: Best Way Multiples Control associated with datasources
Post by: Danyfirex on July 03, 2015, 04:46:16 pm
Hi mate.

I was working in a proyect that use many controls asocciated with diferents tables of a database and I got this doubt.

When I work with many query should I use multiples object SQLite3Connections

SQLite3Connection1
SQLite3Connection2
SQLite3Connection3
SQLite3Connection4
SQLite3Connection5

or I just have to assign one SQLite3Connection for all my datasources,transactions,queries when I need to do something.

Saludos

Title: Re: Best Way Multiples Control associated with datasources
Post by: taazz on July 03, 2015, 05:04:49 pm
Hi mate.

I was working in a proyect that use many controls asocciated with diferents tables of a database and I got this doubt.

When I work with many query should I use multiples object SQLite3Connections

SQLite3Connection1
SQLite3Connection2
SQLite3Connection3
SQLite3Connection4
SQLite3Connection5

or I just have to assign one SQLite3Connection for all my datasources,transactions,queries when I need to do something.

Saludos
One per thread. or if you are not writting a multithreading app one connection unless there is a need for more and only if there is no way to avoid it.
Title: Re: Best Way Multiples Control associated with datasources
Post by: Danyfirex on July 03, 2015, 05:34:52 pm
I see. thank you very much  taazz.

Saludos
TinyPortal © 2005-2018