MySQL 40 - (p/t)query.
#3

Quote:
Originally Posted by IstuntmanI
Посмотреть сообщение
From me: ( https://github.com/pBlueG/SA-MP-MySQL/issues/83 )


pquery = parallel query, the queries can be executed in parallel, think of it like multiple tquery connections, it won't have just one queue for it, but it will have more, the value you can specify in mysql_set_option with the POOL_SIZE parameter.

Doing something like
Код:
mysql_pquery( ..., "SELECT * FROM `accounts`", "Callback1" );
mysql_pquery( ..., "SELECT 1", "Callback2" );
won't guarantee that the first query's callback will be executed first, they can be executed in any order. tquery keeps the order to call the callback (because they wait in the same queue, so they get executed one after one, in the order you sent them in your script), while pqueries can be executed in any order, as they have different queues.
So basically, threaded queries stack up on eachother and wait for eachother to run as in order as they were ran in code, and parallel queries will go at possibly different orders?
Reply


Messages In This Thread
MySQL 40 - (p/t)query. - by Meller - 17.11.2017, 20:13
Re: MySQL 40 - (p/t)query. - by IstuntmanI - 17.11.2017, 20:25
Re: MySQL 40 - (p/t)query. - by Meller - 17.11.2017, 20:29
Re: MySQL 40 - (p/t)query. - by IstuntmanI - 17.11.2017, 20:35
Re: MySQL 40 - (p/t)query. - by Meller - 17.11.2017, 20:37
Re: MySQL 40 - (p/t)query. - by wallee - 18.11.2017, 01:33
Re: MySQL 40 - (p/t)query. - by IstuntmanI - 18.11.2017, 14:16
Re: MySQL 40 - (p/t)query. - by wallee - 18.11.2017, 15:40

Forum Jump:


Users browsing this thread: 1 Guest(s)