replace UNION with UNION ALL in chained search query (#3715)

This commit is contained in:
JasonRoberts-smile 2022-06-17 12:10:21 -04:00 committed by GitHub
parent 4fbbf4366c
commit a18c83ae13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -0,0 +1,4 @@
type: perf
issue: 3714
jira: SMILE-4484
title: "Chained searches have been sped up for configurations where the `Index Contained Resources` feature is enabled."

View File

@ -933,7 +933,7 @@ public class QueryStack {
EnumSet<PredicateBuilderTypeEnum> cachedReusePredicateBuilderTypes = EnumSet.copyOf(myReusePredicateBuilderTypes);
myReusePredicateBuilderTypes.clear();
UnionQuery union = new UnionQuery(SetOperationQuery.Type.UNION);
UnionQuery union = new UnionQuery(SetOperationQuery.Type.UNION_ALL);
ReferenceChainExtractor chainExtractor = new ReferenceChainExtractor();
chainExtractor.deriveChains(theResourceName, theSearchParam, theList);