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

Change join order on a slow query

parent 62afff19
......@@ -122,8 +122,8 @@ TBDebugTimeStamp("os_setup started");
# Get the set of nodes, as well as the nodes table information for them.
#
$db_result =
DBQueryFatal("select n.*,l.pid from nodes as n ".
"left join reserved as r on n.node_id=r.node_id ".
DBQueryFatal("select n.*,l.pid from reserved as r ".
"left join nodes as n on n.node_id=r.node_id ".
"left join last_reservation as l on n.node_id=l.node_id ".
"where r.pid='$pid' and r.eid='$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