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

Change join order to speed a query up a bit.

parent d3ebb24d
......@@ -3046,8 +3046,8 @@ COMMAND_PROTOTYPE(dovnodelist)
char buf[MYBUFSIZE];
int nrows;
res = mydb_query("select r.node_id,n.jailflag from reserved as r "
"left join nodes as n on r.node_id=n.node_id "
res = mydb_query("select r.node_id,n.jailflag from nodes as n "
"left join reserved as r on r.node_id=n.node_id "
"left join node_types as nt on nt.type=n.type "
"where nt.isvirtnode=1 and n.phys_nodeid='%s'",
2, reqp->nodeid);
......
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