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

Evergreen Git git at git.evergreen-ils.org
Fri Jul 12 15:29:09 EDT 2013


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  2532f01f3f6b8eec6fcbc72e42edfc9039150ad6 (commit)
       via  2471a555354226a8a1c75de6c9e31c7f7a64ecb4 (commit)
      from  82e6978f5b33909c2cbb646c1dd36086e7ae7254 (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 2532f01f3f6b8eec6fcbc72e42edfc9039150ad6
Author: Bill Erickson <berick at esilibrary.com>
Date:   Fri Jul 12 15:19:23 2013 -0400

    LP1200735 stamping upgrade for usrname index
    
    Signed-off-by: Bill Erickson <berick at esilibrary.com>

diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.usrname_index.sql b/Open-ILS/src/sql/Pg/upgrade/0808.schema.usrname_index.sql
similarity index 75%
rename from Open-ILS/src/sql/Pg/upgrade/XXXX.schema.usrname_index.sql
rename to Open-ILS/src/sql/Pg/upgrade/0808.schema.usrname_index.sql
index 288b43a..396c92d 100644
--- a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.usrname_index.sql
+++ b/Open-ILS/src/sql/Pg/upgrade/0808.schema.usrname_index.sql
@@ -4,7 +4,7 @@
 --
 BEGIN;
 
-SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
+SELECT evergreen.upgrade_deps_block_check('0808', :eg_version);
 
 CREATE INDEX actor_usr_usrname_idx ON actor.usr (evergreen.lowercase(usrname));
 

commit 2471a555354226a8a1c75de6c9e31c7f7a64ecb4
Author: Galen Charlton <gmc at esilibrary.com>
Date:   Fri Jul 12 15:10:32 2013 -0400

    LP#1200735: improve performance of patron search by username
    
    This patch adds an additional index on actor.usr.usrname.
    
    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/005.schema.actors.sql b/Open-ILS/src/sql/Pg/005.schema.actors.sql
index f27af04..d9ea689 100644
--- a/Open-ILS/src/sql/Pg/005.schema.actors.sql
+++ b/Open-ILS/src/sql/Pg/005.schema.actors.sql
@@ -83,6 +83,7 @@ CREATE INDEX actor_usr_first_given_name_idx ON actor.usr (evergreen.lowercase(fi
 CREATE INDEX actor_usr_second_given_name_idx ON actor.usr (evergreen.lowercase(second_given_name));
 CREATE INDEX actor_usr_family_name_idx ON actor.usr (evergreen.lowercase(family_name));
 
+CREATE INDEX actor_usr_usrname_idx ON actor.usr (evergreen.lowercase(usrname));
 CREATE INDEX actor_usr_email_idx ON actor.usr (evergreen.lowercase(email));
 
 CREATE INDEX actor_usr_day_phone_idx ON actor.usr (evergreen.lowercase(day_phone));
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.usrname_index.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.usrname_index.sql
new file mode 100644
index 0000000..288b43a
--- /dev/null
+++ b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.usrname_index.sql
@@ -0,0 +1,11 @@
+-- Evergreen DB patch XXXX.schema.usrname_index.sql
+--
+-- Create search index on actor.usr.usrname
+--
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
+
+CREATE INDEX actor_usr_usrname_idx ON actor.usr (evergreen.lowercase(usrname));
+
+COMMIT;

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

Summary of changes:
 Open-ILS/src/sql/Pg/005.schema.actors.sql          |    1 +
 .../sql/Pg/upgrade/0808.schema.usrname_index.sql   |   11 +++++++++++
 2 files changed, 12 insertions(+), 0 deletions(-)
 create mode 100644 Open-ILS/src/sql/Pg/upgrade/0808.schema.usrname_index.sql


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list