https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15851
--- Comment #50 from David Cook <[email protected]> --- 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. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
