[Koha-bugs] [Bug 27584] Improve OAI-PMH provider performance

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Feb 4 08:13:32 CET 2021


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

--- Comment #10 from Ere Maijala <ere.maijala at helsinki.fi> ---
Created attachment 116309
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=116309&action=edit
Bug 27584: Refactor OAI-PMH paging to improve performance

Includes the following optimizations:
- Use next biblionumber instead of large offset in the queries.
- Use unions instead of subqueries
- Avoid fetching item timestamps when items are not included.

Test plan:

1. Without the patch, try harvesting a Koha database with (and without for good
measure) `include_items: 1` in the OAI-PMH configuration file pointed to by
preference OAI-PMH:ConfFile and take note of performance. For useful metrics
the database must be large enough to not fit in InnoDB buffers or OS file
cache.
2. Apply the patch.
3. Run tests: prove -v t/db_dependent/OAI
4. Try again the harvesting from step 1 and compare performance with step 1.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list