vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Reducing Queries (https://vborg.vbsupport.ru/showthread.php?t=49303)

ULTIMATESSJ 02-24-2003 01:42 PM

Reducing Queries
 
The host i can using for my forums is running extremely slowly, and it seems that the mysql database is causing this, so i was thinking on editing some of the files to drop some frontpage queries, what could i do to drop queries from the forumhome and threads

Xenon 02-24-2003 02:04 PM

disable accessmasks.
disable showing who is online on forumhome

and with reducing some functionality:
replace forumhome with an static html page :D
reduce showthread functionality by replace it with tecks archive for example :)

there is a good link in erwins sig what could be changed too :)

ULTIMATESSJ 02-24-2003 07:22 PM

is there anything else i can do inside the files, i hear that if you add the newer templates you havefrom other mods and hacks, in the top $templatesused part, that it reduces queries, but i don't know if there is any truth to it

Erwin 02-24-2003 07:44 PM

Quote:

Originally posted by ULTIMATESSJ
is there anything else i can do inside the files, i hear that if you add the newer templates you havefrom other mods and hacks, in the top $templatesused part, that it reduces queries, but i don't know if there is any truth to it
Yes, you should do that, as the templates are then cached. All templates used should be in that section or else each template called is one extra query.

What I also did was remove my moderator column, and removed the query calling up the moderators, remove my total thread count (who cares - all people want to know is the total post count). You can also remove the search function or restrict it only for members, and remove forumjump (saves one query). Disabling avatars also would help.

ULTIMATESSJ 02-24-2003 08:55 PM

well i've done that, but things are still slow for us, i guess it's just my host, they've just changed their mysql database and it's slow

Erwin 02-24-2003 08:57 PM

Changing "mysql database" should not slow things down... do you mean change servers? Are you on a shared server? Maybe it's time to go dedicated.

ULTIMATESSJ 02-26-2003 08:23 PM

Quote:

Originally posted by Erwin
Changing "mysql database" should not slow things down... do you mean change servers? Are you on a shared server? Maybe it's time to go dedicated.
yep, i think we're on a shared server, and we did want to go dedicated, but we don't have the money to do so

Jacko 04-23-2003 11:36 AM

sometimes money is everything?!

my new dedicated server is alot faster than my old shared.


All times are GMT. The time now is 01:29 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.00993 seconds
  • Memory Usage 1,724KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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