Commit 58fd3b7a authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Add a "having" clause when in default (active) mode. At some point,

"active" was changed to mean experiments with reserved nodes,
regardless of its actual state. The result is that the default view
would return every single experiment, and then we would prune out
later, but not before we did a second query per experiment, which made
the admin version of the page really slow!
parent 0a40c04b
<?php
#
# 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.
#
include("defs.php3");
......@@ -48,6 +48,7 @@ elseif (! strcmp($showtype, "active")) {
# Active is now defined as "having nodes reserved" - we just depend on
# the fact that we skip expts with no nodes further down...
$title = "Active";
$having = "having (ncount>0)";
$active = 1;
}
elseif (! strcmp($showtype, "batch")) {
......@@ -64,6 +65,7 @@ elseif ((!strcmp($showtype, "idle")) && $isadmin ) {
else {
# See active above
$title = "Active";
$having = "having (ncount>0)";
$active = 1;
}
......
Supports Markdown
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