MediaWiki  REL1_22
BenchmarkDeleteTruncate Class Reference

Maintenance script that benchmarks SQL DELETE vs SQL TRUNCATE. More...

Inheritance diagram for BenchmarkDeleteTruncate:
Collaboration diagram for BenchmarkDeleteTruncate:

List of all members.

Public Member Functions

 __construct ()
 execute ()

Private Member Functions

 delete ($dbw)
 insertData ($dbw)
 truncate ($dbw)

Detailed Description

Maintenance script that benchmarks SQL DELETE vs SQL TRUNCATE.

Definition at line 31 of file bench_delete_truncate.php.


Constructor & Destructor Documentation

Reimplemented from Benchmarker.

Definition at line 33 of file bench_delete_truncate.php.


Member Function Documentation

BenchmarkDeleteTruncate::delete ( dbw) [private]
Parameters:
$dbwDatabaseBase
Returns:
void

Definition at line 89 of file bench_delete_truncate.php.

Reimplemented from Maintenance.

Definition at line 38 of file bench_delete_truncate.php.

References $test, insertData(), truncate(), and wfGetDB().

Parameters:
$dbwDatabaseBase
Returns:
void

Definition at line 76 of file bench_delete_truncate.php.

References array(), and as.

Referenced by execute().

BenchmarkDeleteTruncate::truncate ( dbw) [private]
Parameters:
$dbwDatabaseBase
Returns:
void

Definition at line 97 of file bench_delete_truncate.php.

References $test.

Referenced by execute().


The documentation for this class was generated from the following file: