Skip to content

Commit 5c4ada5

Browse files
committed
Make java default as well for people who dont update their app properties on upgrade
1 parent bfac1d0 commit 5c4ada5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
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 = new ArrayList<>();
107+
private List<Integer> search_prefetch_thresholds = List.of(13, 503, 2003, -1);
108108

109109

110110
public List<String> getCustomInterceptorClasses() {

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ public JpaStorageSettings jpaStorageSettings(AppProperties appProperties) {
150150
jpaStorageSettings.setExpungeEnabled(appProperties.getExpunge_enabled());
151151
jpaStorageSettings.setLanguageSearchParameterEnabled(appProperties.getLanguage_search_parameter_enabled());
152152

153+
153154
jpaStorageSettings.setSearchPreFetchThresholds(appProperties.getSearch_prefetch_thresholds());
154155

155156
Integer maxFetchSize = appProperties.getMax_page_size();

0 commit comments

Comments
 (0)