Fix for bug 238800: speeds up editflagtypes.cgi list of flags to tolerable level by adding index on flags.type_id; r=justdave; a=justdave
git-svn-id: svn://10.0.0.236/trunk@172450 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
ec3743ae74
commit
e092ad1d00
@ -371,6 +371,7 @@ use constant ABSTRACT_SCHEMA => {
|
||||
flags_bug_id_idx => [qw(bug_id attach_id)],
|
||||
flags_setter_id_idx => ['setter_id'],
|
||||
flags_requestee_id_idx => ['requestee_id'],
|
||||
flags_type_id_idx => ['type_id'],
|
||||
],
|
||||
},
|
||||
|
||||
|
||||
@ -3890,6 +3890,12 @@ if ($dbh->bz_get_field_def('components', 'initialowner')->[2]) { # if NULL
|
||||
'mediumint NOT NULL');
|
||||
}
|
||||
|
||||
# 2005-03-28 - bug 238800 - index flags.type_id to make editflagtypes.cgi speedy
|
||||
if (!defined $dbh->bz_get_index_def('flags','type_id')) {
|
||||
print "Adding index for type_id column in flags table...\n";
|
||||
$dbh->do('ALTER TABLE flags ADD INDEX (type_id)');
|
||||
}
|
||||
|
||||
} # END LEGACY CHECKS
|
||||
|
||||
# If you had to change the --TABLE-- definition in any way, then add your
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user