Bug 32996 - Speedup GetRecords response
Summary: Speedup GetRecords response
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Web services (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on: 25650
Blocks:
  Show dependency treegraph
 
Reported: 2023-02-17 14:57 UTC by Didier Gautheron
Modified: 2023-02-17 14:57 UTC (History)
0 users

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.