Add missing flag for 'composite' attributes user/dbwells/speed_up_rec_attr_ingest
authorDan Wells <dbw2@calvin.edu>
Fri, 17 Jun 2016 13:54:28 +0000 (09:54 -0400)
committerDan Wells <dbw2@calvin.edu>
Fri, 17 Jun 2016 13:54:28 +0000 (09:54 -0400)
Configuration for 'composite' attributes are stored in a separate
table, so the rows in config.record_attr_definition don't have indexing
data, just a flag.

This commit checks for this flag so that composite entries are not
missed.  This obviously gives back some of the measured gains, but so
far still a measurable improvement (roughly 2x on my system, YMMV).

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/src/sql/Pg/030.schema.metabib.sql

index 9c0edce..c8ad469 100644 (file)
@@ -1351,7 +1351,8 @@ BEGIN
             tag IS NOT NULL OR
             fixed_field IS NOT NULL OR
             xpath IS NOT NULL OR
-            phys_char_sf IS NOT NULL
+            phys_char_sf IS NOT NULL OR
+            composite
         ) AND (
             filter OR sorter
         );