Add index storage optimized

This commit is contained in:
James Agnew
2025-06-06 09:23:02 +02:00
parent f31a7743c3
commit d972a2a2f3
3 changed files with 12 additions and 0 deletions

View File

@@ -111,6 +111,7 @@ public class AppProperties {
private Map<String, RemoteSystem> remote_terminology_service = null;
private Boolean match_url_cache_enabled = false;
private Boolean index_storage_optimized = false;
public List<String> getCustomInterceptorClasses() {
return custom_interceptor_classes;
@@ -753,6 +754,14 @@ public class AppProperties {
match_url_cache_enabled = theMatchUrlCacheEnabled;
}
public boolean getIndex_storage_optimized() {
return defaultIfNull(index_storage_optimized, false);
}
public void setIndex_storage_optimized(boolean theIndex_storage_optimized) {
index_storage_optimized = theIndex_storage_optimized;
}
public static class Cors {
private Boolean allow_Credentials = true;
private List<String> allowed_origin = List.of("*");

View File

@@ -178,6 +178,7 @@ public class FhirServerConfigCommon {
jpaStorageSettings.setAllowMultipleDelete(appProperties.getAllow_multiple_delete());
jpaStorageSettings.setAllowExternalReferences(appProperties.getAllow_external_references());
jpaStorageSettings.setSchedulingDisabled(!appProperties.getDao_scheduling_enabled());
jpaStorageSettings.setIndexStorageOptimized(appProperties.getIndex_storage_optimized());
jpaStorageSettings.setMatchUrlCacheEnabled(appProperties.getMatch_url_cache_enabled());
jpaStorageSettings.setDeleteEnabled(appProperties.getDelete_enabled());
jpaStorageSettings.setDeleteExpungeEnabled(appProperties.getDelete_expunge_enabled());

View File

@@ -194,6 +194,8 @@ hapi:
# delete_expunge_enabled: true
# match_url_cache_enabled: false
# enable_repository_validating_interceptor: true
### Reduce the size used by search indexes by not tagging every row with the resource type and parameter name (this setting makes manual inspection of the database more difficult, but does not impact HAPI FHIR functionality in any way)
# index_storage_optimized: false
# enable_index_missing_fields: false
# enable_index_of_type: true
# enable_index_contained_resource: false