From 1f3df412bca2134e2cbfca7ab8cc357b97e11bf8 Mon Sep 17 00:00:00 2001 From: Dan Wells Date: Fri, 17 Jun 2016 09:54:28 -0400 Subject: [PATCH] Add missing flag for 'composite' attributes 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 --- Open-ILS/src/sql/Pg/030.schema.metabib.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/sql/Pg/030.schema.metabib.sql b/Open-ILS/src/sql/Pg/030.schema.metabib.sql index 9c0edce5c6..c8ad469e90 100644 --- a/Open-ILS/src/sql/Pg/030.schema.metabib.sql +++ b/Open-ILS/src/sql/Pg/030.schema.metabib.sql @@ -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 ); -- 2.11.0