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)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 10 Mar 2014 18:44:10 +0000 (18:44 +0000)
commitb0870311e1b8fae10a6ab17d0e132e911c3ab3aa
treeb3a8b8d485212d04a6c9439114b606531322f647
parent67d3985929d70b67e64d5f0c275109b109065d2d
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.
misc/migration_tools/rebuild_zebra.pl