Index: trunk/phase3/maintenance/archives/patch-rev_bot.sql |
— | — | @@ -0,0 +1,5 @@ |
| 2 | +-- Add rev_bot column. We don't need an index if all we want to be able to do |
| 3 | +-- is, e.g., hide bot edits: most edits are non-bot, so for normal use it's |
| 4 | +-- better to just look at 20% more rows or whatever than to add a new index. |
| 5 | +ALTER TABLE /*$wgDBprefix*/revision |
| 6 | + ADD COLUMN rev_bot tinyint unsigned NOT NULL default 0 AFTER rev_deleted; |
Property changes on: trunk/phase3/maintenance/archives/patch-rev_bot.sql |
___________________________________________________________________ |
Name: svn:eol-style |
1 | 7 | + native |
Index: trunk/phase3/maintenance/archives/patch-revision-user-page-index.sql |
— | — | @@ -0,0 +1,5 @@ |
| 2 | +-- New index on revision table to allow searches for all edits by a given user |
| 3 | +-- to a given page. Added 2007-08-28 |
| 4 | + |
| 5 | +ALTER TABLE /*$wgDBprefix*/revision |
| 6 | + ADD INDEX page_user_timestamp (rev_page,rev_user,rev_timestamp); |
Property changes on: trunk/phase3/maintenance/archives/patch-revision-user-page-index.sql |
___________________________________________________________________ |
Name: svn:eol-style |
1 | 7 | + native |