Raised This Month: $ Target: $400
 0% 

MySQL client_aughorized lag


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 01-13-2007 , 14:04   Re: MySQL client_aughorized lag
Reply With Quote #1

Using a switch instead of if/else is faster though I don't know that you could do it with your code. Also, it's not appreciably faster in this context.

If you want to know exactly what in your code is causing the lag, you need to instrument it. In other words, do something like this around statements that you think could be causing a problem:

Code:
new start = seconds(); // one or more statements log_to_file("_test", "blahblah took %i seconds", seconds() - start);
Doing this will tell you where you need to optimize the code. My guess is that the dbi_query line is causing your problems thus my suggestion to use SQLx.
__________________
Brad is offline
raa
Senior Member
Join Date: Oct 2005
Old 01-13-2007 , 18:59   Re: MySQL client_aughorized lag
Reply With Quote #2

Thanks for the reply. I will add that code for sure.

I see that you give assistance for a decent price. I will PM you now.
__________________
raa 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 22:25.


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