Raised This Month: $32 Target: $400
 8% 

Solved SQLX lag?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wilianmaique
BANNED
Join Date: Nov 2016
Old 02-18-2020 , 17:11   SQLX lag?
Reply With Quote #1

good night, i'm from brazil and i have a hosting outside of brazil, however when i run a query the server stops for 1 second back. is it possible to solve this?

Last edited by wilianmaique; 02-20-2020 at 17:10. Reason: solved
wilianmaique is offline
Send a message via Skype™ to wilianmaique
Rirre
Veteran Member
Join Date: Nov 2006
Old 02-19-2020 , 11:40   Re: SQLX lag?
Reply With Quote #2

I assume you mean in the middle of the game?
SQL_PrepareQuery() together with SQL_Execute() is the cause of this then in this case. Use SQL_ThreadQuery() instead.
Rirre is offline
JocAnis
Veteran Member
Join Date: Jun 2010
Old 02-19-2020 , 12:00   Re: SQLX lag?
Reply With Quote #3

where is mysql/VPS located?

location really matter for this purpose..just like if you want to play from brasil to any cs serbian server...you will have ping, without option to 'trick' it...i hope im wrong but not very optimistic
__________________
KZ Public Autocup - PrimeKZ

My blog: http://primekz.xyz (in progress...) - not active (dec 2022)
JocAnis is offline
wilianmaique
BANNED
Join Date: Nov 2016
Old 02-19-2020 , 15:50   Re: SQLX lag?
Reply With Quote #4

Quote:
Originally Posted by Rirre View Post
I assume you mean in the middle of the game?
SQL_PrepareQuery() together with SQL_Execute() is the cause of this then in this case. Use SQL_ThreadQuery() instead.
yes, I am using execute and SQL_PrepareQuery, I will try to use SQL_ThreadQuery, and I will answer again.

Quote:
Originally Posted by JocAnis View Post
where is mysql/VPS located?

location really matter for this purpose..just like if you want to play from brasil to any cs serbian server...you will have ping, without option to 'trick' it...i hope im wrong but not very optimistic
yes but what happens is that when i run the query the server inside the game is locked. all players feel the lock.
wilianmaique is offline
Send a message via Skype™ to wilianmaique
JocAnis
Veteran Member
Join Date: Jun 2010
Old 02-19-2020 , 16:14   Re: SQLX lag?
Reply With Quote #5

ye its like a choke/freeze...is that happening on every query you are sending or just for some? could be a chance it is a query problem or big data in table but not a delay..
__________________
KZ Public Autocup - PrimeKZ

My blog: http://primekz.xyz (in progress...) - not active (dec 2022)
JocAnis is offline
wilianmaique
BANNED
Join Date: Nov 2016
Old 02-20-2020 , 17:10   Re: SQLX lag?
Reply With Quote #6

I came back, I performed the tests, and SQL_ThreadQuery really makes all the difference, lag no longer exists for distant servers. there are no more fights, thank you all.
wilianmaique is offline
Send a message via Skype™ to wilianmaique
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:08.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode