Part two of allowing Special:Export to work on very long page histories...
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 20 Aug 2008 01:40:35 +0000 (01:40 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 20 Aug 2008 01:40:35 +0000 (01:40 +0000)
commitc9974f332586c17eaa2bccd1600aa832872692aa
treeefee34fdf7d08d963d6ea6fd2337636fba44d50f
parentb16705dcb12b0354ff0d09d3a831a03b05dbee24
Part two of allowing Special:Export to work on very long page histories...

Part 1 was disabling the output buffers, allowing us to stream output continuously.

Part 2, here, is to use an unbuffered query to load the page/revision data, as we do for the command-line scripts. (This is done in what Tim assures me is a portable, database-neutral way, unlike all the maint scripts which still use old hacks.) This lets us actually stream the *input* -- otherwise streaming the output is darn useless!

Part 3 will be fixing up things like the max execution time. :)
includes/specials/SpecialExport.php