Cuts upgrade time to about one one-hundredth of what it was before.
git-svn-id: svn://svn.open-ils.org/ILS/trunk@14400
dcc99617-32d9-48b4-a31d-
7c20da2025e4
FOR EACH ROW EXECUTE PROCEDURE oils_tsearch2('subject');
CREATE INDEX metabib_subject_field_entry_index_vector_idx ON metabib.subject_field_entry USING GIST (index_vector);
+CREATE INDEX metabib_subject_field_entry_source_idx ON metabib.subject_field_entry (source);
CREATE TABLE metabib.keyword_field_entry (
INSERT INTO config.metabib_field (field_class, name, format, xpath ) VALUES
( 'subject', 'complete', 'mods32', $$//mods32:mods/mods32:subject//text()$$ );
+CREATE INDEX metabib_subject_field_entry_source_idx ON metabib.subject_field_entry (source);
+
INSERT INTO metabib.subject_field_entry (source, field, value)
SELECT source, (
SELECT id
SELECT source
FROM metabib.subject_field_entry
GROUP BY source
- ) AS groupee
- ORDER BY source;
+ ) AS groupee;
COMMIT;