]> git.koha-community.org Git - koha.git/commit
Bug 10955 - Add ability to skip deletions in zebraqueue
authorKyle M Hall <kyle@bywatersolutions.com>
Thu, 26 Sep 2013 16:47:13 +0000 (12:47 -0400)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 27 May 2014 14:24:45 +0000 (16:24 +0200)
commitda11c85d7d407c1476d2fcae24341c36fd96b490
treea8e4301b8c68fc899a03aaec31379bd5395fc162
parent72050540e6f39e17dfb41d9654fe31805cc13d32
Bug 10955 - Add ability to skip deletions in zebraqueue

It seems that record deletions can cause extreme slowdowns for Koha
installations with extremely large numbers of records. It would be
helpful to be able to skip record deletions when processing the
zebraqueue with rebuild_zebra.pl so the deletions can be processed with
a lower frequency.

Test Plan:
1) Disable any zebra indexing cronjobs you may have
2) Delete a record
3) Note the operation recordDelete in the zebraqueue table having done = 0
4) Run misc/migration_tools/rebuild_zebra.pl -b -z --skip-deletes
5) Note the delete still has done = 0
6) Run misc/migration_tools/rebuild_zebra.pl -b -z
7) Note the delete now has done = 1

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Passes all tests and QA script.
Also tested for authorities, no problems found.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
RM note: this is at best a work-around, and I will emphasize that
--skip-deletes should be used only when absolutely necessary.

I hope that --skip-deletes can go away at some point soon, but
that may depend on changes to Zebra.

(cherry picked from commit b0870311e1b8fae10a6ab17d0e132e911c3ab3aa)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
misc/migration_tools/rebuild_zebra.pl