Bugzilla – Attachment 85978 Details for
Bug 21872
Elasticsearch indexing faster by making it multi-threaded
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21872: Add support for -p parameter to koha-elasticsearch
Bug-21872-Add-support-for--p-parameter-to-koha-ela.patch (text/plain), 1.63 KB, created by
Ere Maijala
on 2019-03-04 12:37:01 UTC
(
hide
)
Description:
Bug 21872: Add support for -p parameter to koha-elasticsearch
Filename:
MIME Type:
Creator:
Ere Maijala
Created:
2019-03-04 12:37:01 UTC
Size:
1.63 KB
patch
obsolete
>From fb69d703c3fbefbb41129a553b5de74f105848db Mon Sep 17 00:00:00 2001 >From: Ere Maijala <ere.maijala@helsinki.fi> >Date: Mon, 4 Mar 2019 14:18:00 +0200 >Subject: [PATCH] Bug 21872: Add support for -p parameter to koha-elasticsearch > >--- > debian/scripts/koha-elasticsearch | 11 +++++++++++ > 1 file changed, 11 insertions(+) > >diff --git a/debian/scripts/koha-elasticsearch b/debian/scripts/koha-elasticsearch >index 243c34550f..dead22ea57 100755 >--- a/debian/scripts/koha-elasticsearch >+++ b/debian/scripts/koha-elasticsearch >@@ -42,6 +42,8 @@ Options: > --biblios|-b Only run process for biblios. > -c|--commit n Specify how many records will be batched up before > they're added to Elasticsearch (default: 5000). >+ -p|--processes n Specify the number of parallel processes to use >+ for indexing. > --verbose|-v Be verbose. > --help|-h Print this help. > >@@ -91,6 +93,11 @@ run_rebuild_elasticsearch() > fi > rebuild_opts="--commit ${commit_size}" > >+ if [ "${clo_processes}" > 0 ]; then >+ processes=${clo_processes} >+ fi >+ rebuild_opts="--processes ${processes}" >+ > if [ "${biblios}" = "yes" ]; then > rebuild_opts="${rebuild_opts} -b" > fi >@@ -118,6 +125,7 @@ authorities="yes" > biblios_only="no" > authorities_only="no" > commit_size=5000 >+processes=1 > verbose="no" > op="" > >@@ -136,6 +144,9 @@ while [ -n "$*" ]; do > -c|--commit) > clo_commit_size="$2" ; shift > ;; >+ -p|--processes) >+ clo_processes="$2" ; shift >+ ;; > --rebuild) > set_action "rebuild" > ;; >-- >2.17.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 21872
:
82582
|
82583
|
82584
|
82585
|
82586
|
82598
|
82599
|
82780
|
85119
|
85121
|
85975
|
85976
|
85977
|
85978
|
85979
|
86053
|
86054
|
86055
|
86056
|
86057
|
89109
|
89110
|
89111
|
89112
|
89113