• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
    • Wiki
    • Support
      • Manage Subscriptions
      • FAQ
      • Support For
        • VaultWiki 4.x Series
        • VaultWiki.org Site
    • What's New?
    • Buy Now
    • Manual
    • 
    • Support
    • VaultWiki 4.x Series
    • Bug
    • Admin cp: Prefix create/delete post-save processing stage lasts a long time. Possible performance issue?

    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.

    Issue: Admin cp: Prefix create/delete post-save processing stage lasts a long time. Possible performance issue?

    • Issue Tools
      • View Changes
    1. issueid=5766 May 21, 2019 9:42 AM
      ACL ACL is offline
      Regular Member
      Admin cp: Prefix create/delete post-save processing stage lasts a long time. Possible performance issue?

      On a copy of VW 4.1 Beta 1, after waiting an extensive amount of time to save a prefix (#2), I went back to add another one and noted down the save begin and end times. The processing that occurs after creating a prefix lasted around 10 minutes on this occasion. This is with the wiki having only 3 prefixes, 6 areas and 9 pages (according to Special:AllPages).

      By comparison, the upgrade process for this same forum instance from XenForo 2.1.1 to 2.1.2 took 6 minutes. Because the VW processing stage (after creating/deleting a prefix) takes longer to complete than an official XF upgrade despite a small sized wiki, something doesn't seem quite right. There seems to be some kind of performance issue with the jobs after creating a prefix. Comments/thoughts?

      Throughout the prefix processing stage, there were upwards of 240 XHR entries in the browser's network developer tools relating to admin.php?tools/run-job. I can't tell whether this is normal, though 240 does seem very high for 3 prefixes + 6 areas + 9 pages.

      ---

      Earlier today, a few days after the above attempt, I tried adding and deleting prefixes again with a different XF2.1/VW instance that has 37 pages. Adding or deleting a prefix this time resulted in the processing stage taking 15-18 minutes to finalise.

      The xf_job table lists an entry for vw\vw\Handler\Job\Defer. The vw_defer table has a number of rows with what seems like duplicate values (not sure whether this is a bug ). I counted 16 rows with identical dateline, defer and data contents. One by one, each row's data field contents is changed and the complete field is set to 1.

      ---

      PS: This testing was conducted on a consumer NAS product, running Apache 2.4.39 with PHP 7.2.13. I expect operations to be slower than a dedicated web server, but not this slow. General XF performance is fine for testing with this environment.
    Issue Details
    Issue Number 5766
    Issue Type Bug
    Project VaultWiki 4.x Series
    Category Performance
    Status Fixed
    Priority 3 - Loss of Functionality
    Affected Version 4.1.0 Beta 1
    Fixed Version 4.1.0 Beta 1
    Milestone (none)
    Software DependencyXenForo 2.x
    License TypePaid
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. May 21, 2019 10:44 AM
      pegasus pegasus is offline
      VaultWiki Team
      If the duplicate vw_defer entries have defer = 'settings', then this is an issue we are already aware of. The settings entries are queued when rebuildOptionCache is run during XF::runOnce, and at that moment we try to change vw_maintenance = true. This has the undesired effect of pushing rebuildOptionCache onto XF::runOnce again, which is a problem because XF::runOnce uses a while loop instead of a foreach loop (so XF::runOnce does not necessarily mean once!). This would occur infinitely except that XenForo has a limit set for its loop. In the next build, we work around this design by not queuing additional deferred tasks if the data field would be the same.
      Reply Reply  
    2. May 21, 2019 10:54 AM
      ACL ACL is offline
      Regular Member
      Thanks for your prompt reply and cause details. Yes, these duplicate entries do have a defer value of 'settings'.
      Reply Reply  
    3. May 22, 2019 12:32 PM
      pegasus pegasus is offline
      VaultWiki Team
      Marking this as fixed in the next build.
      Reply Reply  
    + Reply

    Assigned Users
    Loading Please Wait
    Tags
    Loading Please Wait
    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 5:59 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.