[Koha-bugs] [Bug 32594] Add a dedicated ES indexing background worker

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jan 26 20:48:36 CET 2023


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

Nick Clemens <nick at bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #145145|0                           |1
        is obsolete|                            |
 Attachment #145197|0                           |1
        is obsolete|                            |

--- Comment #14 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 145704
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=145704&action=edit
Bug 32594: Add a dedicated Elasticsearch biblio indexing background queue

Currently we generate large numebrs if single record reindex for circulation
and other
actions. It can take a long time to process these as we need to load the ES
settings for each.

This patch updates the Elasticsearch background jobs to throw records into a
new queue
that can be processed by it's own worker and adds a dedicated worker that
batches the jobs
every 1 second.

To test:
1 - Apply patches, set SearchEngine system preference to 'Elasticsearch'
2 - perl misc/search_tools/es_indexer_daemon.pl
3 - Leave the running in terminal and perform actions in staff interface:
    - Checking out a bib
    - Returning a bib
    - Editing a single bib
    - Editing a single item
    - Batch editing bibs
    - Batch editing items
4 - Confirm for each action that records are updated in search/search results
5 - Stop the script
6 - set SearchEngine system preference to 'Zebra'
7 - perl misc/search_tools/es_indexer_daemon.pl
8 - Script dies as Elasticsearch not enabled

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


More information about the Koha-bugs mailing list