Skip to content

Commit d972a2a

Browse files
James AgnewJames Agnew
authored andcommitted
Add index storage optimized
1 parent f31a774 commit d972a2a

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ public class AppProperties {
111111

112112
private Map<String, RemoteSystem> remote_terminology_service = null;
113113
private Boolean match_url_cache_enabled = false;
114+
private Boolean index_storage_optimized = false;
114115

115116
public List<String> getCustomInterceptorClasses() {
116117
return custom_interceptor_classes;
@@ -753,6 +754,14 @@ public void setMatch_url_cache_enabled(boolean theMatchUrlCacheEnabled) {
753754
match_url_cache_enabled = theMatchUrlCacheEnabled;
754755
}
755756

757+
public boolean getIndex_storage_optimized() {
758+
return defaultIfNull(index_storage_optimized, false);
759+
}
760+
761+
public void setIndex_storage_optimized(boolean theIndex_storage_optimized) {
762+
index_storage_optimized = theIndex_storage_optimized;
763+
}
764+
756765
public static class Cors {
757766
private Boolean allow_Credentials = true;
758767
private List<String> allowed_origin = List.of("*");

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
@@ -178,6 +178,7 @@ public JpaStorageSettings jpaStorageSettings(AppProperties appProperties) {
178178
jpaStorageSettings.setAllowMultipleDelete(appProperties.getAllow_multiple_delete());
179179
jpaStorageSettings.setAllowExternalReferences(appProperties.getAllow_external_references());
180180
jpaStorageSettings.setSchedulingDisabled(!appProperties.getDao_scheduling_enabled());
181+
jpaStorageSettings.setIndexStorageOptimized(appProperties.getIndex_storage_optimized());
181182
jpaStorageSettings.setMatchUrlCacheEnabled(appProperties.getMatch_url_cache_enabled());
182183
jpaStorageSettings.setDeleteEnabled(appProperties.getDelete_enabled());
183184
jpaStorageSettings.setDeleteExpungeEnabled(appProperties.getDelete_expunge_enabled());

src/main/resources/application.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,8 @@ hapi:
194194
# delete_expunge_enabled: true
195195
# match_url_cache_enabled: false
196196
# enable_repository_validating_interceptor: true
197+
### 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)
198+
# index_storage_optimized: false
197199
# enable_index_missing_fields: false
198200
# enable_index_of_type: true
199201
# enable_index_contained_resource: false

0 commit comments

Comments
 (0)