09.04.2015, 14:38
Pquery:
Sends a query which will be executed in another thread concurrently and calls the callback (if there is one) when the execution is finished.
Tquery:
Sends a query which will be executed in another thread and calls the callback (if there is one) when the execution is finished
Difference:
The difference between mysql_pquery() and mysql_tquery() is, that this pquery uses multi-threading, thus it's faster depending on how many connections are used. The number of connections can be specified in mysql_connect() through the pool_size parameter. Each connection resembles a thread.
Sends a query which will be executed in another thread concurrently and calls the callback (if there is one) when the execution is finished.
Tquery:
Sends a query which will be executed in another thread and calls the callback (if there is one) when the execution is finished
Difference:
The difference between mysql_pquery() and mysql_tquery() is, that this pquery uses multi-threading, thus it's faster depending on how many connections are used. The number of connections can be specified in mysql_connect() through the pool_size parameter. Each connection resembles a thread.