• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
      • Try XenForo Demo
      • New Posts
      • FAQ
      • Calendar
      • Community
        • Groups
        • Albums
        • Member List
      • Forum Actions
        • Mark Forums Read
      • Quick Links
        • Today's Posts
        • Who's Online
      • Sponsor
        • Sponsor a Feature
        • List of Donors
    • Wiki
    • Support
    • What's New?
    • Buy Now
    • Manual
    • 
    • Forum
    • VaultWiki How-Tos
    • VaultWiki Questions
    • Optimization suggestions?

    1. Welcome to VaultWiki.org, home of the wiki add-on for vBulletin and XenForo!

      VaultWiki allows your existing forum users to collaborate on creating and managing a site's content pages. VaultWiki is a fully-featured and fully-supported wiki solution for vBulletin and XenForo.

      The VaultWiki Team encourages you to join our community of forum administrators and check out VaultWiki for yourself.

    Page 1 of 2 12 Next LastLast
    Results 1 to 15 of 17

    Thread: Optimization suggestions?

    • Thread Tools
      • Show Printable Version
    1. April 26, 2012 #1
      Morrus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Morrus is offline
      Regular Member
      Join Date
      August 19, 2009
      Posts
      55
      Rep Power
      208

      Optimization suggestions?

      We've been suffering crippling slowdown since the wiki was activated. I was wondering if anyone had some tips for optimizaton (wiki settings and so forth)?

      As an aside - I turned off all the autolinking, but it's still autolinking in the forums. I don't know if that's having any effect, but I imagine that would be server-intensive on a large forum.
      Reply With Quote Reply With Quote

    2. April 26, 2012 #2
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,959
      Blog Entries
      18
      Rep Power
      688
      What site pages notice the most significant change? What does vBulletin's Debug Mode say about page generation time, queries, memory on these pages with both VaultWiki enabled and disabled?
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    3. April 27, 2012 #3
      Lord Doys
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Lord Doys is offline
      Junior Member
      Join Date
      September 27, 2011
      Posts
      45
      Rep Power
      182
      Ah, so i am not the only one thinking the overall performance has gone down.
      forum and wiki pages sometimes take up to 10 secs before they are displayed

      I am quite interested in what matters i can take to increase the forums speed again.
      Reply With Quote Reply With Quote

    4. April 27, 2012 #4
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,959
      Blog Entries
      18
      Rep Power
      688
      @Lord Doys, first thing I would do is deal with the uncached templates that the Debug Mode is reporting. Next I would try to deal with your slowest query, which appears near the bottom of most forumdisplay pages:
      Code:
      SELECT ...
      FROM vb3_thread
      ...
      WHERE threadid IN (...)
      ORDER BY sticky DESC, dateline DESC
      This query typically takes over 0.1s to execute before it caches. I don't think this is a standard vB query, and I'm not 100% positive what portion of the query is causing issue but you could try adding an index to your thread table on (threadid, sticky, lastpost). If this doesn't help I would also try placing an index on thread.firstpostid. But sometimes MySQL is just stupid and chooses a slow index for no reason, but we mainly only have this problem with small data sets, and we can't really add FORCE_INDEX to vB's core files, can we?

      I see that VaultWiki takes a similar amount of time to prepare the article list on each page, but I think this is just because it processes over 15,000 rows. This is one of the scalability issues we noticed with version 3 and we had a hard time finding solutions that wouldn't sacrifice functionality - like auto-links or quick look-ups to determine if pages already exist.

      Our hope is that the new architecture in VaultWiki 4 reduces the footprint of the article list while we implement some real solutions to dealing with that many rows on a regular basis (such as not doing it).



      @Morrus, I see you are using vBulletin 3, so you wouldn't be affected by some rogue VaultWiki plugins (now removed) that were known to cause issues with some versions of vBulletin 4. You only have around 100 pages in your wiki, so you shouldn't notice the many-articles issue I discussed above. However, you do have almost 6M posts in your database and over 100K users. Again, I would be really interested in seeing your Debug Mode, especially the Explain view (url?explain=1)
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    5. April 27, 2012 #5
      Lord Doys
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Lord Doys is offline
      Junior Member
      Join Date
      September 27, 2011
      Posts
      45
      Rep Power
      182
      nice! thanx a lot

      vBulletin 4.1.7 Debug Information

      Page Generation 9.01990 seconds
      Memory Usage 34,746KB
      Queries Executed 37 (?)


      to

      Bulletin 4.1.7 Debug Information

      Page Generation 0.58055 seconds
      Memory Usage 33,725KB
      Queries Executed 26 (?)
      Reply With Quote Reply With Quote

    6. April 27, 2012 #6
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,959
      Blog Entries
      18
      Rep Power
      688
      I don't know, the queries might just be cached or something else was cached. Do you have Xcache, Memcached, etc, set up on your forum?

      Happily, I just got a nice long loading screen while on the explain view. I'll see what it says.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    7. April 27, 2012 #7
      Lord Doys
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Lord Doys is offline
      Junior Member
      Join Date
      September 27, 2011
      Posts
      45
      Rep Power
      182
      Quote Originally Posted by pegasus View Post
      I don't know, the queries might just be cached or something else was cached. Do you have Xcache, Memcached, etc, set up on your forum?

      Happily, I just got a nice long loading screen while on the explain view. I'll see what it says.
      not that i know of
      Reply With Quote Reply With Quote

    8. April 27, 2012 #8
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,959
      Blog Entries
      18
      Rep Power
      688
      15 seconds, 8 MySQL 7 PHP

      .24 seconds, threadid,sticky,lastpost - used PRIMARY threadid

      seems the problem is somewhere before the end of global.php, which basically means before the current script has started executing.

      A nice 5.9 second query. Might be making the tag cloud, there's a lot about tags and it's not hitting any indexes against your 24,274 row thread table. This isn't VaultWiki.

      Another 2.3 seconds spent on a weird query to vault_revision, subquerying it, and returning all 32,000 rows before deciding on 0 of up to 10 of them. As I suggested in another thread, this query for your recent edits block is a problem.

      If you're intent on returning every row, you should be getting only 15,000, instead of the total 43,000 the old query made.

      Use this method:
      Code:
      FROM vb3_vault_article AS article
      LEFT JOIN vb3_vault_revision AS revision ON (revision.threadid = article.threadid AND revision.dateline = article.lastmodified)
      LEFT JOIN vb3_thread AS thread ... etc etc etc
      Then you don't even need to subquery or GROUP BY.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    9. April 27, 2012 #9
      Lord Doys
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Lord Doys is offline
      Junior Member
      Join Date
      September 27, 2011
      Posts
      45
      Rep Power
      182
      where the heck do you see those numbers? when i click on the [?] the query isnt even listed there
      Reply With Quote Reply With Quote

    10. April 27, 2012 #10
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,959
      Blog Entries
      18
      Rep Power
      688
      Both of these queries get cached, you have to be lucky to catch it. You basically have to try to go to the [?] view first. Pick a random forum URL, type it into your address bar (or copy and paste from a link), and add ?explain=1 to the address. If you can't get them, you can also go to Settings > Options > Server Settings and Optimization Options > Disable Content Caching.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    11. April 27, 2012 #11
      Lord Doys
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Lord Doys is offline
      Junior Member
      Join Date
      September 27, 2011
      Posts
      45
      Rep Power
      182
      ok beats me...

      with cont cahce disabled:
      Page generated in 30.404980182648 seconds with 50 queries,
      spending 5.9577217102051 doing MySQL queries and
      24.447258472443 doing PHP things.

      still that query which does the latest changes sidebar:
      Time Taken: 0.00023 seconds
      Reply With Quote Reply With Quote

    12. April 27, 2012 #12
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,959
      Blog Entries
      18
      Rep Power
      688
      Even if the sidebar isn't cached so you can see the queries, the query itself can become cached in MySQL so it will just return the same results as last time, rather than looking them up again. Getting around this is difficult, you would have to RESET QUERY CACHE, and then the next page load (you or a user) would be reliably fresh.

      Even with the 24 PHP seconds, I would look into fixing those 2 queries.
      Then a good question is why PHP takes so long. You must have an extra loop in there somewhere that doesn't have an efficient end. Maybe the tag cloud loops for mysql_num_rows (24,000), it's hard to say without code access.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    13. April 27, 2012 #13
      Lord Doys
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Lord Doys is offline
      Junior Member
      Join Date
      September 27, 2011
      Posts
      45
      Rep Power
      182
      i fixed that sidebar query before last post.

      but since it isnt VW related, i wont bother you with it any more.. (unless you want to ;-)
      like a goblin once told me.. "Time is Money my friend"
      Reply With Quote Reply With Quote

    14. April 27, 2012 #14
      Lord Doys
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      Lord Doys is offline
      Junior Member
      Join Date
      September 27, 2011
      Posts
      45
      Rep Power
      182
      holy crap... i disabled the tag cloud sidebar.. even though the cache is on 60 min.. the speed just went up inmense
      Reply With Quote Reply With Quote

    15. April 27, 2012 #15
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,959
      Blog Entries
      18
      Rep Power
      688
      Yes, so I can get some sleep. Hope you figure it out soon. I'm guessing it's also in the sidebar somewhere, since the slowdown stops whenever the page loads from cache. That's why I suggested to look at the tag cloud. I don't know if this is vB's tag cloud or someone else's, I have never used one.

      EDIT: So it was the cloud... I don't know if you have the coding experience, but you can try to fix the cloud or just leave it turned off. If it's vB's report it to them. It was cycling through every record in the database, I'm guessing in both MySQL and PHP, so yeah, that's not ideal to say the least.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    Page 1 of 2 12 Next LastLast

    Similar Threads

    1. New Site Suggestions - looks great so far !
      By InformationNirvana in forum Ideas & Suggestions
      Replies: 5
      Last Post: April 9, 2011, 5:29 PM
    2. Some suggestions and possible bug regarding hiding chapters.
      By Alfa1 in forum VaultWiki Questions
      Replies: 1
      Last Post: August 6, 2010, 12:18 AM
    3. Big Board Optimization
      By Kaelon in forum Pre-Sales Questions
      Replies: 39
      Last Post: June 23, 2010, 7:30 PM
    4. Suggestions
      By Hostboard in forum Ideas & Suggestions
      Replies: 3
      Last Post: October 19, 2009, 2:37 PM
    5. Suggestions on Disambiguation Template
      By Mokonzi in forum VaultWiki Questions
      Replies: 3
      Last Post: May 12, 2009, 4:00 PM

    Bookmarks

    Bookmarks
    • Submit to Digg Digg
    • Submit to del.icio.us del.icio.us
    • Submit to StumbleUpon StumbleUpon
    • Submit to Google Google

    Posting Permissions

    • 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 Off
    • [VIDEO] code is
    • HTML code is Off

    Forum Rules

    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 1:22 PM.
    This site uses cookies to help personalize content, to tailor your experience, and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Learn more… Accept Remind me later
  • striker
    Powered by vBulletin® Version 4.2.5 Beta 2
    Copyright © 2025 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
    Copyright © 2008 - 2024 VaultWiki Team, Cracked Egg Studios, LLC.