Desaster Posted November 28, 2013 Share Posted November 28, 2013 I've set a timer that makes me I approx 15 query every 1 sec I wanted to ask you if it's make lag if I make many timers and if it makes a difference or not if I make the timer every 100 msec or every second and is there a query limit in the seconds because sometimes my server crahed and told me Notice : 350000 qery in the last 10 second thnx Link to comment
Driggero Posted November 28, 2013 Share Posted November 28, 2013 You're going to cause massive lag if you set a timer to do most things 15 times a second. I'm sure whatever you're querying will work just as well if you do it once a second or even once every 5 seconds. If your server crashed with that error then there's your proof. You should get into a habit of not using timers unless you absolutely need to, as they are not the most efficient way of doing things Link to comment
Desaster Posted November 28, 2013 Author Share Posted November 28, 2013 I need to do it belive me I can't find an other way anyways my server crashed just sometimes when i restarted the script and just when I had the timer each 100 msec now I changed it to 1 sec and everything going on well but as I sayed was just a question Link to comment
Driggero Posted November 28, 2013 Share Posted November 28, 2013 I honestly can't see why you'd need to query anything every 100ms, that's 10 times a second. Unless what you're doing is extremely lightweight (which i'm assuming it's not since the crashes) then you're gonna cause problems . What are you trying to do? Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now