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

Evergreen Git git at git.evergreen-ils.org
Wed Feb 8 10:33:25 EST 2012


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  e8857f2ae267956136b9f4ee3f3263c11ea2c7ae (commit)
       via  5e36baf3a8fc4754693e6813df6be1ef0108aa16 (commit)
      from  84bfb1cc1d41d4fd6f3798204049bfdd192394ae (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 e8857f2ae267956136b9f4ee3f3263c11ea2c7ae
Author: Bill Erickson <berick at esilibrary.com>
Date:   Wed Feb 8 10:32:44 2012 -0500

    Stamping upgrade for LP#928896
    
    Signed-off-by: Bill Erickson <berick at esilibrary.com>

diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql
index 9914d60..f596fa2 100644
--- a/Open-ILS/src/sql/Pg/002.schema.config.sql
+++ b/Open-ILS/src/sql/Pg/002.schema.config.sql
@@ -86,7 +86,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 ('0674', :eg_version); -- phasefx/Dyrcona/senator
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0675', :eg_version); -- gmc/berick
 
 CREATE TABLE config.bib_source (
 	id		SERIAL	PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.usr_visible_circ_copies_row_estimates.sql b/Open-ILS/src/sql/Pg/upgrade/0675.schema.usr_visible_circ_copies_row_estimates.sql
similarity index 84%
rename from Open-ILS/src/sql/Pg/upgrade/XXXX.schema.usr_visible_circ_copies_row_estimates.sql
rename to Open-ILS/src/sql/Pg/upgrade/0675.schema.usr_visible_circ_copies_row_estimates.sql
index a191fb4..0c7c8e3 100644
--- a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.usr_visible_circ_copies_row_estimates.sql
+++ b/Open-ILS/src/sql/Pg/upgrade/0675.schema.usr_visible_circ_copies_row_estimates.sql
@@ -1,5 +1,7 @@
 BEGIN;
 
+SELECT evergreen.upgrade_deps_block_check('0675', :eg_version);
+
 -- set expected row count to low value to avoid problem
 -- where use of this function by the circ tagging feature
 -- results in full scans of asset.call_number

commit 5e36baf3a8fc4754693e6813df6be1ef0108aa16
Author: Galen Charlton <gmc at esilibrary.com>
Date:   Wed Feb 8 10:01:24 2012 -0500

    LP#928896 improve row estimate for action.usr_visible_circ_copies()
    
    Fixes problem where use of this function by the tagging circs in search
    results feature can result in sequential scans of asset.call_number.
    
    Thanks to Mike Rylander for the suggestion.
    
    Signed-off-by: Galen Charlton <gmc at esilibrary.com>
    Signed-off-by: Bill Erickson <berick at esilibrary.com>

diff --git a/Open-ILS/src/sql/Pg/090.schema.action.sql b/Open-ILS/src/sql/Pg/090.schema.action.sql
index 715c64a..1af6e89 100644
--- a/Open-ILS/src/sql/Pg/090.schema.action.sql
+++ b/Open-ILS/src/sql/Pg/090.schema.action.sql
@@ -699,7 +699,7 @@ $func$ LANGUAGE PLPGSQL;
 
 CREATE OR REPLACE FUNCTION action.usr_visible_circ_copies( INTEGER ) RETURNS SETOF BIGINT AS $$
     SELECT DISTINCT(target_copy) FROM action.usr_visible_circs($1)
-$$ LANGUAGE SQL;
+$$ LANGUAGE SQL ROWS 10;
 
 CREATE OR REPLACE FUNCTION action.usr_visible_holds (usr_id INT) RETURNS SETOF action.hold_request AS $func$
 DECLARE
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.usr_visible_circ_copies_row_estimates.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.usr_visible_circ_copies_row_estimates.sql
new file mode 100644
index 0000000..a191fb4
--- /dev/null
+++ b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.usr_visible_circ_copies_row_estimates.sql
@@ -0,0 +1,10 @@
+BEGIN;
+
+-- set expected row count to low value to avoid problem
+-- where use of this function by the circ tagging feature
+-- results in full scans of asset.call_number
+CREATE OR REPLACE FUNCTION action.usr_visible_circ_copies( INTEGER ) RETURNS SETOF BIGINT AS $$
+    SELECT DISTINCT(target_copy) FROM action.usr_visible_circs($1)
+$$ LANGUAGE SQL ROWS 10;
+
+COMMIT;

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

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


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list