PostNuke: A Flexible Open Source Content Management System
home | forum | international support | contact us

Support Forum

Start ::  Developers Corner ::  0.8 Theme Design ::  SQLcount is this normal ?

Moderated by: Support Team

Bottom
SQLcount is this normal ?

  • Link to this postingPosted: 08.02.2008, 13:56
    Profile Homepage
    mumuri
    rank:
    pnSoftmore pnSoftmore
    registered:
     May 2004
    Status:
    offline
    last visit:
    13.05.08
    Posts:
    56
    i would like to know what the true mining of the sqlcount that we can display in the footer of the pages

    in the options

    Quote
    1. $PNConfig['Debug']['debug'] = 1; //
    2. $PNConfig['Debug']['pagerendertime'] = 0; // display page render time, 0 to disable
    3. $PNConfig['Debug']['sql_adodb'] = 0; // adodb debug flag, generates lots of print output
    4. $PNConfig['Debug']['sql_count'] = 1;


    indeed if i count them in adodb-mysql.inc.php ( i added a global variable in the mysql_query function with an increment), the results are not the same.

    is this normal ?
    do you count only distinct queries ?

    EDIT : the number is the same on "normal" page, but when i try to load the page of the pnForum 2.7 (for version PN .764), the number are differents.



    edited by: mumuri, Feb 08, 2008 - 06:11 AM

    -----
    Top Flood - a discussions board based on pnForum
  • Link to this postingPosted: 08.02.2008, 22:27
    Profile Homepage
    markwest
    rank:
    Moderator Moderator
    registered:
     March 2002
    Status:
    offline
    last visit:
    13.05.08
    Posts:
    7649
    I don't have the code to hand to check this but if I recall this debug option only counts queries that go through the new object library. For all modules that use the old style direct access to the database connection the queries aren't counted here.

    I assume that the queries display are less than those found via editing adodb directly?

    -Mark
  • Link to this postingPosted: 09.02.2008, 20:24
    Profile Homepage
    mumuri
    rank:
    pnSoftmore pnSoftmore
    registered:
     May 2004
    Status:
    offline
    last visit:
    13.05.08
    Posts:
    56
    thanks for the answers,

    yes it's less (40 queries displayed for a pnForum "viewtopic" page against 70 if i display the "true" number of queries)


    -----
    Top Flood - a discussions board based on pnForum

Start ::  Developers Corner ::  0.8 Theme Design ::  SQLcount is this normal ?

Main Menu

Extensions Database

Documentation

Development

Login





 


 Log in Problems?
 New User? Sign Up!

Donate to PostNuke