[open-ils-commits] [GIT] Evergreen ILS branch rel_3_0 updated. 3ea9d98244ff052b9a36ceb1db5e2c0d790afa08

Evergreen Git git at git.evergreen-ils.org
Wed Jun 27 16:13:42 EDT 2018


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, rel_3_0 has been updated
       via  3ea9d98244ff052b9a36ceb1db5e2c0d790afa08 (commit)
       via  f1745afe5e28c4a3c8e230b2b7fa8a08b4375c32 (commit)
      from  17fe954e1efa8625014b647fb3c65700f542dec3 (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 3ea9d98244ff052b9a36ceb1db5e2c0d790afa08
Author: Jason Stephenson <jason at sigio.com>
Date:   Wed Jun 27 16:08:17 2018 -0400

    LP 1758160: Bump version in upgrade_log.
    
    Signed-off-by: Jason Stephenson <jason at sigio.com>

diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql
index af854f8..8f83a6f 100644
--- a/Open-ILS/src/sql/Pg/002.schema.config.sql
+++ b/Open-ILS/src/sql/Pg/002.schema.config.sql
@@ -92,7 +92,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 ('1110', :eg_version); --gmcharlt/cesardv/kmlussier
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1112', :eg_version); -- Bmagic/JBoyer/Dyrcona
 
 CREATE TABLE config.bib_source (
 	id		SERIAL	PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.auch-source_circ-index.sql b/Open-ILS/src/sql/Pg/upgrade/1112.schema.auch-source_circ-index.sql
similarity index 78%
rename from Open-ILS/src/sql/Pg/upgrade/XXXX.schema.auch-source_circ-index.sql
rename to Open-ILS/src/sql/Pg/upgrade/1112.schema.auch-source_circ-index.sql
index 2f0673a..d407036 100644
--- a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.auch-source_circ-index.sql
+++ b/Open-ILS/src/sql/Pg/upgrade/1112.schema.auch-source_circ-index.sql
@@ -1,6 +1,6 @@
 BEGIN;
 
-SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
+SELECT evergreen.upgrade_deps_block_check('1112', :eg_version);
 
 -- Add an index to action.usr_circ_history (source_circ) to speed up aging circs and purging accounts
 

commit f1745afe5e28c4a3c8e230b2b7fa8a08b4375c32
Author: blake <blake at mobiusconsortium.org>
Date:   Mon Apr 9 19:52:08 2018 -0500

    LP1758160_Deleting_patrons_can_exceed_staff_client_timeouts
    
    Added an index to action.usr_circ_history for much needed postgresql justice.
    This will increase the speed when deleting patrons with large number of circulations.
    
    Signed-off-by: blake <blake at mobiusconsortium.org>
    Signed-off-by: Jason Boyer <jboyer at library.in.gov>
    Signed-off-by: Jason Stephenson <jason at sigio.com>

diff --git a/Open-ILS/src/sql/Pg/090.schema.action.sql b/Open-ILS/src/sql/Pg/090.schema.action.sql
index 7d06aba..2fb3659 100644
--- a/Open-ILS/src/sql/Pg/090.schema.action.sql
+++ b/Open-ILS/src/sql/Pg/090.schema.action.sql
@@ -1547,6 +1547,7 @@ CREATE TABLE action.usr_circ_history (
 );
 
 CREATE INDEX action_usr_circ_history_usr_idx ON action.usr_circ_history ( usr );
+CREATE INDEX action_usr_circ_history_source_circ_idx ON action.usr_circ_history ( source_circ );
 
 CREATE TRIGGER action_usr_circ_history_target_copy_trig 
     AFTER INSERT OR UPDATE ON action.usr_circ_history 
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.auch-source_circ-index.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.auch-source_circ-index.sql
new file mode 100644
index 0000000..2f0673a
--- /dev/null
+++ b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.auch-source_circ-index.sql
@@ -0,0 +1,12 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
+
+-- Add an index to action.usr_circ_history (source_circ) to speed up aging circs and purging accounts
+
+CREATE INDEX action_usr_circ_history_source_circ_idx 
+  ON action.usr_circ_history
+  USING btree
+  (source_circ);
+
+COMMIT;

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

Summary of changes:
 Open-ILS/src/sql/Pg/002.schema.config.sql          |    2 +-
 Open-ILS/src/sql/Pg/090.schema.action.sql          |    1 +
 .../upgrade/1112.schema.auch-source_circ-index.sql |   12 ++++++++++++
 3 files changed, 14 insertions(+), 1 deletions(-)
 create mode 100644 Open-ILS/src/sql/Pg/upgrade/1112.schema.auch-source_circ-index.sql


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list