[Koha-bugs] [Bug 27344] Implement Elastic's update_index_background using Koha::BackgroundJob

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Mar 31 17:44:18 CEST 2022


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

Martin Renvoize <martin.renvoize at ptfs-europe.com> changed:

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

--- Comment #38 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
Created attachment 132794
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=132794&action=edit
Bug 27344: Implement Elastic's update_index_background using
Koha::BackgroundJob

This patch adds a background job submodule, UpdateElasticIndex, to deal
with async ES index update (not the deletion).

Using NYTProf (on a checkin):
Without
618ms, executing 35676 statements and 26355 subroutine calls in 266 source
files and 83 string evals.

With
521ms, executing 13282 statements and 7979 subroutine calls in 195 source files
and 26 string evals.

However there are some problems with this patch:
1. We don't want *all* the index update to be in the background_jobs
tabtle (we could add a filter on the list view)
2. We don't track the "progress" of the job as we are sending all the
records to Elastic. It is okish in my opinion but it must be noted.

Signed-off-by: Arthur Suzuki <arthur.suzuki at biblibre.com>
Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>

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


More information about the Koha-bugs mailing list