replace UNION with UNION ALL in chained search query (#3715)
This commit is contained in:
parent
4fbbf4366c
commit
a18c83ae13
|
@ -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."
|
|
@ -933,7 +933,7 @@ public class QueryStack {
|
||||||
EnumSet<PredicateBuilderTypeEnum> cachedReusePredicateBuilderTypes = EnumSet.copyOf(myReusePredicateBuilderTypes);
|
EnumSet<PredicateBuilderTypeEnum> cachedReusePredicateBuilderTypes = EnumSet.copyOf(myReusePredicateBuilderTypes);
|
||||||
myReusePredicateBuilderTypes.clear();
|
myReusePredicateBuilderTypes.clear();
|
||||||
|
|
||||||
UnionQuery union = new UnionQuery(SetOperationQuery.Type.UNION);
|
UnionQuery union = new UnionQuery(SetOperationQuery.Type.UNION_ALL);
|
||||||
|
|
||||||
ReferenceChainExtractor chainExtractor = new ReferenceChainExtractor();
|
ReferenceChainExtractor chainExtractor = new ReferenceChainExtractor();
|
||||||
chainExtractor.deriveChains(theResourceName, theSearchParam, theList);
|
chainExtractor.deriveChains(theResourceName, theSearchParam, theList);
|
||||||
|
|
Loading…
Reference in New Issue