vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   DB Optimization (https://vborg.vbsupport.ru/showthread.php?t=52538)

GaleForce 05-04-2003 04:26 AM

DB Optimization
 
Anyone know a way I could optimize my Database so that a full page in a thread isn't doing over 300 queries. Its not so much that my site is slow, go to www.kotorpa.com/forum and check out a thread with more than one page. It loads quickly, but if you look at the bottom of a full page it will tell you (since I have the hack installed) that it had to fo over 300 queries. Its more, I'm not really sure, just 300 queries doesn't sound too good :p

GaleForce 05-04-2003 04:42 PM

Quote:

Page generated in 0.57712901 seconds (57.00% PHP - 43.00% MySQL) with 304 queries.
Don't lynch me! My pages load fast anyway, its just that they could load even faster! Muahaha

:banana:

filburt1 05-04-2003 05:13 PM

Get rid of all unnecessary hacks.

GaleForce 05-04-2003 06:35 PM

We really don't have any hacks that we don't use. I was thinking more along the lines of merging queries and stuff.

Xenon 05-04-2003 07:55 PM

remove the queries from getpostbit() and the while loop in showthread.php

GaleForce 05-04-2003 08:06 PM

Will that /nerf the features or anything?

Xenon 05-04-2003 08:10 PM

normally yes :)

but hack which have queries in the whileloop or in the getpostbit function are crappy coded, maybe you'll find a better version for such hacks


All times are GMT. The time now is 05:08 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.00939 seconds
  • Memory Usage 1,719KB
  • 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
  • (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