v5:performance:expensivesql
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->logSql(); /* * Execute expensive SQL statement */ $SQL = "SELECT * FROM act where actno > 200"; $db->execute($SQL); $h = $perf->expensiveSql(); print $h;
Output
v5/performance/expensivesql.txt · Last modified: 2024/03/21 16:12 by dregad