09.06.2017, 13:34
Quote:
Using tquery you have one extra thread and all queries get pushed onto a queue in that one thread. So the queries get executed in the order they are received. With pquery on the other hand your query gets pushed onto a queue in any of the available threads so queries may not necessarily execute in the order they are received. The amount of threads that are available is the number you specified for "poolsize" in mysql_connect.
|
The wiki says pquery could be slower sometimes. I am not able to understand at what situations pquery performs slower than tquery.
My question is when to use which.