]> git.koha-community.org Git - koha.git/commit
Bug 35086: Also split chunks when indexing from background job
authorNick Clemens <nick@bywatersolutions.com>
Wed, 3 Jan 2024 18:54:25 +0000 (18:54 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 17 Jan 2024 09:22:47 +0000 (10:22 +0100)
commit2f8ae2ec212e67cbe004e15484cf561a77bc40a5
tree926004920cbab16a9dd8941c38beeb397279505f
parent636920558caa114afef1c50256a5031f4be7b0da
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@davidnind.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 7496a603cda7832bcf1bdb606843bd88f18af4f3)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
misc/workers/es_indexer_daemon.pl