Commit 102b42ef authored by Robert Ricci's avatar Robert Ricci

Added another key to the virt_routes table to speed up queries.

parent f731bbbf
......@@ -1131,7 +1131,8 @@ CREATE TABLE virt_routes (
dst_mask varchar(15) default '255.255.255.0',
nexthop varchar(32) NOT NULL default '',
cost int(11) NOT NULL default '0',
PRIMARY KEY (pid,eid,vname,src,dst)
PRIMARY KEY (pid,eid,vname,src,dst),
KEY pid (pid,eid,vname)
) TYPE=MyISAM;
--
......
Markdown is supported
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