LP#1380709 fund_debit.invoice_entry INDEX
authorBill Erickson <berickxx@gmail.com>
Mon, 8 Dec 2014 15:34:26 +0000 (10:34 -0500)
committerKathy Lussier <klussier@masslnc.org>
Thu, 18 Feb 2016 16:47:32 +0000 (11:47 -0500)
Adds index on new acq.fund_debit.invoice_entry column, since fund_debit
can get quite large.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jennifer Pringle <jennifer.pringle@bc.libraries.coop>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/src/sql/Pg/200.schema.acq.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.fund_debit_invoice_links.sql

index ac780c5..3df7e85 100644 (file)
@@ -857,6 +857,8 @@ ALTER TABLE acq.fund_debit
         REFERENCES acq.invoice_entry (id)
         ON DELETE SET NULL;
 
+CREATE INDEX fund_debit_invoice_entry_idx ON acq.fund_debit (invoice_entry);
+
 CREATE TABLE acq.invoice_item_type (
     code    TEXT    PRIMARY KEY,
     name    TEXT    NOT NULL,  -- i18n-ize
index aca7918..7575ef9 100644 (file)
@@ -7,4 +7,6 @@ ALTER TABLE acq.fund_debit
         REFERENCES acq.invoice_entry (id)
         ON DELETE SET NULL;
 
+CREATE INDEX fund_debit_invoice_entry_idx ON acq.fund_debit (invoice_entry);
+
 COMMIT;