Testing 1.5 on my Mac w/ MySQL 5.0.13 this gets the message page setup down
to under a minute; fast enough that the browser doesn't time out. :P
Still too slow; bulk inserts would perhaps be an improvement.
* Added a limit to the size of image files which can be thumbnailed
* (bug 2981) Linktrail for Tamil (ta)
* (bug 3722) Update of Arabic language (ar) Namespace changes
+* Wrap message page insertions in a transaction to speed up installation
=== Caveats ===
$talk = $wgContLang->getNsText( NS_TALK );
$mwtalk = $wgContLang->getNsText( NS_MEDIAWIKI_TALK );
+ # Merge these into a single transaction for speed
+ $dbw->begin();
+
# Process each message
foreach ( $sortedArray as $key => $enMsg ) {
if ( $key == '' ) {
$article->updateRevisionOn( $dbw, $revision );
}
}
+ $dbw->commit();
# Clear the relevant memcached key
print 'Clearing message cache...';