[Koha-bugs] [Bug 32330] Table background_jobs is missing indexes
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Nov 23 08:02:58 CET 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32330
--- Comment #1 from Fridolin Somers <fridolin.somers at biblibre.com> ---
Created attachment 144184
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=144184&action=edit
Bug 32330: Add indexes to table background_jobs
Table background_jobs should have indexes to optimize queries.
Query on borrowernumber :
mainpage.pl: my $already_ran_jobs = Koha::BackgroundJobs->search(
mainpage.pl- { borrowernumber => $logged_in_user->borrowernumber }
)->count ? 1 : 0;
Query on status:
misc/background_jobs_worker.pl: my $jobs =
Koha::BackgroundJobs->search({ status => 'new', queue => \@queues });
Test plan :
Run updatedatabase and play with background jobs
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list