Commit 70f54365 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Add index(idx) to experiment_stats table.

parent c7212a59
......@@ -203,6 +203,7 @@ CREATE TABLE experiment_stats (
maxlinks tinyint(3) unsigned default '0',
batch tinyint(3) unsigned default '0',
PRIMARY KEY (eid,pid,idx)
KEY idx (idx)
) TYPE=MyISAM;
--
......
......@@ -401,3 +401,9 @@ last_net_act,last_cpu_act,last_ext_act);
PRIMARY KEY (node_id,veth_id),
KEY IP (IP)
) TYPE=MyISAM;
1.140: Add index to experiment_stats table to speed up big joins by
several orders of magnitude!
alter table experiment_stats add index(idx);
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