|
Adodb Dokumentation
V5.14 8 Sept 2011
|


Öffentliche Methoden | |
| perf_mysql (&$conn) | |
| Explain ($sql, $partial=false) | |
| Tables () | |
| GetReads () | |
| GetWrites () | |
| FindDBHitRatio () | |
| GetQHitRatio () | |
| GetInnoDBHitRatio () | |
| GetKeyHitRatio () | |
| optimizeTable ($table, $mode=ADODB_OPT_LOW) | |
Datenfelder | |
| $tablesSQL = 'show table status' | |
| $createTableSQL | |
| $settings | |
| $optimizeTableLow = 'CHECK TABLE %s FAST QUICK' | |
| $optimizeTableHigh = 'OPTIMIZE TABLE %s' | |
Definiert in Zeile 18 der Datei perf-mysql.inc.php.
| optimizeTable | ( | $ | table, |
| $ | mode = ADODB_OPT_LOW |
||
| ) |
Definiert in Zeile 291 der Datei perf-mysql.inc.php.
{
if ( !is_string( $table)) return false;
$conn = $this->conn;
if ( !$conn) return false;
$sql = '';
switch( $mode) {
case ADODB_OPT_LOW : $sql = $this->optimizeTableLow; break;
case ADODB_OPT_HIGH : $sql = $this->optimizeTableHigh; break;
default :
{
// May dont use __FUNCTION__ constant for BC (__FUNCTION__ Added in PHP 4.3.0)
ADOConnection::outp( sprintf( "<p>%s: '%s' using of undefined mode '%s'</p>", __CLASS__, __FUNCTION__, $mode));
return false;
}
}
$sql = sprintf( $sql, $table);
return $conn->Execute( $sql) !== false;
}
| $createTableSQL |
"CREATE TABLE adodb_logsql ( created datetime NOT NULL, sql0 varchar(250) NOT NULL, sql1 text NOT NULL, params text NOT NULL, tracer text NOT NULL, timer decimal(16,6) NOT NULL )"
Erneute Implementation von adodb_perf.
Definiert in Zeile 22 der Datei perf-mysql.inc.php.