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

(-)a/debian/docs/koha-elasticsearch.xml (-2 / +2 lines)
Lines 35-41 Link Here
35
      <arg>-b|--biblios</arg>
35
      <arg>-b|--biblios</arg>
36
      <arg>-a|--authorities</arg>
36
      <arg>-a|--authorities</arg>
37
      <arg>-w|--where</arg>
37
      <arg>-w|--where</arg>
38
      <arg>-c n|--commit n</arg>
38
      <arg>-c n|--confirm n</arg>
39
      <arg>-v|--verbose</arg>
39
      <arg>-v|--verbose</arg>
40
      <arg choice="req" rep="repeat"><replaceable>instancename</replaceable></arg>
40
      <arg choice="req" rep="repeat"><replaceable>instancename</replaceable></arg>
41
    </cmdsynopsis>
41
    </cmdsynopsis>
Lines 89-95 Link Here
89
      </listitem>
89
      </listitem>
90
    </varlistentry>
90
    </varlistentry>
91
    <varlistentry>
91
    <varlistentry>
92
      <term><option>-c, --commit</option></term>
92
      <term><option>-c, --confirm</option></term>
93
      <listitem>
93
      <listitem>
94
        <para>Specifies how many records will be batched up before they are added to Elasticsearch (default: 5000).
94
        <para>Specifies how many records will be batched up before they are added to Elasticsearch (default: 5000).
95
              Higher values lead to better performance, but take more RAM.</para>
95
              Higher values lead to better performance, but take more RAM.</para>
(-)a/debian/scripts/koha-elasticsearch (-3 / +3 lines)
Lines 42-48 Options: Link Here
42
    --reset|-r        Reset elasticsearch mappings from file.
42
    --reset|-r        Reset elasticsearch mappings from file.
43
    --authorities|-a  Only run process for authorities.
43
    --authorities|-a  Only run process for authorities.
44
    --biblios|-b      Only run process for biblios.
44
    --biblios|-b      Only run process for biblios.
45
    -c|--commit n     Specify how many records will be batched up before
45
    -c|--confirm n     Specify how many records will be batched up before
46
                      they're added to Elasticsearch (default: 5000).
46
                      they're added to Elasticsearch (default: 5000).
47
    -p|--processes n  Specify the number of parallel processes to use
47
    -p|--processes n  Specify the number of parallel processes to use
48
                      for indexing.
48
                      for indexing.
Lines 90-96 run_rebuild_elasticsearch() Link Here
90
    if [ "${clo_commit_size}" -gt 0 ] 2>/dev/null; then
90
    if [ "${clo_commit_size}" -gt 0 ] 2>/dev/null; then
91
        commit_size=${clo_commit_size}
91
        commit_size=${clo_commit_size}
92
    fi
92
    fi
93
    rebuild_opts="--commit ${commit_size}"
93
    rebuild_opts="--confirm ${commit_size}"
94
94
95
    if [ "${clo_processes}" -gt 0 ] 2>/dev/null; then
95
    if [ "${clo_processes}" -gt 0 ] 2>/dev/null; then
96
        processes=${clo_processes}
96
        processes=${clo_processes}
Lines 160-166 while [ -n "$*" ]; do Link Here
160
        -a|--authorities)
160
        -a|--authorities)
161
            toggle_authorities_only
161
            toggle_authorities_only
162
            ;;
162
            ;;
163
        -c|--commit)
163
        -c|--confirm)
164
            clo_commit_size="$2" ; shift
164
            clo_commit_size="$2" ; shift
165
            ;;
165
            ;;
166
        -p|--processes)
166
        -p|--processes)
(-)a/misc/cronjobs/crontab.example (-1 / +1 lines)
Lines 79-85 KOHA_CRON_PATH = /usr/share/koha/bin/cronjobs Link Here
79
0 1 * * *  __KOHA_USER__ $KOHA_CRON_PATH/holds/auto_unsuspend_holds.pl > /dev/null 2>&1
79
0 1 * * *  __KOHA_USER__ $KOHA_CRON_PATH/holds/auto_unsuspend_holds.pl > /dev/null 2>&1
80
80
81
# Update popularity counts for biblio records
81
# Update popularity counts for biblio records
82
0 2 * * *  __KOHA_USER__ $KOHA_CRON_PATH/update_totalissues.pl --commit=1000 --use-stats --incremental --interval=1d >/dev/null 2>&1
82
0 2 * * *  __KOHA_USER__ $KOHA_CRON_PATH/update_totalissues.pl --confirm=1000 --use-stats --incremental --interval=1d >/dev/null 2>&1
83
83
84
# ZEBRA INDEX UPDATES with -z option, incremental index updates throughout the day
84
# ZEBRA INDEX UPDATES with -z option, incremental index updates throughout the day
85
# for both authorities and bibs
85
# for both authorities and bibs
(-)a/misc/cronjobs/delete_items.pl (-5 / +5 lines)
Lines 92-98 delete_items.pl - A batch item deletion tool, which generates a query against th Link Here
92
92
93
delete_items.pl [--help|--manual]
93
delete_items.pl [--help|--manual]
94
94
95
delete_items.pl [--verbose] --where "I<SQL CONDITIONAL EXPRESSION>" ... [--commit]
95
delete_items.pl [--verbose] --where "I<SQL CONDITIONAL EXPRESSION>" ... [--confirm]
96
96
97
=cut
97
=cut
98
98
Lines 119-127 The C<--where> option may called multiple times. The following argument Link Here
119
must be a syntactically valid SQL statement which is part of the C<WHERE>
119
must be a syntactically valid SQL statement which is part of the C<WHERE>
120
clause querying the items table. These are joined by C<AND>.
120
clause querying the items table. These are joined by C<AND>.
121
121
122
=item B<--commit>
122
=item B<--confirm>
123
123
124
No items will be deleted unless the C<--commit> flag is present.
124
No items will be deleted unless the C<--confirm> flag is present.
125
125
126
=item B<--del_bibs>
126
=item B<--del_bibs>
127
127
Lines 135-143 Deletes the bibliographic record if the last item is deleted. Link Here
135
135
136
  The following is an example of this script:
