From 363a939f26733eb9e116b3ff79f9e9d52732f4e2 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Fri, 9 Apr 2010 12:23:54 +0100 Subject: [PATCH] Precache records using $rs->records() --- web/htdocs/details/found.mc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/htdocs/details/found.mc b/web/htdocs/details/found.mc index 231f4d1..13143c6 100644 --- a/web/htdocs/details/found.mc +++ b/web/htdocs/details/found.mc @@ -72,6 +72,7 @@ if (!defined $conn) { OPEN: $conn = new ZOOM::Connection("localhost:8018/IR-Explain---1"); $conn->option(elementSetName => "zeerex"); + $conn->option(count => 20); } my $rs; @@ -125,6 +126,7 @@ print_navlink(\%params, $last < $n, "Next", $skip+$count); % my @ids; +% $rs->records($first-1, $last-$first+1); ## Force pre-cache % foreach my $i ($first .. $last) { <%perl> my $xc = irspy_xpath_context($rs->record($i-1)); -- 1.7.10.4