Raised This Month: $ Target: $400
 0% 

Threaded queries


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
portocala
Member
Join Date: Jun 2010
Old 02-26-2011 , 02:26   Threaded queries
Reply With Quote #1

Why didn't Avalanche use threaded queries for the SQL version of the plugin ?

Thanks!
portocala is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 02-26-2011 , 18:15   Re: Threaded queries
Reply With Quote #2

That's a good question. I did thread a handful of the queries, but not all of them. The main reason is because in most of the cases, adding threaded queries would have required big rewrites to handle threaded behavior (because things don't happen right away or necessarily in the same order), which also would have made maintaining SQL and non-SQL versions a lot more complicated for me.

Ava
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
portocala
Member
Join Date: Jun 2010
Old 03-09-2011 , 15:19   Re: Threaded queries
Reply With Quote #3

If I use SQL storage, my server has some problems. The gameplay freezes sometimes for 0.5-1s and I know for sure that this can be solved by using threaded queries. The SQL server is hosted on localhost - so, no problem here.

What can I do besides going back to file storage ?

Thank you so much!
portocala is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 03-23-2011 , 17:47   Re: Threaded queries
Reply With Quote #4

Hi portocala,

I apologize, I don't know of any solution at the moment. I agree that threaded queries could solve some hiccups like that but unfortunately I don't have the time to rewrite them into GunGame right now. Out of curiousity, do the freezes occur in the middle of the game or just on map change? How big is your gg_stats table? And are there ever any SQL errors logged?

Ava
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Reply



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 14:50.


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