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>
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
);