Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose Setting for prefetch thresholds #742

Merged
merged 6 commits into from
Oct 28, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Addressing review comments
tadgh committed Sep 27, 2024
commit f4695b5c044864ad30ad371fb8d4532e6eecd9b6
2 changes: 1 addition & 1 deletion src/main/java/ca/uhn/fhir/jpa/starter/AppProperties.java
Original file line number Diff line number Diff line change
@@ -104,7 +104,7 @@ public class AppProperties {

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

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


public List<String> getCustomInterceptorClasses() {
Original file line number Diff line number Diff line change
@@ -151,7 +151,9 @@ public JpaStorageSettings jpaStorageSettings(AppProperties appProperties) {
jpaStorageSettings.setLanguageSearchParameterEnabled(appProperties.getLanguage_search_parameter_enabled());


jpaStorageSettings.setSearchPreFetchThresholds(appProperties.getSearch_prefetch_thresholds());
if (!appProperties.getSearch_prefetch_thresholds().isEmpty()) {
jpaStorageSettings.setSearchPreFetchThresholds(appProperties.getSearch_prefetch_thresholds());
}

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