Commit 78b358b5 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Fix up really slow query. It will be my little secret that I'm the

author of many of these queries. I mean, no one reads these commit
logs except Mike, right?
parent c5d6e727
......@@ -2,7 +2,7 @@
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2002 University of Utah and the Flux Group.
# Copyright (c) 2000-2003 University of Utah and the Flux Group.
# All rights reserved.
#
......@@ -96,11 +96,11 @@ foreach my $node (@nodes) {
# Determine the unix group for the node.
#
$db_result =
DBQueryFatal("select g.unix_name from groups as g ".
"left join experiments as e ".
" on g.pid=e.pid and g.gid=e.gid ".
"left join reserved as r ".
" on e.pid=r.pid and e.eid=r.eid ".
DBQueryFatal("select g.unix_name from reserved as r ".
"left join experiments as e on ".
" r.pid=e.pid and r.eid=e.eid ".
"left join groups as g on ".
" g.pid=e.pid and g.gid=e.gid ".
"where r.node_id='$node'");
if ($db_result->numrows > 0) {
......
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