Commit 9d98a8fd authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Add lanid as a KEY to vlantag_history, getting some pretty slow queries.

parent 5ca66425
......@@ -5724,7 +5724,8 @@ CREATE TABLE `vlantag_history` (
`released` int(10) unsigned default NULL,
PRIMARY KEY (`history_id`),
KEY `tag` (`tag`,`history_id`),
KEY `exptidx` (`exptidx`)
KEY `exptidx` (`exptidx`),
KEY `lanid` (`lanid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
......
#
# Add key to vlantag_history
#
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
if (!DBKeyExists("vlantag_history", "lanid")) {
DBQueryFatal("ALTER TABLE vlantag_history " .
"ADD KEY `lanid` (`lanid`)");
}
return 0;
}
1;
# Local Variables:
# mode:perl
# End:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment