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

Marcel de Rooy <[email protected]> changed:

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

--- Comment #8 from Marcel de Rooy <[email protected]> ---
Created attachment 144638
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=144638&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 and queue :
misc/background_jobs_worker.pl:        my $jobs =
Koha::BackgroundJobs->search({ status => 'new', queue => \@queues });

Test plan :
Run updatedatabase and play with background jobs

Signed-off-by: Martin Renvoize <[email protected]>

Signed-off-by: Marcel de Rooy <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to