From 5784a41a3e82367b93d7d12318b1e925de9c54fa Mon Sep 17 00:00:00 2001 From: Doug Kingston Date: Fri, 13 Sep 2013 12:12:25 -0700 Subject: [PATCH 2/2] Bug 6435 Add daemon mode to rebuild_zebra.pl (w/typo fix) This change adds code to check the zebraqueue table with a cheap SQL query and a daemon loop that checks for new entries and processes them incremantally before sleeping for a controllable number of seconds. The default is 5 seconds which provides a near realtime search index update. This is desirable particularly for libraries that are doing active catalogue updating. Help text updated. Tested against a live 3.12 system. --- misc/migration_tools/rebuild_zebra.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/migration_tools/rebuild_zebra.pl b/misc/migration_tools/rebuild_zebra.pl index 2e01e9c..a91c681 100755 --- a/misc/migration_tools/rebuild_zebra.pl +++ b/misc/migration_tools/rebuild_zebra.pl @@ -725,7 +725,7 @@ Parameters: the zebra search index with low system overhead. Use -sleep to control the checking interval. - -sleep 10 Seconcds to sleep between checks of the zebraqueue + -sleep 10 Seconds to sleep between checks of the zebraqueue table in daemon mode. The default is 5 seconds. -z select only updated and deleted -- 1.7.9.5