Koha-clms/Koha/ILL
Tomás Cohen Arazi aa20cb9346
Bug 40856: Optimize Standard backend metadata method with database-level filtering
This patch optimizes the metadata() method in the Standard ILL backend
to use database-level filtering instead of inefficient linear searches.

Performance improvement:
- Before: Load all attributes, then filter each with linear search
- After: Load only relevant attributes using database index

Test plan:
1. Apply patch
2. Run:
   $ ktd --shell
  k$ prove t/db_dependent/Koha/ILL/Backend/Standard.t
=> SUCCESS: Tests pass! Optimization maintains compatibility
3. Test ILL request metadata display:
   - View ILL request details
   - Verify metadata shows correctly
   - Check ignored fields are excluded
=> SUCCESS: Same functionality, better performance
4. Sign off :-D

Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-09-29 14:02:20 -06:00
..
Backend Bug 40856: Optimize Standard backend metadata method with database-level filtering 2025-09-29 14:02:20 -06:00
Batch Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
Request Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
Backend.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
Batch.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
Batches.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
Comment.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
Comments.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
Request.pm Bug 40850: (follow-up) Use add_or_update_attributes in copyright clearance methods 2025-09-23 16:21:32 -06:00
Requests.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00