Bug 28833: DBRev 24.06.00.044

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Katrin Fischer 2024-10-25 09:05:04 +00:00
parent d8fc079eee
commit 1f16d490f1
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
3 changed files with 20 additions and 10 deletions

View File

@ -29,7 +29,7 @@ use vars qw{ $VERSION };
# - #4 : the developer version. The 4th number is the database subversion.
# used by developers when the database changes. updatedatabase take care of the changes itself
# and is automatically called by Auth.pm when needed.
$VERSION = "24.06.00.043";
$VERSION = "24.06.00.044";
sub version {
return $VERSION;

View File

@ -1,9 +0,0 @@
$DBversion = 'XXX'; # will be replaced by the RM
if( CheckVersion( $DBversion ) ) {
$dbh->do(q{
INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
('HoldsQueueParallelLoopsCount', '1', NULL, 'Number of parallel loops to use when running the holds queue builder', 'Integer');
});
NewVersion( $DBversion, 28833, "Speed up holds queue builder via parallel processing");
}

View File

@ -0,0 +1,19 @@
use Modern::Perl;
use Koha::Installer::Output qw(say_warning say_failure say_success say_info);
return {
bug_number => '28833',
description => 'Speed up holds queue builder via parallel processing',
up => sub {
my ($args) = @_;
my ( $dbh, $out ) = @{$args}{qw(dbh out)};
$dbh->do(q{
INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
('HoldsQueueParallelLoopsCount', '1', NULL, 'Number of parallel loops to use when running the holds queue builder', 'Integer');
});
say_success( $out, "Added new system preference 'HoldsQueueParallelLoopsCount'");
},
};