From: miker Date: Wed, 22 Jul 2009 16:48:15 +0000 (+0000) Subject: Temporary script to deal with ingest trigger issues X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c7e1ca5681f3cf293bbbc6d362e880a17c96c453;p=Evergreen.git Temporary script to deal with ingest trigger issues git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6_0@13688 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/support-scripts/regenerate_simple_rec_view.sql b/Open-ILS/src/support-scripts/regenerate_simple_rec_view.sql new file mode 100644 index 0000000000..2d89731e8b --- /dev/null +++ b/Open-ILS/src/support-scripts/regenerate_simple_rec_view.sql @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2009 Equinox Software, Inc. + * Mike Rylander + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + */ + +-- +-- This implements a fix, for now, for an ingest issue seemingly +-- caused by atomicity issues in the simple_record_update trigger. +-- +-- Set this up to be run by cron on a regular basis -- daily or hourly, +-- depending on your reporting requirements -- in order to refresh the +-- Simple Record Extracts reporting source. +-- + +BEGIN; + +SELECT reporter.enable_materialized_simple_record_trigger(); +SELECT reporter.disable_materialized_simple_record_trigger(); + +COMMIT; +