Skip to content

Commit f4695b5

Browse files
committed
Addressing review comments
1 parent 5c4ada5 commit f4695b5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/main/java/ca/uhn/fhir/jpa/starter/AppProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public class AppProperties {
104104

105105
private final List<String> custom_provider_classes = new ArrayList<>();
106106

107-
private List<Integer> search_prefetch_thresholds = List.of(13, 503, 2003, -1);
107+
private List<Integer> search_prefetch_thresholds = new ArrayList<>();
108108

109109

110110
public List<String> getCustomInterceptorClasses() {

src/main/java/ca/uhn/fhir/jpa/starter/common/FhirServerConfigCommon.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,9 @@ public JpaStorageSettings jpaStorageSettings(AppProperties appProperties) {
151151
jpaStorageSettings.setLanguageSearchParameterEnabled(appProperties.getLanguage_search_parameter_enabled());
152152

153153

154-
jpaStorageSettings.setSearchPreFetchThresholds(appProperties.getSearch_prefetch_thresholds());
154+
if (!appProperties.getSearch_prefetch_thresholds().isEmpty()) {
155+
jpaStorageSettings.setSearchPreFetchThresholds(appProperties.getSearch_prefetch_thresholds());
156+
}
155157

156158
Integer maxFetchSize = appProperties.getMax_page_size();
157159
jpaStorageSettings.setFetchSizeDefaultMaximum(maxFetchSize);

0 commit comments

Comments
 (0)