[Koha-bugs] [Bug 22831] Elasticsearch - add a maintenance script for checking DB vs index counts
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Nov 6 10:14:46 CET 2019
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22831
--- Comment #6 from Ere Maijala <ere.maijala at helsinki.fi> ---
Nick, one more thing: you can make the ES cursor a zillion times faster by not
retrieving any of the stored fields:
my $scroll = $es->scroll_helper(
index => $searcher->get_elasticsearch_params->{index_name},
size => 5000,
body => {
query => {
match_all => {}
},
stored_fields => []
},
scroll_in_qs => 1,
);
I'd also run the id comparison regardless of whether record counts match since
there's could be a case where they do but the records still differ.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list