[open-ils-commits] [GIT] Evergreen ILS branch master updated. 42632768ec820f79171dc5aee31ba7db4e9b423d

Evergreen Git git at git.evergreen-ils.org
Wed Jun 10 14:31:30 EDT 2015


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  42632768ec820f79171dc5aee31ba7db4e9b423d (commit)
       via  4ca421fcb2d489502a1a9f61b4f9a4871a86f0f9 (commit)
      from  18d51a404ada15f07b94c4cc3d6d678cadcf607b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 42632768ec820f79171dc5aee31ba7db4e9b423d
Author: Dan Wells <dbw2 at calvin.edu>
Date:   Wed Jun 10 14:29:27 2015 -0400

    LP#1447168 Stamping upgrade script for index on ash record
    
    Signed-off-by: Dan Wells <dbw2 at calvin.edu>

diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql
index e434596..a0a4a4e 100644
--- a/Open-ILS/src/sql/Pg/002.schema.config.sql
+++ b/Open-ILS/src/sql/Pg/002.schema.config.sql
@@ -91,7 +91,7 @@ CREATE TRIGGER no_overlapping_deps
     BEFORE INSERT OR UPDATE ON config.db_patch_dependencies
     FOR EACH ROW EXECUTE PROCEDURE evergreen.array_overlap_check ('deprecates');
 
-INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0917', :eg_version); -- gmcharlt/dyrcona
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0918', :eg_version); -- gmcharlt/dbwells
 
 CREATE TABLE config.bib_source (
 	id		SERIAL	PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.index_ash_record.sql b/Open-ILS/src/sql/Pg/upgrade/0918.schema.index_ash_record.sql
similarity index 78%
rename from Open-ILS/src/sql/Pg/upgrade/XXXX.schema.index_ash_record.sql
rename to Open-ILS/src/sql/Pg/upgrade/0918.schema.index_ash_record.sql
index cd0aa25..8c92f26 100644
--- a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.index_ash_record.sql
+++ b/Open-ILS/src/sql/Pg/upgrade/0918.schema.index_ash_record.sql
@@ -2,7 +2,7 @@
 -- authority records does not require a sequential scan of ash
 BEGIN;
 
-SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
+SELECT evergreen.upgrade_deps_block_check('0918', :eg_version);
 
 CREATE INDEX authority_simple_heading_record_idx ON authority.simple_heading (record);
 

commit 4ca421fcb2d489502a1a9f61b4f9a4871a86f0f9
Author: Galen Charlton <gmc at esilibrary.com>
Date:   Wed Apr 22 13:43:19 2015 +0000

    LP#1447168: add an index on authority.simple_heading.record
    
    This index is needed so that full table scans on ash aren't
    needed during authority record reingest.
    
    Signed-off-by: Galen Charlton <gmc at esilibrary.com>
    Signed-off-by: Dan Wells <dbw2 at calvin.edu>

diff --git a/Open-ILS/src/sql/Pg/011.schema.authority.sql b/Open-ILS/src/sql/Pg/011.schema.authority.sql
index bb4aca0..0cb742f 100644
--- a/Open-ILS/src/sql/Pg/011.schema.authority.sql
+++ b/Open-ILS/src/sql/Pg/011.schema.authority.sql
@@ -316,6 +316,7 @@ CREATE TRIGGER authority_simple_heading_fti_trigger
 CREATE INDEX authority_simple_heading_index_vector_idx ON authority.simple_heading USING GIST (index_vector);
 CREATE INDEX authority_simple_heading_value_idx ON authority.simple_heading (value);
 CREATE INDEX authority_simple_heading_sort_value_idx ON authority.simple_heading (sort_value);
+CREATE INDEX authority_simple_heading_record_idx ON authority.simple_heading (record);
 
 CREATE OR REPLACE FUNCTION authority.simple_heading_set( marcxml TEXT ) RETURNS SETOF authority.simple_heading AS $func$
 DECLARE
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.index_ash_record.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.index_ash_record.sql
new file mode 100644
index 0000000..cd0aa25
--- /dev/null
+++ b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.index_ash_record.sql
@@ -0,0 +1,9 @@
+-- index authority.simple_heading.record so that reingesting
+-- authority records does not require a sequential scan of ash
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
+
+CREATE INDEX authority_simple_heading_record_idx ON authority.simple_heading (record);
+
+COMMIT;

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/src/sql/Pg/002.schema.config.sql          |    2 +-
 Open-ILS/src/sql/Pg/011.schema.authority.sql       |    1 +
 .../Pg/upgrade/0918.schema.index_ash_record.sql    |    9 +++++++++
 3 files changed, 11 insertions(+), 1 deletions(-)
 create mode 100644 Open-ILS/src/sql/Pg/upgrade/0918.schema.index_ash_record.sql


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list