Bug 7246 add offset/length and where options to rebuild_zebra
authorPaul Poulain <paul.poulain@biblibre.com>
Wed, 1 Feb 2012 14:15:02 +0000 (15:15 +0100)
committerPaul Poulain <paul.poulain@biblibre.com>
Fri, 17 Feb 2012 09:59:23 +0000 (10:59 +0100)
commit1fd8c8a4debf750476a2369e4440ac662b19f6b7
tree08bd4e4e993bef141352f07f93002f8b47da5260
parent647843c3bba2fcd30b972e95b5b1952f38ff4ca0
Bug 7246 add offset/length and where options to rebuild_zebra

This patch reimplement a feature that is on biblibre/master for Koha-community/master

It adds 4 parameters:
* offset = the offset of record. Say 1000 to start rebuilding at the 1000th record of your database
* length = how many records to export. Say 400 to export only 400 records
* where = add a where clause to rebuild only a given itemtype, or anything you want to filter on

Another improvement resulting from offset & length limit is the rebuild_zebra_sliced.zsh
that will be submitted in another patch.
rebuild_zebra_sliced will slice your all database in small chunks, and, if something went wrong for a given slice, will slice the slice, and repeat, until you reach a slice size of 1, showing which record is wrong in your database.

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
Removed mention of -l option for limiting number of items exported, as requested
by QA manager. This can be re-added in a later patch.

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
misc/migration_tools/rebuild_zebra.pl