vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Reducing Queries (https://vborg.vbsupport.ru/showthread.php?t=72190)

ChrisLM2001 11-26-2004 12:04 AM

Reducing Queries
 
Can someone point to me who had a hack that reduces forumhome's queries down by 2? Think it was Erwin who showed how it was done, but I can't seem to find that thread.

Currently have 9 queries and no uncached templates. But I had it down to 7 before with that mod (it's a new install to test new hacks, so don't want to reimport an already modded copy of vB).

With 9 queries it's taking 0.05 seconds to generate the page, but with 7 that can come down to 0.03.

Chris

AN-net 11-26-2004 02:45 AM

was this a vb2 hack?

ChrisLM2001 11-26-2004 02:55 AM

Don't believe it was, since I used it on 3.0.1.

Got it off of a thread where members were trying to get templates cached (why Erwin came to mind, with caching his Microstats templates).

It eliminated 2 extra queries and knocks off around 0.02 off the page generation time.

Just can't find that thread now. Would like to rebump it, as it's a little optimization that does the trick. ;)

Chris

Xenon 11-26-2004 01:13 PM

hmm, i don't know that hack.

normally the require global.php already takes 8 queries, so it would be hard to get to 7 with just changing index.php queries.

i may be wrong, but i don't think so ^^

Zachery 11-26-2004 02:38 PM

Quote:

Originally Posted by ChrisLM2001
Don't believe it was, since I used it on 3.0.1.

Got it off of a thread where members were trying to get templates cached (why Erwin came to mind, with caching his Microstats templates).

It eliminated 2 extra queries and knocks off around 0.02 off the page generation time.

Just can't find that thread now. Would like to rebump it, as it's a little optimization that does the trick. ;)

Chris

9 quierys is nothing to be worried about

ChrisLM2001 12-01-2004 01:59 AM

Quote:

Originally Posted by Zachery
9 quierys is nothing to be worried about

Found it! Erwin was the correct author, but it wasn't about templates itself....

Total Number of Users Online Now on Every Page
https://vborg.vbsupport.ru/showthread.php?t=59722

Little hack can reduce the index.php queries down by 1 or 2.

Chris

Zachery 12-01-2004 02:01 AM

Quote:

Originally Posted by ChrisLM2001
Found it! Erwin was the correct author, but it wasn't about templates itself....

Total Number of Users Online Now on Every Page
https://vborg.vbsupport.ru/showthread.php?t=59722

Little hack can reduce the index.php queries down by 1 or 2.

Chris

as i said 9 is nothing to worry about


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.01028 seconds
  • Memory Usage 1,725KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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