vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v1.x (Archive - Closed for Posting) > Troubleshooting / "How do I..." Questions

 
 
Thread Tools Display Modes
  #1  
Old 08-18-2005, 03:55 PM
Lionel Lionel is offline
Senior Member
 
Join Date: Jan 2004
Location: Miami
Posts: 1,040
Default amount of queries

Home page takes 6.44 seconds to load. Is 43 queries on homepage considered a lot? Or should I look at some other place? I tried to disable navbar, modules, one by one trying to find the slow culprit, no luck.
  #2  
Old 08-18-2005, 04:19 PM
KW802's Avatar
KW802 KW802 is offline
Administrator
 
Join Date: Mar 2004
Location: A galaxy far, far away...
Posts: 5,030
Default Re: amount of queries

Try turning off all of your non-stock modules one-by-one. Even with a few extra modules on my home page (eg: random gallery, random arcade, etc.) I'm only coming in at 16 queries.
  #3  
Old 08-18-2005, 04:21 PM
Lionel Lionel is offline
Senior Member
 
Join Date: Jan 2004
Location: Miami
Posts: 1,040
Default Re: amount of queries

how long does your page takes to load? I wish I had the speed of vbadvanced home. Six seconds is a lot.
  #4  
Old 08-18-2005, 04:31 PM
KW802's Avatar
KW802 KW802 is offline
Administrator
 
Join Date: Mar 2004
Location: A galaxy far, far away...
Posts: 5,030
Default Re: amount of queries

