[open-ils-commits] r12811 - trunk/Open-ILS/src/sql/Pg (dbs)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Apr 7 09:44:41 EDT 2009
Author: dbs
Date: 2009-04-07 09:44:40 -0400 (Tue, 07 Apr 2009)
New Revision: 12811
Modified:
trunk/Open-ILS/src/sql/Pg/010.schema.biblio.sql
Log:
Add a unique index on biblio.record_entry.id
On a large system (2M records), this reduced ingest time from 45-60 seconds / record to 5 seconds / record
Modified: trunk/Open-ILS/src/sql/Pg/010.schema.biblio.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/010.schema.biblio.sql 2009-04-07 13:12:36 UTC (rev 12810)
+++ trunk/Open-ILS/src/sql/Pg/010.schema.biblio.sql 2009-04-07 13:44:40 UTC (rev 12811)
@@ -41,6 +41,7 @@
marc TEXT NOT NULL,
last_xact_id TEXT NOT NULL
);
+CREATE UNIQUE INDEX biblio_record_entry_unique ON biblio.record_entry ( id );
CREATE INDEX biblio_record_entry_creator_idx ON biblio.record_entry ( creator );
CREATE INDEX biblio_record_entry_create_date_idx ON biblio.record_entry ( create_date );
CREATE INDEX biblio_record_entry_editor_idx ON biblio.record_entry ( editor );
More information about the open-ils-commits
mailing list