maintenance/storage/testCompression.php File Reference

Go to the source code of this file.

Variables

 $optionsWithArgs = array( 'start', 'limit', 'type' )
if(!isset($args[0])) $title = Title::newFromText( $args[0] )
 $dbr = wfGetDB( DB_SLAVE )
 $res
 $blob = new $type
 $hashes = array()
 $keys = array()
 $uncompressedSize = 0
 $t = -microtime( true )
foreach($res as $row) $serialized = serialize( $blob )


Variable Documentation

$blob = new $type

$dbr = wfGetDB( DB_SLAVE )

Definition at line 28 of file testCompression.php.

$hashes = array()

$keys = array()

$optionsWithArgs = array( 'start', 'limit', 'type' )

Definition at line 3 of file testCompression.php.

$res

Initial value:

 $dbr->select( 
        array( 'page', 'revision', 'text' ),
        '*',
        array( 
                'page_namespace' => $title->getNamespace(),
                'page_title' => $title->getDBkey(),
                'page_id=rev_page',
                'rev_timestamp > ' . $dbr->addQuotes( $dbr->timestamp( $start ) ),
                'rev_text_id=old_id'
        ), __FILE__, array( 'LIMIT' => $limit )
)

Definition at line 29 of file testCompression.php.

foreach ($res as $row) $serialized = serialize( $blob )

foreach ($keys as $id=> $key) $t = -microtime( true )

Definition at line 45 of file testCompression.php.

if (!isset($args[0])) $title = Title::newFromText( $args[0] )

Definition at line 11 of file testCompression.php.

$uncompressedSize = 0

Definition at line 44 of file testCompression.php.


Generated on Sat Sep 5 02:08:28 2009 for MediaWiki by  doxygen 1.5.9