Bugzilla – Attachment 179623 Details for
Bug 36365
compare_es_to_db.pl should offer a way to reconcile differences
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36365: (follow-up) Indexing should be done async and in chunks
Bug-36365-follow-up-Indexing-should-be-done-async-.patch (text/plain), 1.51 KB, created by
Tomás Cohen Arazi (tcohen)
on 2025-03-21 15:08:54 UTC
(
hide
)
Description:
Bug 36365: (follow-up) Indexing should be done async and in chunks
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2025-03-21 15:08:54 UTC
Size:
1.51 KB
patch
obsolete
>From 2246c5d77f0bc531be36804133b62c6e8cd8b8dd Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Fri, 21 Mar 2025 12:07:22 -0300 >Subject: [PATCH] Bug 36365: (follow-up) Indexing should be done async and in > chunks > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > misc/maintenance/compare_es_to_db.pl | 14 ++++---------- > 1 file changed, 4 insertions(+), 10 deletions(-) > >diff --git a/misc/maintenance/compare_es_to_db.pl b/misc/maintenance/compare_es_to_db.pl >index 8cadbf3912f..b5de6d0db3f 100755 >--- a/misc/maintenance/compare_es_to_db.pl >+++ b/misc/maintenance/compare_es_to_db.pl >@@ -33,7 +33,6 @@ use Modern::Perl; > > use Array::Utils qw( array_minus ); > use Getopt::Long qw( GetOptions ); >-use Try::Tiny qw( catch try ); > > use C4::Context; > >@@ -160,15 +159,10 @@ foreach my $index ( ( 'biblios', 'authorities' ) ) { > if (@koha_problems) { > > print "=================\n"; >- print "Fixing missing records in the index ($index):\n\n"; >- >- foreach my $id (@koha_problems) { >- try { >- $indexer->update_index( [$id] ); >- } catch { >- print STDERR "ERROR: record #$id failed: $_\n\n"; >- }; >- } >+ print "Scheduling indexing of missing records ($index):\n\n"; >+ >+ # index_records() takes care of splitting into chunks. >+ $indexer->index_records( \@koha_problems, 'specialUpdate', $server ); > } > > if (@es_problems) { >-- >2.49.0
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 36365
:
178124
|
178178
|
178874
|
179623
|
180724
|
180725