1 Aug 2008 01:20
SVN: [38321] trunk/phase3/includes/WatchlistEditor.php
<brion <at> svn.wikimedia.org>
2008-07-31 23:20:38 GMT
2008-07-31 23:20:38 GMT
Revision: 38321
Author: brion
Date: 2008-07-31 23:20:37 +0000 (Thu, 31 Jul 2008)
Log Message:
-----------
Revert r38302,38306 -- "Add an order by to the list of watched pages."
This looks wrong -- an order by title wouldn't be indexed properly, and could be rather slow.
Modified Paths:
--------------
trunk/phase3/includes/WatchlistEditor.php
Modified: trunk/phase3/includes/WatchlistEditor.php
===================================================================
--- trunk/phase3/includes/WatchlistEditor.php 2008-07-31 22:10:06 UTC (rev 38320)
+++ trunk/phase3/includes/WatchlistEditor.php 2008-07-31 23:20:37 UTC (rev 38321)
<at> <at> -208,9 +208,6 <at> <at>
$sql = "SELECT wl_namespace, wl_title, page_id, page_len, page_is_redirect
FROM {$watchlist} LEFT JOIN {$page} ON ( wl_namespace = page_namespace
AND wl_title = page_title ) WHERE wl_user = {$uid}";
- if ( !$dbr->implicitOrderby() ) {
- $sql .= ' ORDER BY wl_title';
- }
$res = $dbr->query( $sql, __METHOD__ );
if( $res && $dbr->numRows( $res ) > 0 ) {
$cache = LinkCache::singleton();
RSS Feed