https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38867

--- Comment #1 from David Cook <[email protected]> ---
The total execution time for Koha::Items->filter_by_for_hold() seems to be
about .003-.004. Even across 437 items (ie koha-testing-docker with
numSearchResults set to 1000 and doing a * search with Elastic), that's only
1.3 seconds lost to .003*437.

Total script execution time was 16.88 seconds.

But then if I look at all the system calls through that search... they're all
tiny. It's how they all add up. 

If I change numSearchResults to 100, I get my search results in 5 seconds.

If I change numSearchResults to 20, I get my search results in 1.3 seconds.

It would be interesting to look at the execution times of search_compat() and
searchResults() since those are the two functions that appear to take
$results_per_page as arguments.

Note that Koha::Items->filter_by_for_hold() is just one of many functions
called in searchResults().

Anyway, work day well past done...

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
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/

Reply via email to