[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
Tue Jan 5 15:28:16 CET 2021


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

--- Comment #1 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Created attachment 114877
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=114877&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
table (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.

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


More information about the Koha-bugs mailing list