136
  The following is an example of this script:
137
137
138
 delete_items.pl --where "withdrawn ! 0"  --where "withdrawn_on < $(date --date="13 month ago" --rfc-3339=date)" --commit
138
 delete_items.pl --where "withdrawn ! 0"  --where "withdrawn_on < $(date --date="13 month ago" --rfc-3339=date)" --confirm
139
139
140
 delete_items.pl --where "itemlost >= '1'" --where "itemlost <='4'" --where "itemlost_on < '2014-04-28'" --commit
140
 delete_items.pl --where "itemlost >= '1'" --where "itemlost <='4'" --where "itemlost_on < '2014-04-28'" --confirm
141
141
142
=cut
142
=cut
143
143
(-)a/misc/cronjobs/longoverdue.pl (-1 / +1 lines)
Lines 135-141 if ($list_itemtypes) { Link Here
135
                  [ --skip-category BORROWER_CATEGORY ] ...
135
                  [ --skip-category BORROWER_CATEGORY ] ...
136
                  [ --library LIBRARY_CODE ] [ --skip-library LIBRARY_CODE ] ...
136
                  [ --library LIBRARY_CODE ] [ --skip-library LIBRARY_CODE ] ...
137
                  [ --skip-lost-value LOST_VALUE [ --skip-lost-value LOST_VALUE ] ]
137
                  [ --skip-lost-value LOST_VALUE [ --skip-lost-value LOST_VALUE ] ]
138
                  [ --commit ]
138
                  [ --confirm ]
139
139
140
140
141
WARNING:  Flippant use of this script could set all or most of the items in your catalog to Lost and charge your
141
WARNING:  Flippant use of this script could set all or most of the items in your catalog to Lost and charge your
(-)a/misc/cronjobs/patron_emailer.pl (-1 / +1 lines)
Lines 43-49 patron_emailer.pl Link Here
43
    --from                       specified email for 'from' address, report column 'from' used if not specified
43
    --from                       specified email for 'from' address, report column 'from' used if not specified
44
    --email                      specified column to use as 'to' email address, report column 'email' used if not specified
44
    --email                      specified column to use as 'to' email address, report column 'email' used if not specified
45
    --verbose                    increased verbosity, will print notices and errors
45
    --verbose                    increased verbosity, will print notices and errors
46
    --commit                     send emails, without this script will only report
46
    --confirm                     send emails, without this script will only report
47
47
48
=head1 OPTIONS
48
=head1 OPTIONS
49
49
(-)a/misc/link_bibs_to_authorities.pl (-2 / +2 lines)
Lines 290-296 link_bibs_to_authorities.pl Link Here
290
  link_bibs_to_authorities.pl
290
  link_bibs_to_authorities.pl
291
  link_bibs_to_authorities.pl -v
291
  link_bibs_to_authorities.pl -v
292
  link_bibs_to_authorities.pl -l
292
  link_bibs_to_authorities.pl -l
293
  link_bibs_to_authorities.pl --commit=1000
293
  link_bibs_to_authorities.pl --confirm=1000
294
  link_bibs_to_authorities.pl --auth-limit=STRING
294
  link_bibs_to_authorities.pl --auth-limit=STRING
295
  link_bibs_to_authorities.pl --bib-limit=STRING
295
  link_bibs_to_authorities.pl --bib-limit=STRING
296
  link_bibs_to_authorities.pl -g=700
296
  link_bibs_to_authorities.pl -g=700
Lines 325-331 user-specified WHERE clause. Link Here
325
325
326
Only process those bib records that match the user-specified WHERE clause.
326
Only process those bib records that match the user-specified WHERE clause.
327
327
328
=item B<--commit=N>
328
=item B<--confirm=N>
329
329
330
Commit the results to the database after every N records are processed.
330
Commit the results to the database after every N records are processed.
331
331
(-)a/misc/search_tools/rebuild_elasticsearch.pl (-3 / +2 lines)
Lines 26-32 rebuild_elasticsearch.pl - inserts records from a Koha database into Elasticsear Link Here
26
=head1 SYNOPSIS
26
=head1 SYNOPSIS
27
27
28
B<rebuild_elasticsearch.pl>
28
B<rebuild_elasticsearch.pl>
29
[B<-c|--commit>=C<count>]
29
[B<-c|--confirm>=C<count>]
30
[B<-d|--delete>]
30
[B<-d|--delete>]
31
[B<-r|--reset>]
31
[B<-r|--reset>]
32
[B<-a|--authorities>]
32
[B<-a|--authorities>]
Lines 48-54 Inserts records from a Koha database into Elasticsearch. Link Here
48
48
49
=over
49
=over
50
50
51
=item B<-c|--commit>=C<count>
51
=item B<-c|--confirm>=C<count>
52
52
53
Specify how many records will be batched up before they're added to Elasticsearch.
53
Specify how many records will be batched up before they're added to Elasticsearch.
54
Higher should be faster, but will cause more RAM usage. Default is 5000.
54
Higher should be faster, but will cause more RAM usage. Default is 5000.
55
- 

Return to bug 36067