Calling Threaded Queries
#1

Is there a way to call a single threaded query separately? If so, how? I tried to look for answers but to no avail. Another thing is, I saw this post somewhere.

Quote:
Originally Posted by !damo!spiderman
Посмотреть сообщение
Threaded queries run on a separate thread in the background. Basically SA-MP server is a single threaded program by default, which means any functions you run have to wait in turn to get executed. What the mysql plugin does is it allows you to run a query on a separate thread, so it means that if your query takes too long it's not going to block the main thread causing it to freeze and lag, instead it will execute the query in the background and then notify that it is done via a callback.
I'm using threaded queries and tried to save everything every hour, but it causes lag, is that normal?
Reply
#2

Quote:
Originally Posted by Eyce
Посмотреть сообщение
Is there a way to call a single threaded query separately? If so, how? I tried to look for answers but to no avail. Another thing is, I saw this post somewhere.



I'm using threaded queries and tried to save everything every hour, but it causes lag, is that normal?
if u have mysql_log(LOG_ALL); disable that
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)