Bug 32996

Summary: Speedup GetRecords response
Product: Koha Reporter: Didier Gautheron <didier.gautheron>
Component: Web servicesAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low    
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 25650    
Bug Blocks:    

Description Didier Gautheron 2023-02-17 14:57:07 UTC
Since #25650 GetRecords send location and itype descriptions.

For records with a lot of items (hundreds for serial) it slows down a lot the reply.

- Use caching get_description_by_koha_field rather than find_by_koha_field.
- For the same notice it's very likely all itype are the same so use a trivial memoization.