File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed
java/ca/uhn/fhir/jpa/starter Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,8 @@ public class AppProperties {
96
96
private Integer bundle_batch_pool_max_size = 100 ;
97
97
private final Set <String > local_base_urls = new HashSet <>();
98
98
private final Set <String > logical_urls = new HashSet <>();
99
+
100
+ private Boolean resource_dbhistory_enabled = true ;
99
101
100
102
private final List <String > custom_interceptor_classes = new ArrayList <>();
101
103
@@ -903,4 +905,12 @@ public boolean getEnable_index_of_type() {
903
905
public void setEnable_index_of_type (boolean enable_index_of_type ) {
904
906
this .enable_index_of_type = enable_index_of_type ;
905
907
}
908
+
909
+ public Boolean getResource_dbhistory_enabled () {
910
+ return resource_dbhistory_enabled ;
911
+ }
912
+
913
+ public void setResource_dbhistory_enabled (Boolean resource_dbhistory_enabled ) {
914
+ this .resource_dbhistory_enabled = resource_dbhistory_enabled ;
915
+ }
906
916
}
Original file line number Diff line number Diff line change @@ -194,6 +194,9 @@ public JpaStorageSettings jpaStorageSettings(AppProperties appProperties) {
194
194
jpaStorageSettings .setResourceServerIdStrategy (appProperties .getServer_id_strategy ());
195
195
ourLog .info ("Server configured to use '" + appProperties .getServer_id_strategy () + "' Server ID Strategy" );
196
196
}
197
+
198
+ //to Disable the Resource History
199
+ jpaStorageSettings .setResourceDbHistoryEnabled (appProperties .getResource_dbhistory_enabled ());
197
200
198
201
// Parallel Batch GET execution settings
199
202
jpaStorageSettings .setBundleBatchPoolSize (appProperties .getBundle_batch_pool_size ());
Original file line number Diff line number Diff line change @@ -127,6 +127,7 @@ hapi:
127
127
# enable_index_missing_fields: false
128
128
# enable_index_of_type: true
129
129
# enable_index_contained_resource: false
130
+ # resource_dbhistory_enabled: false
130
131
# ## !!Extended Lucene/Elasticsearch Indexing is still a experimental feature, expect some features (e.g. _total=accurate) to not work as expected!!
131
132
# ## more information here: https://hapifhir.io/hapi-fhir/docs/server_jpa/elastic.html
132
133
advanced_lucene_indexing : false
You can’t perform that action at this time.
0 commit comments