DAC for MySQL
TMySQLDatabase.Properties.MultiThreaded | Previous Next |
Allows usage of MySQL connection from several threads.
Syntax:
property MultiThreaded: Boolean;
Description:
If MultiThreaded is True, the internal connection handle usage is protected with
critical sections. This means that you can safely use TmySQLDataset descedants
(TmySQLTable,
TmySQLQuery,
TmySQLStoredProc) connected to
TmySQLDatabase component in different threads of the application.
 | Setting MultiThreaded property to True doesn't mean that several queries will run
in several threads simultaneously. They will run one-by-one using the same connection to the database
(TmySQLDatabase component). If you want to run several queries simultaneously, you'll need
separate (TmySQLDatabase component) connection for every thread. |