EPUB | CHM | PDF

TMySQLDatabase.Properties.MultiThreaded

Top 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 descendants (TMySQLTable, TMySQLQuery, TMySQLStoredProc) connected to TMySQLDatabase component in different threads of the application.

warning 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.