vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Removing the session update query ? (https://vborg.vbsupport.ru/showthread.php?t=168783)

WarDoGG 01-26-2008 04:44 PM

Removing the session update query ?
 
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 ??


Quote:

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.


All times are GMT. The time now is 07:05 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01041 seconds
  • Memory Usage 1,711KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete