Commit 9cc5955f authored by Mac Newbold's avatar Mac Newbold

Cut down the default number of records, to get the page load time under 10

seconds (on a DSL line). (Also decreases db load...)
Some of the defaults were as high as 400 records. Dropping them to 100
took the generated page from over 100KB to 31KB.

Later (someday) we can add stuff to easily change the number of records
you request, and perhaps even change the starting point to something
other than the most recent stuff.
parent 76052ab4
......@@ -30,7 +30,7 @@ if (! isset($which))
$which = 0;
# Show just the last N records unless request is different.
if (!isset($records) || !strcmp($records, "")) {
$records = 200;
$records = 100;
}
echo "<b>Show: <a class='static' href='showexpstats.php3'>
......@@ -77,7 +77,7 @@ if ($showby == "user") {
else
$which = $uid;
$wclause = "where s.creator='$which'";
$records = 400;
$records = 100;
}
elseif ($showby == "project") {
if (! $which) {
......@@ -88,7 +88,7 @@ elseif ($showby == "project") {
"project $which!", 1);
}
$wclause = "where s.pid='$which'";
$records = 400;
$records = 100;
}
elseif ($showby == "expt") {
if (!$which) {
......@@ -141,7 +141,7 @@ elseif ($showby == "all") {
}
$wclause = "where $wclause 0";
}
$records = 400;
$records = 100;
}
else {
USERERROR("Bad page arguments!", 1);
......
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