WordPress.org

Forums

Debug Objects
[resolved] Different values in num_query and query? (4 posts)

  1. steeleware
    Member
    Posted 1 year ago #

    First of all, thanks for the great plugin! I'm occasionally experiencing very slow load times on my web-host and I'm using your plugin to troubleshoot.

    Can you tell me what the num_queries value is and how it differs from queries? I see this message but I don't understand it: "Different values in num_query and query?"

    Here's my example - you can see the length of time it took for the page to render is 31.4 seconds.

    Total query time: 411.7ms for 20 queries (0.411673784255981s)
    Total num_query time: 31.583 for 22 num_queries.
    ยป Different values in num_query and query? - please set the constant define( 'SAVEQUERIES', TRUE );in your wp-config.php
    Page generated in 31,446.3ms; (31.4462878704071044921875s); 98.69% PHP; 1.31% MySQL

    When the page loads fast, I don't see the num_query value:

    Total query time: 15.7ms for 22 queries (0.015749216079712s)
    Page generated in 504.5ms; (0.5045380592346191406250s); 96.88% PHP; 3.12% MySQL

    https://wordpress.org/plugins/debug-objects/

  2. Frank Bueltge
    Member
    Plugin Author

    Posted 1 year ago #

    If you set the constant define( 'SAVEQUERIES', TRUE );in your wp-config.php is the difference done.
    The num_query is the all queries and the queries is the count from WP. If you have not set the constant, WP will start later with count the queries.

    Thats all.

  3. screampuff
    Member
    Posted 4 months ago #

    I'm having the same problem.

    define( 'SAVEQUERIES', TRUE ); did not work.

  4. Frank Bueltge
    Member
    Plugin Author

    Posted 4 months ago #

    Maybe you have a plugin o.o. that hook in this process.
    But the difference is not a problem. If you analyze, then it is important, that you focus on one value and compare this.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Debug Objects
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic