Mysql tquery/pquery
#1

Hi,

I want to ask.

I i use a lot of mysql_connect, i mean not a lot of, but in my web show something from server or another stuff. It'is somehow increasing my queries in server? because i don't very understand different between mysql_tquery and mysql_pquery. Where is mysql_pquery there is writing that it will be faster until how much mysql connections will be, but it don't take transations.
Reply
#2

You have to use only single mysql_connect, mysql_pquery will take care of opening new connections.

Here's the explanation of the diffrence - http://forum.sa-mp.com/showpost.php?...postcount=5021
Reply
#3

It means that mysql_pquery there execution can be random, from random querie, mysql_tquery if you send a querie, and another queries first complete first querie and then other in a row
Reply
#4

Exactly. That's why you can't use transactions with pquery, but can with tquery.

Singluar of "queries" is "query".
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)