Bugzilla – Attachment 85977 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: Remove duplicate modulo condition in authorities iterator
Bug-21872-Remove-duplicate-modulo-condition-in-aut.patch (text/plain), 1.67 KB, created by
Ere Maijala
on 2019-03-04 12:36:57 UTC
(
hide
)
Description:
Bug 21872: Remove duplicate modulo condition in authorities iterator
Filename:
MIME Type:
Creator:
Ere Maijala
Created:
2019-03-04 12:36:57 UTC
Size:
1.67 KB
patch
obsolete
>From a31a15373be1e6001c8e73faddb6b02049480f35 Mon Sep 17 00:00:00 2001 >From: David Gustafsson <david.gustafsson@ub.gu.se> >Date: Thu, 14 Feb 2019 15:59:27 +0100 >Subject: [PATCH] Bug 21872: Remove duplicate modulo condition in authorities > iterator > >--- > Koha/BiblioUtils.pm | 2 +- > Koha/MetadataRecord/Authority.pm | 5 ++--- > 2 files changed, 3 insertions(+), 4 deletions(-) > >diff --git a/Koha/BiblioUtils.pm b/Koha/BiblioUtils.pm >index 88395a952f..fd6969d8bf 100644 >--- a/Koha/BiblioUtils.pm >+++ b/Koha/BiblioUtils.pm >@@ -131,7 +131,7 @@ sub get_all_biblios_iterator { > if ($options{slice}) { > $slice_count = $options{slice}->{count}; > $slice_modulo = $options{slice}->{index}; >- $search_terms = \[ ' mod(biblionumber, ?) = ?', $slice_count, $slice_modulo]; >+ $search_terms = \[ 'mod(biblionumber, ?) = ?', $slice_count, $slice_modulo ]; > } > > my $database = Koha::Database->new(); >diff --git a/Koha/MetadataRecord/Authority.pm b/Koha/MetadataRecord/Authority.pm >index 48aa7aefa9..cedbcae30d 100644 >--- a/Koha/MetadataRecord/Authority.pm >+++ b/Koha/MetadataRecord/Authority.pm >@@ -182,11 +182,10 @@ sub get_all_authorities_iterator { > if ($options{slice}) { > $slice_count = $options{slice}->{count}; > $slice_modulo = $options{slice}->{index}; >- $search_terms->{authid} = \[ ' mod ? = ?', $slice_count, $slice_modulo]; > $search_terms = { > '-and' => [ >- $search_terms, >- \[ ' mod(authid, ?) = ?', $slice_count, $slice_modulo] >+ %{$search_terms}, >+ \[ 'mod(authid, ?) = ?', $slice_count, $slice_modulo ] > ] > }; > } >-- >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