Threaded and non threaded queries
#1

Can some one please explain what's the difference between threaded and non threaded queries?
I saw on AndreT tutorial it gives more performance but i don't really see the idea...
Can someone explain it please? or atleast try to simplify it?
And please don't post links to wikipedia or something cuz its complex.
Reply
#2

Anyone? :/
Reply
#3

The idea with a threaded query is that while the query is busy the sa-mp server can continue on and execute other things (sync!). When the query is done, the MySQL servers calls the function you specify and you can go on loading your data.

With an unthreaded query, the sa-mp server has to wait for the response from the MySQL server before it can continue. This is especially troublesome if the query takes more than a few milliseconds to execute. During this "timeout" nothing happens. No syncing, nothing.
Reply
#4

And R6 Version use unthreaded queries while the new mysql_function_query uses threaded queries?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)