Using multithreading to create queries in Delphi

I recently use threads to create queries to the MYSQL database, I use MyDAC to connect to the database, because TMyConnection does not allow you to make connection requests at the same time, I create a new connection and a new query object for each thread that executes the query, so at a certain time It may happen that the server has several connections for the client. If we look at this scenario for several clients connecting to the database, this will be a problem, I think. Is there a better solution for using threads in queries?

Thank you in advance

+3
source share
2 answers

, ( datasnap remobjetcs...) .

+2

Delphi, 2:

,

code MyDac - TMyConnection .

0

Source: https://habr.com/ru/post/1715279/


All Articles