JBAS-1832 Skip reporter simple record rebuild
authorBill Erickson <berickxx@gmail.com>
Thu, 14 Mar 2019 20:19:43 +0000 (16:19 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:51:45 +0000 (15:51 -0400)
This step must be done after the display fields have been added as part
of a bib reingest.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
KCLS/sql/schema/deploy/3.2-additions.sql

index d0b5592..3e32311 100644 (file)
@@ -182,9 +182,13 @@ SELECT CLOCK_TIMESTAMP(),
 ------------------------------------------------------------------------------
 
 -- REBUILD reporter.materialized_simple_record after the XACT is commited.
+-- THIS MUST BE RUN AFTER REINGESTING BIB RECORDS BECAUSE IT RELIES
+-- ON METABIB DISPLAY FIELDS TO REPOPULATE.
+/*
 SELECT reporter.disable_materialized_simple_record_trigger();
 
 SELECT CLOCK_TIMESTAMP(), 'Rebuilding reporter.materialized_simple_record...';
 SELECT reporter.enable_materialized_simple_record_trigger();
 SELECT CLOCK_TIMESTAMP(), 'Done rebuilding reporter.materialized_simple_record...';
+*/