vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   MySQL takes too much (https://vborg.vbsupport.ru/showthread.php?t=52982)

pstdgt 05-15-2003 04:26 PM

MySQL takes too much
 
Page generated in 1.69623303 seconds (8.80% PHP - 91.20% MySQL) with 27 queries.

This is what my forum's index page footer shows most of the time, although the time in which the page is generated may wary according to the active users amount. I think it's TOO MUCH MySQL in there. I have installed the caching hack for the index.

Can anyone give me a hint to optimize the vB database in order to reduce the MySQL percent?

filburt1 05-15-2003 04:55 PM

The best advice is always to just get rid of unnecessary hacks. Stock vB uses (IIRC) less than 20 queries for forumhome, so you have at least 7 extra queries from hacks or badly-written hacks that don't cache all templates.

Xenon 05-15-2003 05:16 PM

hmm it depends on which hacks you use.
the dynamical style dropdown hack for example uses a very slow query, once i cached it on vb.org it speeds up the mysql part about 10 times

pstdgt 05-15-2003 05:51 PM

thank you for your replies.

normally, the index uses 34 or so queries, but because of the caching hack, after the first index load the query number is usually 27.

what is the dynamical style dropdown hack? the one which allows users to "collapse" forum categories?

Xenon 05-15-2003 07:13 PM

hmm the chaching hack shouldn't be out anymore afaik?

i released version 2 of forumhome optimization without that sort of caching.

nope it's not that hack.
it was just an example, that some hacks can slow down a page very strong and others nearly unmarkable

pstdgt 05-16-2003 07:24 AM

danke.


All times are GMT. The time now is 11:19 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.00997 seconds
  • Memory Usage 1,709KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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