For http://www.CoolSciFi.com the load stats are....
PHP Code:
Page generated in 0.22852 seconds with 16 queries [Server Loads0.16 0.03 0.01
Take a look at this hack from Erwin (assuming that you're still running vB 3.0.x)....

http://www.vbulletin.org/forum/showthread.php?t=59700

It's what I use to catch uncached templates and for load times. Thinking out load... those 43 queries might be the results of some uncached templates.
  #5  
Old 08-18-2005, 04:42 PM
Lionel Lionel is offline
Senior Member
 
Join Date: Jan 2004
Location: Miami
Posts: 1,040
Default Re: amount of queries

Your page loads really fast. I did a debug and took care of all uncached templates. I will however look at that hack. Thanks.
  #6  
Old 08-18-2005, 04:46 PM
Lionel Lionel is offline
Senior Member
 
Join Date: Jan 2004
Location: Miami
Posts: 1,040
Default Re: amount of queries

Here are the results: all templates were cached
Page generated in 6.14095 seconds with 43 queries [Server Loads: 0.74 0.75 : 0.59]
  #7  
Old 08-18-2005, 05:29 PM
Mark.B Mark.B is offline
Junior Member
 
Join Date: Apr 2004
Posts: 25
Default Re: amount of queries

I've somehow managed 36 on mine. I already have Erwin's hack and there are no uncached templates.

Having said that, it isn't loading particularly slowly so no real problems. But I may try and isoltae where the extra queries are.
  #8  
Old 08-18-2005, 05:45 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: amount of queries

Open your forum/includes/config.php file and add this at the bottom of the file, just before the ?> mark:
Code:
$debug = 1;
Save & upload, go to your CMPS page and add "?explain=1" to the end of the URL, and post the results of that page here. Then remove the line of code you added to your config.php file as leaving it there could be a security risk.
  #9  
Old 08-18-2005, 06:46 PM
Mark.B Mark.B is offline
Junior Member
 
Join Date: Apr 2004
Posts: 25
Default Re: amount of queries

So far I've found that the Quick Moderation module has six queries. That seems to be the biggest one.
  #10  
Old 08-18-2005, 08:54 PM
Lionel Lionel is offline
Senior Member
 
Join Date: Jan 2004
Location: Miami
Posts: 1,040
Default Re: amount of queries

?explain=1
?&explain=1
both return a blank page.

However, I am able to reduce the amount of queries on homepage to 20
and the load time is 1.47 seconds.

I did that by using the great functionality of vbadvanced and splitting that page into two.

The second page I use to display the Geek articles and all the other addons hacks (vbjournal, links, gallery etc...).

That page calls up 26 queries and takes 5.5 seconds to load.

I also found out that the quick moderation module is pulling in a lot of queries.
  #11  
Old 08-18-2005, 11:03 PM
Lionel Lionel is offline
Senior Member
 
Join Date: Jan 2004
Location: Miami
Posts: 1,040
Default Re: amount of queries

I put the $debug code in global.php and this what I get for results. It remains the same when I click or put explain. Don't know if this is what you are looking for? I'd love to have my site as fast as here.

adv_portal (1)
adv_portal_G180_top_posters (1)
adv_portal_G180_top_posters_data (10)
adv_portal_buddylist (1)
adv_portal_footer (1)
adv_portal_gallery_random (1)
adv_portal_geekfeaturedarticle (1)
adv_portal_haitiwebs_articles (1)
adv_portal_latestgeekarticlebits (2)
adv_portal_latestgeekarticles (1)
adv_portal_latestjokes (1)
adv_portal_latestjokesbits (2)
adv_portal_latestjournalentry (1)
adv_portal_latestlinks (1)
adv_portal_linkbits (5)
adv_portal_news_archivebits (15)
adv_portal_nowplay (1)
adv_portal_nowplaybits (5)
adv_portal_onlineusers (1)
adv_portal_stats (1)
adv_portal_taux (1)
adv_portal_thegeeknewsbits (8)
adv_portal_tools (1)
adv_portal_topstats (1)
customquicklink (9)
footer (2)
forumhome_loggedinuser (5)
gobutton (1)
header (1)
headinclude (1)
journal_latestentrybits (5)
navbar (1)
navbar_link (1)
navbar_uttstore_actions (19)
option (10)
phpinclude_start (1)
spacer_close (1)
spacer_open (1)
timezone (1)
top_thanks (10)
username_loggedin (1)
vbpager_new (1)

Last edited by Lionel; 08-18-2005 at 11:05 PM.
  #12  
Old 08-19-2005, 12:10 AM
Lionel Lionel is offline
Senior Member
 
Join Date: Jan 2004
Location: Miami
Posts: 1,040
Default Re: amount of queries

By splitting the homepage I got it to load in 1.5 + seconds, but the server load shoots up 3.5+ with 61 connected.

The second page takes from 5 to 7 seconds to load. Once I disable the stats and the nowplaying, I get it around 2.50 + seconds
  #13  
Old 08-19-2005, 10:56 AM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: amount of queries

Quote:
Originally Posted by Lionel
?explain=1
?&explain=1
both return a blank page.
That should return a listing of all the queries and such. Try adding that code again, then at the bottom of the page near where it lists the templates used you should see an "(Explain)" link that will take you to the same place.

Quote:
By splitting the homepage I got it to load in 1.5 + seconds, but the server load shoots up 3.5+ with 61 connected.

The second page takes from 5 to 7 seconds to load. Once I disable the stats and the nowplaying, I get it around 2.50 + seconds
That's still quite a while. I have about 6 custom modules on my personal site and the load time is still only about 0.2 - 0.3 seconds.
Another thing I might suggest would be to upgrade to 2.0 of the CMPS. There were a couple of optimizations in that version that could cut down the query time for the news and latest threads modules pretty significantly.
  #14  
Old 08-19-2005, 04:45 PM
phoenixdown phoenixdown is offline
Senior Member
 
Join Date: May 2004
Posts: 138
Default Re: amount of queries

I think its the journal - disable those plug ins and you'll see it drop down.
  #15  
Old 08-19-2005, 04:54 PM
zain jaffer zain jaffer is offline
Member
 
Join Date: Oct 2004
Posts: 38
Default Re: amount of queries

for me the statistic mod really slowed down the site but i still had 2.00 so idisabled that and it loaded my site fast again
  #16  
Old 08-19-2005, 10:04 PM
Lionel Lionel is offline
Senior Member
 
Join Date: Jan 2004
Location: Miami
Posts: 1,040
Default Re: amount of queries

Quote:
Originally Posted by Brian
That should return a listing of all the queries and such. Try adding that code again, then at the bottom of the page near where it lists the templates used you should see an "(Explain)" link that will take you to the same place.


That's still quite a while. I have about 6 custom modules on my personal site and the load time is still only about 0.2 - 0.3 seconds.
Another thing I might suggest would be to upgrade to 2.0 of the CMPS. There were a couple of optimizations in that version that could cut down the query time for the news and latest threads modules pretty significantly.
explain still gives me a blank page.
I am going to look at 2.0 and see if I could upgrade without loosing anything.

The real killer for me is the nowplay hack on the second page, plus the registered today added in stats.
  #17  
Old 08-19-2005, 10:05 PM
Lionel Lionel is offline
Senior Member
 
Join Date: Jan 2004
Location: Miami
Posts: 1,040
Default Re: amount of queries

Quote:
Originally Posted by phoenixdown
I think its the journal - disable those plug ins and you'll see it drop down.
journal is not the problem at all. That was my first suspicion since it had cause problems earlier solved by Brian.
  #18  
Old 08-20-2005, 02:47 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: amount of queries

Quote:
Originally Posted by Lionel
explain still gives me a blank page.
Does it give you a blank page when clicking on the (Explain) link on a normal forum page as well? If so then you've probably added a hack incorrectly as you should get a page printing out all of the queries and such for debugging purposes.
  #19  
Old 08-20-2005, 02:58 PM
Lionel Lionel is offline
Senior Member
 
Join Date: Jan 2004
Location: Miami
Posts: 1,040
Default Re: amount of queries

Yes it still does. Even on a the new 'virgin' page from the cms upgrade 2.0
  #20  
Old 08-20-2005, 03:17 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: amount of queries

I'd suggest getting a fresh, un-hacked copy of your includes/functions.php file and try uploading that to see if it helps.
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
More queries... WiBu Troubleshooting & Problems 3 06-06-2005 11:57 AM
[Q] What is the max amount of directories? MikaK "How Do I..." Questions 13 02-03-2005 04:51 PM
run Queries? boo Chit Chat 5 12-16-2004 05:16 PM
Queries Zorobz Troubleshooting / "How do I..." Questions 2 12-11-2004 10:32 AM


All times are GMT -4. The time now is 03:48 AM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.