From: lpsolit%gmail.com <> Date: Wed, 23 Mar 2005 05:01:50 +0000 (+0000) Subject: Bug 286625: Add more indexes to bugs_activity table - Patch by Shane H. W. Travis... X-Git-Tag: bugzilla-2.18.1~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc3087cbff34cdcb9da9150cb5b6bc54ffdee6fa;p=thirdparty%2Fbugzilla.git Bug 286625: Add more indexes to bugs_activity table - Patch by Shane H. W. Travis r=joel, a=justdave --- diff --git a/checksetup.pl b/checksetup.pl index 74b718c36b..34d89e468b 100755 --- a/checksetup.pl +++ b/checksetup.pl @@ -1599,7 +1599,12 @@ $table{bugs_activity} = index (bug_id), index (bug_when), - index (fieldid)'; + index (fieldid), + index (bug_id, fieldid), + + fulltext (added), + fulltext (removed), + fulltext (added, removed)'; $table{attachments} = @@ -4521,6 +4526,13 @@ if ($emailflags_count) { } +# 2005-03-17 Add more indices for bugs_activity -- Bug 286625 +print "Adding more indexes for bugs_activity tables.\n"; +$dbh->do("ALTER TABLE bugs_activity ADD INDEX bugs_activity_idfield (bug_id, fieldid)"); +$dbh->do("ALTER TABLE bugs_activity ADD FULLTEXT bugs_activity_added (added)"); +$dbh->do("ALTER TABLE bugs_activity ADD FULLTEXT bugs_activity_removed (removed)"); +$dbh->do("ALTER TABLE bugs_activity ADD FULLTEXT bugs_activity_added_removed (added, removed)"); + # # Final checks...