PDA

View Full Version : Removing the session update query ?


WarDoGG
01-26-2008, 04:44 PM
Every second, thousands of these queries get executed on my board.
Its eating up my query limit on my server. I know these queries are not important. How can i stop the execution of these queries ??


UPDATE session
SET lastactivity = 1199283867, location = '/board/showthread.php?t=9660', inthread = 9660, incalendar = 0, badlocation = 0, bypass = 0
WHERE sessionhash = '22f75d981a8b73f1d06172f0d60c406b';


If i remove these queries, wht are the things i cannot do ??

nexialys
01-26-2008, 05:49 PM
how many users are online at the same time to have thousands of these queries ?!

because this is something that is loaded each other page load... so if you have 1000 of that query per second, that means you have 1000 users reloading the page at the same moment, each second...

do you have a shoutbox or live chat on your forum ?!

we need these details to evaluate the problem.

and actually, the only thing this query bring is to not have to handle the sessions per cookies...

Andreas
01-26-2008, 06:02 PM
This query is very important!

Without it, WOL will not work at all and users who do not save their userid and password as cookies will be logged out after 15 minutes (or whatever your timeout is set to) - no matter if they are active or not.