File tree Expand file tree Collapse file tree 3 files changed +26
-3
lines changed
java/ca/uhn/fhir/jpa/starter Expand file tree Collapse file tree 3 files changed +26
-3
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,8 @@ public class AppProperties {
104
104
105
105
private final List <String > custom_provider_classes = new ArrayList <>();
106
106
107
+ private List <Integer > search_prefetch_thresholds = new ArrayList <>();
108
+
107
109
108
110
public List <String > getCustomInterceptorClasses () {
109
111
return custom_interceptor_classes ;
@@ -643,7 +645,16 @@ public void setLanguage_search_parameter_enabled(Boolean language_search_paramet
643
645
this .language_search_parameter_enabled = language_search_parameter_enabled ;
644
646
}
645
647
646
- public static class Cors {
648
+ public List <Integer > getSearch_prefetch_thresholds () {
649
+ return this .search_prefetch_thresholds ;
650
+ }
651
+
652
+ public void setSearch_prefetch_thresholds (List <Integer > thePrefetchThresholds ) {
653
+ this .search_prefetch_thresholds = thePrefetchThresholds ;
654
+ }
655
+
656
+
657
+ public static class Cors {
647
658
private Boolean allow_Credentials = true ;
648
659
private List <String > allowed_origin = List .of ("*" );
649
660
Original file line number Diff line number Diff line change @@ -150,6 +150,7 @@ public JpaStorageSettings jpaStorageSettings(AppProperties appProperties) {
150
150
jpaStorageSettings .setExpungeEnabled (appProperties .getExpunge_enabled ());
151
151
jpaStorageSettings .setLanguageSearchParameterEnabled (appProperties .getLanguage_search_parameter_enabled ());
152
152
153
+ jpaStorageSettings .setSearchPreFetchThresholds (appProperties .getSearch_prefetch_thresholds ());
153
154
154
155
Integer maxFetchSize = appProperties .getMax_page_size ();
155
156
jpaStorageSettings .setFetchSizeDefaultMaximum (maxFetchSize );
Original file line number Diff line number Diff line change 76
76
# ## This flag when enabled to true, will avail evaluate measure operations from CR Module.
77
77
# ## Flag is false by default, can be passed as command line argument to override.
78
78
cr :
79
- enabled : false
79
+ enabled : true
80
80
caregaps :
81
81
reporter : " default"
82
82
section_author : " default"
@@ -229,7 +229,18 @@ hapi:
229
229
search-coord-core-pool-size : 20
230
230
search-coord-max-pool-size : 100
231
231
search-coord-queue-capacity : 200
232
-
232
+
233
+ # Search Prefetch Thresholds.
234
+
235
+ # This setting sets the number of search results to prefetch. For example, if this list
236
+ # is set to [100, 1000, -1] then the server will initially load 100 results and not
237
+ # attempt to load more. If the user requests subsequent page(s) of results and goes
238
+ # past 100 results, the system will load the next 900 (up to the following threshold of 1000).
239
+ # The system will progressively work through these thresholds.
240
+ # A threshold of -1 means to load all results. Note that if the final threshold is a
241
+ # number other than -1, the system will never prefetch more than the given number.
242
+ search_prefetch_thresholds : 13,503,2003
243
+
233
244
# comma-separated package names, will be @ComponentScan'ed by Spring to allow for creating custom Spring beans
234
245
# custom-bean-packages:
235
246
You can’t perform that action at this time.
0 commit comments