[Koha-bugs] [Bug 35086] Koha::SearchEngine::Elasticsearch::Indexer->update_index needs to commit in batches

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jan 4 22:52:37 CET 2024


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

David Nind <david at davidnind.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #160531|0                           |1
        is obsolete|                            |

--- Comment #10 from David Nind <david at davidnind.com> ---
Created attachment 160561
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=160561&action=edit
Bug 35086: Also split chunks when indexing from background job

The es background indexer is designed to combine background jobs when started
based on the 'batch_size' option.

While this is helpful for combining individual updates, it can be problematic
when there are several large batch modifications, or when worker has stopped
and is restarted.

This patch uses the same logic as in the indexer to split the chunks that are
sent directly for indexing.

To test:
1 - Follow test plan on previous patch
2 - Confirm items are correctly indexed and jobs marked

Signed-off-by: David Nind <david at davidnind.com>

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


More information about the Koha-bugs mailing list