@@ -114,6 +114,10 @@ pub struct EnvVarsStore {
114
114
/// For how many prune runs per deployment to keep status information.
115
115
/// Set by `GRAPH_STORE_HISTORY_KEEP_STATUS`. The default is 5
116
116
pub prune_keep_history : usize ,
117
+ /// Temporary switch to disable range bound estimation for pruning.
118
+ /// Set by `GRAPH_STORE_PRUNE_DISABLE_RANGE_BOUND_ESTIMATION`.
119
+ /// Defaults to false. Remove after 2025-07-15
120
+ pub prune_disable_range_bound_estimation : bool ,
117
121
/// How long to accumulate changes into a batch before a write has to
118
122
/// happen. Set by the environment variable
119
123
/// `GRAPH_STORE_WRITE_BATCH_DURATION` in seconds. The default is 300s.
@@ -188,6 +192,7 @@ impl TryFrom<InnerStore> for EnvVarsStore {
188
192
delete_threshold : x. delete_threshold . 0 ,
189
193
history_slack_factor : x. history_slack_factor . 0 ,
190
194
prune_keep_history : x. prune_keep_status ,
195
+ prune_disable_range_bound_estimation : x. prune_disable_range_bound_estimation ,
191
196
write_batch_duration : Duration :: from_secs ( x. write_batch_duration_in_secs ) ,
192
197
write_batch_size : x. write_batch_size * 1_000 ,
193
198
create_gin_indexes : x. create_gin_indexes ,
@@ -263,6 +268,11 @@ pub struct InnerStore {
263
268
history_slack_factor : HistorySlackF64 ,
264
269
#[ envconfig( from = "GRAPH_STORE_HISTORY_KEEP_STATUS" , default = "5" ) ]
265
270
prune_keep_status : usize ,
271
+ #[ envconfig(
272
+ from = "GRAPH_STORE_PRUNE_DISABLE_RANGE_BOUND_ESTIMATION" ,
273
+ default = "false"
274
+ ) ]
275
+ prune_disable_range_bound_estimation : bool ,
266
276
#[ envconfig( from = "GRAPH_STORE_WRITE_BATCH_DURATION" , default = "300" ) ]
267
277
write_batch_duration_in_secs : u64 ,
268
278
#[ envconfig( from = "GRAPH_STORE_WRITE_BATCH_SIZE" , default = "10000" ) ]
0 commit comments