[Koha-bugs] [Bug 15851] "Analytics: Show analytics" showing regardless of whether they have analytics
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Jul 29 04:14:46 CEST 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15851
--- Comment #50 from David Cook <dcook at prosentient.com.au> ---
yaz-client: local-number=10000
1 hit
0.002227 seconds
Koha code*: local-number=10000
1 hit
2.093 seconds
At this point, it's worth noting that approximately 2 seconds is spent just
loading Modern::Perl, C4::Context, and C4::Search, so it's not a fair
comparison.
I'm going to do another comparison using "e" and "the"...
*
#!/usr/bin/perl
use Modern::Perl;
use C4::Context;
use C4::Search;
my @tmpresults;
my @zconns;
$zconns[0] = C4::Context->Zconn( 'biblioserver', 1 );
my $query = "Host-Item=this is a test";
$query = "local-number=10000";
my $zoom_query = new ZOOM::Query::CCL2RPN($query, $zconns[0]);
$tmpresults[0] = $zconns[0]->search($zoom_query);
my $total_hits = 0;
C4::Search::_ZOOM_event_loop(
\@zconns,
\@tmpresults,
sub {
my ($i,$size) = @_;
$total_hits += $tmpresults[$i - 1] ->size();
},
);
warn $total_hits;
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list