WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. steeleware
    Member
    Posted 11 months 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
    Member
    Plugin Author

    Posted 11 months 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 1 month ago #

    I'm having the same problem.

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

  4. Frank
    Member
    Plugin Author

    Posted 1 month 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.

Reply

You must log in to post.

About this Plugin

About this Topic