View | Details | Raw Unified | Return to bug 28833
Collapse All | Expand All

(-)a/debian/templates/koha-conf-site.xml.in (+4 lines)
Lines 449-453 __END_SRU_PUBLICSERVER__ Link Here
449
   <vhost>__MESSAGE_BROKER_VHOST__</vhost>
449
   <vhost>__MESSAGE_BROKER_VHOST__</vhost>
450
 </message_broker>
450
 </message_broker>
451
451
452
 <holds_queue_builder>
453
     <parallel_loops_count>1</parallel_loops_count>
454
 </holds_queue_builder>
455
452
</config>
456
</config>
453
</yazgfs>
457
</yazgfs>
(-)a/etc/koha-conf.xml (+4 lines)
Lines 266-270 Link Here
266
   <vhost></vhost>
266
   <vhost></vhost>
267
 </message_broker>
267
 </message_broker>
268
268
269
 <holds_queue_builder>
270
     <parallel_loops_count>1</parallel_loops_count>
271
 </holds_queue_builder>
272
269
</config>
273
</config>
270
</yazgfs>
274
</yazgfs>
(-)a/installer/data/mysql/atomicupdate/bug_28833.perl (-9 lines)
Lines 1-9 Link Here
1
$DBversion = 'XXX'; # will be replaced by the RM
2
if( CheckVersion( $DBversion ) ) {
3
    $dbh->do(q{
4
        INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
5
        ('HoldsQueueParallelLoopsCount', '1', NULL, 'Number of parallel loops to use when running the holds queue builder', 'Integer');
6
    });
7
8
    NewVersion( $DBversion, 28833, "Speed up holds queue builder via parallel processing");
9
}
(-)a/installer/data/mysql/mandatory/sysprefs.sql (-1 lines)
Lines 241-247 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
241
('HoldsAutoFillPrintSlip','0',NULL,'If on, hold slip print dialog will be displayed automatically','YesNo'),
241
('HoldsAutoFillPrintSlip','0',NULL,'If on, hold slip print dialog will be displayed automatically','YesNo'),
242
('HoldsLog','0',NULL,'If ON, log create/cancel/suspend/resume actions on holds.','YesNo'),
242
('HoldsLog','0',NULL,'If ON, log create/cancel/suspend/resume actions on holds.','YesNo'),
243
('HoldsNeedProcessingSIP', '0', NULL, 'Require staff to check-in before hold is set to waiting state', 'YesNo' ),
243
('HoldsNeedProcessingSIP', '0', NULL, 'Require staff to check-in before hold is set to waiting state', 'YesNo' ),
244
('HoldsQueueParallelLoopsCount', '1', NULL, 'Number of parallel loops to use when running the holds queue builder', 'Integer'),
245
('HoldsQueueSkipClosed', '0', NULL, 'If enabled, any libraries that are closed when the holds queue is built will be ignored for the purpose of filling holds.', 'YesNo'),
244
('HoldsQueueSkipClosed', '0', NULL, 'If enabled, any libraries that are closed when the holds queue is built will be ignored for the purpose of filling holds.', 'YesNo'),
246
('HoldsSplitQueue','nothing','nothing|branch|itemtype|branch_itemtype','In the staff interface, split the holds view by the given criteria','Choice'),
245
('HoldsSplitQueue','nothing','nothing|branch|itemtype|branch_itemtype','In the staff interface, split the holds view by the given criteria','Choice'),
247
('HoldsToPullStartDate','2',NULL,'Set the default start date for the Holds to pull list to this many days ago','Integer'),
246
('HoldsToPullStartDate','2',NULL,'Set the default start date for the Holds to pull list to this many days ago','Integer'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref (-5 lines)
Lines 74-84 Circulation: Link Here
74
            - pref: HoldsToPullStartDate
74
            - pref: HoldsToPullStartDate
75
              class: integer
75
              class: integer
76
            - day(s) ago. Note that the default end date is controlled by the system preference <a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=ConfirmFutureHolds">ConfirmFutureHolds</a>.
76
            - day(s) ago. Note that the default end date is controlled by the system preference <a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=ConfirmFutureHolds">ConfirmFutureHolds</a>.
77
        -
78
            - When building the holds queue, calculate hold matches using
79
            - pref: HoldsQueueParallelLoopsCount
80
              class: integer
81
            - parallel loop(s). The more loops used, the faster it will calculate and the more computing resources it will use.
82
        -
77
        -
83
            - pref: AllowAllMessageDeletion
78
            - pref: AllowAllMessageDeletion
84
              choices:
79
              choices:
(-)a/misc/cronjobs/holds/build_holds_queue.pl (-2 / +1 lines)
Lines 22-27 use C4::Context; Link Here
22
22
23
cronlogaction();
23
cronlogaction();
24
24
25
my $loops = C4::Context->preference('HoldsQueueParallelLoopsCount');
25
my $loops = C4::Context->config('holds_queue_builder')->{parallel_loops_count};
26
CreateQueue($loops);
26
CreateQueue($loops);
27
27
28
- 

Return to bug 28833