@@ -114,6 +114,10 @@ pub struct EnvVarsStore {
114114 /// For how many prune runs per deployment to keep status information.
115115 /// Set by `GRAPH_STORE_HISTORY_KEEP_STATUS`. The default is 5
116116 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 ,
117121 /// How long to accumulate changes into a batch before a write has to
118122 /// happen. Set by the environment variable
119123 /// `GRAPH_STORE_WRITE_BATCH_DURATION` in seconds. The default is 300s.
@@ -188,6 +192,7 @@ impl TryFrom<InnerStore> for EnvVarsStore {
188192 delete_threshold : x. delete_threshold . 0 ,
189193 history_slack_factor : x. history_slack_factor . 0 ,
190194 prune_keep_history : x. prune_keep_status ,
195+ prune_disable_range_bound_estimation : x. prune_disable_range_bound_estimation ,
191196 write_batch_duration : Duration :: from_secs ( x. write_batch_duration_in_secs ) ,
192197 write_batch_size : x. write_batch_size * 1_000 ,
193198 create_gin_indexes : x. create_gin_indexes ,
@@ -263,6 +268,11 @@ pub struct InnerStore {
263268 history_slack_factor : HistorySlackF64 ,
264269 #[ envconfig( from = "GRAPH_STORE_HISTORY_KEEP_STATUS" , default = "5" ) ]
265270 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 ,
266276 #[ envconfig( from = "GRAPH_STORE_WRITE_BATCH_DURATION" , default = "300" ) ]
267277 write_batch_duration_in_secs : u64 ,
268278 #[ envconfig( from = "GRAPH_STORE_WRITE_BATCH_SIZE" , default = "10000" ) ]
0 commit comments