Commit ad9b7bce authored by Robert Ricci's avatar Robert Ricci
Browse files

Two more query-speeding indexes - add a node index by

node_id,phys_nodeid to help keepalive stuff. Unfortuantely, this
one doesn't seem to be making much of a difference.

Also, add a pid,eid key to resrved to ehlp queries that want to
find nodes assigned to a certain project, for example.
parent b8e41f52
......@@ -587,7 +587,8 @@ CREATE TABLE nodes (
sshdport int(11) NOT NULL default '11000',
jailflag tinyint(3) unsigned NOT NULL default '0',
PRIMARY KEY (node_id),
KEY phys_nodeid (phys_nodeid)
KEY phys_nodeid (phys_nodeid),
KEY node_id (node_id,phys_nodeid)
......@@ -803,7 +804,8 @@ CREATE TABLE reserved (
eid varchar(32) NOT NULL default '',
rsrv_time timestamp(14) NOT NULL,
vname varchar(32) default NULL,
PRIMARY KEY (node_id)
PRIMARY KEY (node_id),
KEY pid (pid,eid)
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