Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Big Board Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
how much queries do you have running whan a... Details »»
how much queries do you have running whan a...
Version: , by Yellow Slider Yellow Slider is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 06-13-2007 Last Update: Never Installs: 0
 
No support by the author.

Index page is loading? - 10 q'
forum page is loading? - 15 q'
thread page is loading?- 34-35 q' (something is wrong and it's killing the server..)

I have to find out why the hell i have 35 q' when a thread is loading, its killing my server, somthing like 400 users are entering a page in a sec, do the math :X

so i wanted to see what is the situation on other boards ?

thanks lot for cooperating :]

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 06-22-2007, 08:26 AM
kmike kmike is offline
 
Join Date: Oct 2002
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Index - 3 queries
forumdisplay - 9 queries (with "currently active users" enabled)
showthread - 7 queries
Reply With Quote
  #13  
Old 06-23-2007, 12:55 PM
Yellow Slider Yellow Slider is offline
 
Join Date: Aug 2006
Posts: 249
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mute View Post
We're highly modified to REMOVE queries We actually make extensive use of memcache to cache things like templates, which reduces the amount of queries per page actually hitting our database server. There are queries, but they hit memcache, and don't count.
Quote:
Originally Posted by kmike View Post
Index - 3 queries
forumdisplay - 9 queries (with "currently active users" enabled)
showthread - 7 queries

I've read both of yours posts on VB com , in Kron's (muts) thread "Some tuning tips from the MySQL experts" and i have to say that I'm really impressed , i don't have lot of SQL + PHP knowledge but my partner will try to do the things that you had said there , I've installed memcache (https://vborg.vbsupport.ru/showthread.php?t=150431) and i would really like to know how can i do that -
Quote:
We actually make extensive use of memcache to cache things like templates, which reduces the amount of queries per page actually hitting our database server. There are queries, but they hit memcache, and don't count.
looking forward to your replies, thanks lot.

p.s - this is my board http://www.atraf-f.net (running in Hebrew ) I just wanted you to have a look at the index look, in your opinion can i optimize the code that makes the index to look like that? I'll upload it if you think you can give me an hand with optimizing it .

thanks
Reply With Quote
  #14  
Old 06-26-2007, 09:03 AM
ThorstenA's Avatar
ThorstenA ThorstenA is offline
 
Join Date: Nov 2004
Posts: 669
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mute View Post
We're highly modified to REMOVE queries We actually make extensive use of memcache to cache things like templates, which reduces the amount of queries per page actually hitting our database server. There are queries, but they hit memcache, and don't count.
Quote:
Originally Posted by kmike View Post
Index - 3 queries
forumdisplay - 9 queries (with "currently active users" enabled)
showthread - 7 queries
It would be so great to know more about your tuning!
Reply With Quote
  #15  
Old 06-26-2007, 04:28 PM
Yellow Slider Yellow Slider is offline
 
Join Date: Aug 2006
Posts: 249
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's killing me, I have 2 boards on my server one has a DB which weights 320 MB
the other one is 800~ MB, and im using memcache (and there isn't any improvement in the page generation time)
- first board - On index Executed 9 queries (0.1.. s')
inside a forum Executed 13 queries (0.2)
inside a thread Executed 9 queries(0.2)
DB 300 MB ( 1 modification installed )

- second board (3.6.7)
on index - Queries Executed 9 (0.66 s')
in a forum - Executed 14 (1.6 s' DAMT!!)
in a thread Queries Executed 24 (0.9 s') (24 que' What The Hell?!)
DB 800 MB (highly modified) - running memcache and it hadn't helped at all..
how can i decrease the page generation time?

i run debug mode, and i don't really know how to read this tool output..

I have to do somthing..

Thanks lot..
Reply With Quote
  #16  
Old 06-26-2007, 05:32 PM
ThorstenA's Avatar
ThorstenA ThorstenA is offline
 
Join Date: Nov 2004
Posts: 669
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You could ask on vbulletin.com -> Server Configuration Forum for more help!
Reply With Quote
  #17  
Old 06-26-2007, 05:48 PM
Yellow Slider Yellow Slider is offline
 
Join Date: Aug 2006
Posts: 249
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It has nothing to do with the server, this is pure programming ..
I have optimized my server, most of the show users online are off , I really don't know what to do, maybe it has something to do with the MySql collection, because we had converted our DB to UTF8 and it had grown form 500 MB to 800..
but I don't think that it's relevant because the other board DB was coverted to UTF8 too and it is running pretty fast..

I'll be happy to get some tips \ help..
Reply With Quote
  #18  
Old 06-26-2007, 06:07 PM
mute mute is offline
 
Join Date: Dec 2002
Location: Phoenixville, PA
Posts: 152
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Unfortunately I can't really help any more than I have in my many posts over at vBulletin.com (search for posts by username KrON).

I have outlined some of the steps we've taken, but I can't really provide actual directions or provide support for modifications made.

A lot of the steps we've taken are complicated or proprietary and not really something to be undertaken by anyone but people with a solid background in PHP and vBulletin.
Reply With Quote
  #19  
Old 06-26-2007, 06:28 PM
Yellow Slider Yellow Slider is offline
 
Join Date: Aug 2006
Posts: 249
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have a partner which have s a solid background in PHP and vBulletin,
I'm asking you for tips , how to know which queries are getting us the reason that we have high Page Generation time, i saw the tool you gave on VB.com but i can't compile MYSQL from source cous it can make problems with the DB cous my board is in Hebrew..

what can i do? i just want to get rid from 5-10 unuseful queries, that are delaying our page load time..
Reply With Quote
  #20  
Old 06-26-2007, 06:51 PM
mute mute is offline
 
Join Date: Dec 2002
Location: Phoenixville, PA
Posts: 152
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well that tool I gave you is very beneficial. You don't have to apply the microslow patch to use the query analyzer I don't think. Turn on your slowquery log. Log your queries for a while, then work backwards to see what queries are taking the most time, and figure out what functionality they relate to.
Reply With Quote
  #21  
Old 07-14-2007, 10:27 PM
BartS BartS is offline
 
Join Date: Jun 2007
Location: Netherlands
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Index: 9
Forum: 16
Thread: 10

Happy with it (we have about 10-15 mods installed), but I will get worried about the 16 query forum display when our board gets more visitors.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:48 PM.


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.04420 seconds
  • Memory Usage 2,305KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete