<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://www.adodb.org/dokuwiki/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://www.adodb.org/dokuwiki/feed.php">
        <title>ADOdb - v5:performance</title>
        <description>Database Abstraction Layer for PHP</description>
        <link>https://www.adodb.org/dokuwiki/</link>
        <image rdf:resource="https://www.adodb.org/dokuwiki/lib/exe/fetch.php?media=logo.png" />
       <dc:date>2026-05-17T02:04:48+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://www.adodb.org/dokuwiki/doku.php?id=v5:performance:clearsql&amp;rev=1452647653&amp;do=diff"/>
                <rdf:li rdf:resource="https://www.adodb.org/dokuwiki/doku.php?id=v5:performance:cpuload&amp;rev=1452647653&amp;do=diff"/>
                <rdf:li rdf:resource="https://www.adodb.org/dokuwiki/doku.php?id=v5:performance:expensivesql&amp;rev=1711033949&amp;do=diff"/>
                <rdf:li rdf:resource="https://www.adodb.org/dokuwiki/doku.php?id=v5:performance:healthcheck&amp;rev=1495039715&amp;do=diff"/>
                <rdf:li rdf:resource="https://www.adodb.org/dokuwiki/doku.php?id=v5:performance:healthcheckcli&amp;rev=1629663073&amp;do=diff"/>
                <rdf:li rdf:resource="https://www.adodb.org/dokuwiki/doku.php?id=v5:performance:index&amp;rev=1452654357&amp;do=diff"/>
                <rdf:li rdf:resource="https://www.adodb.org/dokuwiki/doku.php?id=v5:performance:invalidsql&amp;rev=1711034163&amp;do=diff"/>
                <rdf:li rdf:resource="https://www.adodb.org/dokuwiki/doku.php?id=v5:performance:logsql&amp;rev=1629662672&amp;do=diff"/>
                <rdf:li rdf:resource="https://www.adodb.org/dokuwiki/doku.php?id=v5:performance:performance_index&amp;rev=1609221421&amp;do=diff"/>
                <rdf:li rdf:resource="https://www.adodb.org/dokuwiki/doku.php?id=v5:performance:suspicioussql&amp;rev=1711034079&amp;do=diff"/>
                <rdf:li rdf:resource="https://www.adodb.org/dokuwiki/doku.php?id=v5:performance:ui&amp;rev=1453249700&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://www.adodb.org/dokuwiki/lib/exe/fetch.php?media=logo.png">
        <title>ADOdb</title>
        <link>https://www.adodb.org/dokuwiki/</link>
        <url>https://www.adodb.org/dokuwiki/lib/exe/fetch.php?media=logo.png</url>
    </image>
    <item rdf:about="https://www.adodb.org/dokuwiki/doku.php?id=v5:performance:clearsql&amp;rev=1452647653&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2016-01-13T01:14:13+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>clearSql</title>
        <link>https://www.adodb.org/dokuwiki/doku.php?id=v5:performance:clearsql&amp;rev=1452647653&amp;do=diff</link>
        <description>clearSql



Syntax
void clearSql()
Description

The method clearSql() empties entries from the SQL logging table earlier than the current timestamp. This allows the log to be cleared while the logging system is still in use.  

Known Issues

Because the method uses a &#039;delete from&#039; methodology, and that the logging system may accumulated substantial volumes of data</description>
    </item>
    <item rdf:about="https://www.adodb.org/dokuwiki/doku.php?id=v5:performance:cpuload&amp;rev=1452647653&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2016-01-13T01:14:13+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>cpuLoad</title>
        <link>https://www.adodb.org/dokuwiki/doku.php?id=v5:performance:cpuload&amp;rev=1452647653&amp;do=diff</link>
        <description>cpuLoad



Syntax
mixed cpuLoad ()
Description

The function cpuLoad() returns an array of CPU loads under windows, a single integer value under unix, or false if the information is not available.

Windows

After PHP version 5.4, the Windows PHP extension for COM objects is not enabled by default. To enable it, add</description>
    </item>
    <item rdf:about="https://www.adodb.org/dokuwiki/doku.php?id=v5:performance:expensivesql&amp;rev=1711033949&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-03-21T15:12:29+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Syntax</title>
        <link>https://www.adodb.org/dokuwiki/doku.php?id=v5:performance:expensivesql&amp;rev=1711033949&amp;do=diff</link>
        <description>Syntax
string expensiveSql()
Description

The function expensiveSql() returns a list of SQL statements with very high execution times collected by the performance monitor logSql feature, formatted as an HTML table.

Usage


/*
* Connection to DB2 database
*/

$perf = newPerfMonitor($db);

/*
 * Enable logging
*/
$db-&gt;logSql();

/*
 * Execute expensive SQL statement
*/
$SQL = &quot;SELECT * FROM act where actno &gt; 200&quot;;

$db-&gt;execute($SQL);


$h = $perf-&gt;expensiveSql();

print $h;</description>
    </item>
    <item rdf:about="https://www.adodb.org/dokuwiki/doku.php?id=v5:performance:healthcheck&amp;rev=1495039715&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2017-05-17T16:48:35+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>healthCheck</title>
        <link>https://www.adodb.org/dokuwiki/doku.php?id=v5:performance:healthcheck&amp;rev=1495039715&amp;do=diff</link>
        <description>healthCheck



Syntax
mixed healthCheck()
Description

The method healthCheck() executes a single database health check pass and writes the information to an html format table. The output provided is the same as that returned by healthCheckcli().

There is no consistency between databases as to the information returned, as it is dependent on what information is publicly exposed by the database.</description>
    </item>
    <item rdf:about="https://www.adodb.org/dokuwiki/doku.php?id=v5:performance:healthcheckcli&amp;rev=1629663073&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-08-22T20:11:13+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>healthCheckCli</title>
        <link>https://www.adodb.org/dokuwiki/doku.php?id=v5:performance:healthcheckcli&amp;rev=1629663073&amp;do=diff</link>
        <description>healthCheckCli



Syntax
mixed healthCheckCli()
Description

The method healthCheckCli() executes a single database health check pass and reports to the console. The output provided is the same as that stored by the healthCheck().

There is no consistency between databases as to the information returned, as it is dependent on what information is publicly exposed by the database.</description>
    </item>
    <item rdf:about="https://www.adodb.org/dokuwiki/doku.php?id=v5:performance:index&amp;rev=1452654357&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2016-01-13T03:05:57+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Performance Monitoring</title>
        <link>https://www.adodb.org/dokuwiki/doku.php?id=v5:performance:index&amp;rev=1452654357&amp;do=diff</link>
        <description>Performance Monitoring



Pages in this namespace:

	* clearSql
	* cpuLoad
	* healthCheck
	* healthCheckCli
	* invalidSql
	* logSql
	* Performance Monitoring
	* suspiciousSql
	* Syntax
	* uI</description>
    </item>
    <item rdf:about="https://www.adodb.org/dokuwiki/doku.php?id=v5:performance:invalidsql&amp;rev=1711034163&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-03-21T15:16:03+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>invalidSql</title>
        <link>https://www.adodb.org/dokuwiki/doku.php?id=v5:performance:invalidsql&amp;rev=1711034163&amp;do=diff</link>
        <description>invalidSql



Syntax
string invalidSql()
Description

The function invalidSql() returns a list of invalid SQL statements collected by the performance monitor logSql feature, formatted as an HTML table.

Usage


/*
* Connection to DB2 database
*/

$perf = newPerfMonitor($db);

/*
 * Enable logging
*/
$db-&gt;logSql();

/*
 * Execute invalid SQL statement
*/
$SQL = &quot;SELECT * FROM act where actno &gt; &#039;A&#039;&quot;;

$db-&gt;execute($SQL);


$h = $perf-&gt;invalidSql();</description>
    </item>
    <item rdf:about="https://www.adodb.org/dokuwiki/doku.php?id=v5:performance:logsql&amp;rev=1629662672&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2021-08-22T20:04:32+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>logSql</title>
        <link>https://www.adodb.org/dokuwiki/doku.php?id=v5:performance:logsql&amp;rev=1629662672&amp;do=diff</link>
        <description>logSql



There is a performance overhead to logging the SQL statements, use only when necessary.

Syntax
void logSql(
     optional bool $enable=true
     )
Description

The function logSql() enables or disables the query logging facility. Upon issuance of the command, all SQL statements executed are logged to the</description>
    </item>
    <item rdf:about="https://www.adodb.org/dokuwiki/doku.php?id=v5:performance:performance_index&amp;rev=1609221421&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2020-12-29T05:57:01+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Performance Monitoring</title>
        <link>https://www.adodb.org/dokuwiki/doku.php?id=v5:performance:performance_index&amp;rev=1609221421&amp;do=diff</link>
        <description>Index


Performance Monitoring

Description

ADOdb contains a number of performance monitoring tools, such as query logging, hardware performance, and caching statistics. In order to use performance monitoring, the driver must be one of those specified below.</description>
    </item>
    <item rdf:about="https://www.adodb.org/dokuwiki/doku.php?id=v5:performance:suspicioussql&amp;rev=1711034079&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-03-21T15:14:39+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>suspiciousSql</title>
        <link>https://www.adodb.org/dokuwiki/doku.php?id=v5:performance:suspicioussql&amp;rev=1711034079&amp;do=diff</link>
        <description>suspiciousSql



Syntax
string suspiciousSql()
Description

The function suspiciousSql() returns a list of SQL statements with high average execution times collected by the performance monitor logSql feature, formatted as an HTML table.

Usage


/*
* Connection to DB2 database
*/

$perf = newPerfMonitor($db);

/*
 * Enable logging
*/
$db-&gt;logSql();

/*
 * Execute suspicious SQL statement
*/
$SQL = &quot;SELECT * FROM act where actno &gt; 200&quot;;

$db-&gt;execute($SQL);


$h = $perf-&gt;suspiciousSql();

print $…</description>
    </item>
    <item rdf:about="https://www.adodb.org/dokuwiki/doku.php?id=v5:performance:ui&amp;rev=1453249700&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2016-01-20T00:28:20+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>uI</title>
        <link>https://www.adodb.org/dokuwiki/doku.php?id=v5:performance:ui&amp;rev=1453249700&amp;do=diff</link>
        <description>uI



Syntax
string uI()
Description

The method uI() provides a simple graphical interface into the available commands of the performance monitor.

Usage


/*
* Connection to database
*/
$perf = newPerfMonitor($db);
$h = $perf-&gt;uI();
print $h;


Output</description>
    </item>
</rdf:RDF>
