xF1 Slow query logger

  • Downloading from our site will require you to have a paid membership. Upgrade to a Premium Membership today!

    Dont forget read our Rules! Also anyone caught Sharing this content will be banned. By using this site you are agreeing to our rules so read them. Saying I did not know is simply not an excuse! You have been warned.

Radio

    ven0m

    Administrator
    Staff member
    Administrator
    Moderator
    Platinum
    xenForo 2.x.x
    xenForo 1.x.x
    Contributor
    vBulletin All Access Pass
    The Chest
    Verified
    Ultra Platinum VIP
    Platinum VIP
    Gold VIP
    Silver VIP
    Premium
    Member
    Jul 17, 2005
    20,498
    7,735
    321
    localhost
    Heisenberg submitted a new resource:

    - Generate a stack trace on slow queries

    Additional Requirements:
    php 5.6+
    License:
    MIT Licence
    Visible Branding:
    No
    Generates an error log entry when a slow query is detected. No configuration required.

    Once it has been running for a while, I recommend disabling the add-on until you have pushed out fixes or understood why the previous logged queries are occurring.

    The initial start of a search is known to take a while, this appears to be a design issue where all content needs to be loaded and then verified.

    Limitations...

     
    Last edited:

    ven0m

    Administrator
    Staff member
    Administrator
    Moderator
    Platinum
    xenForo 2.x.x
    xenForo 1.x.x
    Contributor
    vBulletin All Access Pass
    The Chest
    Verified
    Ultra Platinum VIP
    Platinum VIP
    Gold VIP
    Silver VIP
    Premium
    Member
    Jul 17, 2005
    20,498
    7,735
    321
    localhost
    Heisenberg updated with a new update entry:



    Feature update
    Now reports slow transactions.
    • May get confused with nested transactions.
    • May not capture all transactions.
    • May invalidate assumptions if using a non-default/custom profiler

     

    ven0m

    Administrator
    Staff member
    Administrator
    Moderator
    Platinum
    xenForo 2.x.x
    xenForo 1.x.x
    Contributor
    vBulletin All Access Pass
    The Chest
    Verified
    Ultra Platinum VIP
    Platinum VIP
    Gold VIP
    Silver VIP
    Premium
    Member
    Jul 17, 2005
    20,498
    7,735
    321
    localhost
    Heisenberg updated with a new update entry:



    Please update or disable this add-on ASAP
    • Prevent potential catastrophic data-loss due to re-using the database connection when reporting a slow individual query.
      • Slow transactions reporting is OK
      • When moving posts between threads, this can cause the permanent deleting of any source thread(s) if the slow query logging is triggered.

     

    ven0m

    Administrator
    Staff member
    Administrator
    Moderator
    Platinum
    xenForo 2.x.x
    xenForo 1.x.x
    Contributor
    vBulletin All Access Pass
    The Chest
    Verified
    Ultra Platinum VIP
    Platinum VIP
    Gold VIP
    Silver VIP
    Premium
    Member
    Jul 17, 2005
    20,498
    7,735
    321
    localhost
    Heisenberg updated with a new update entry:



    • Fix error when reporting a slow query.

     

    ven0m

    Administrator
    Staff member
    Administrator
    Moderator
    Platinum
    xenForo 2.x.x
    xenForo 1.x.x
    Contributor
    vBulletin All Access Pass
    The Chest
    Verified
    Ultra Platinum VIP
    Platinum VIP
    Gold VIP
    Silver VIP
    Premium
    Member
    Jul 17, 2005
    20,498
    7,735
    321
    localhost
    Heisenberg updated with a new update entry:



    Add "Track stack traces for queries" option (default disabled)
    • On the debug output page, displays a stack trace under the explain table.