https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42835
--- Comment #42 from Pedro Amorim (ammopt) <[email protected]> --- Created attachment 203723 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=203723&action=edit Bug 42835: [DO NOT PUSH] demo script for facets round-trip latency Benchmarks search_compat()'s two added costs on ~9k synthetic biblios (matching the _biblionumbers aggregation's own size cap): the extra terms aggregation on the biblios query, and the second round-trip to _get_item_facets. Cold-cache worst case adds ~25-55ms on top of a ~20-25ms baseline query, but the item-facets round-trip is cached, so repeated searches against the same result set pay far less. The script's verdict line checks the total round-trip against a configurable "still feels instant" budget ($ACCEPTABLE_TOTAL_MS, currently 100ms) rather than asserting a fixed conclusion -- every run so far has landed well under that budget, so no follow-up fix is warranted here. This commit is for local testing only and must not be pushed upstream. Co-Authored-By: Claude Sonnet 5 <[email protected]> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected] website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
