Recent

Author Topic: Best Way Multiples Control associated with datasources  (Read 1045 times)

Danyfirex

  • New Member
  • *
  • Posts: 13
Best Way Multiples Control associated with datasources
« 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


taazz

  • Hero Member
  • *****
  • Posts: 5363
Re: Best Way Multiples Control associated with datasources
« Reply #1 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.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

Danyfirex

  • New Member
  • *
  • Posts: 13
Re: Best Way Multiples Control associated with datasources
« Reply #2 on: July 03, 2015, 05:34:52 pm »
I see. thank you very much  taazz.

Saludos