Skip to content

Commit 7778121

Browse files
committed
graph: Reenable postponed index creation
1 parent bc586b1 commit 7778121

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

graph/src/env/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,8 @@ impl EnvVars {
351351
subgraph_error_retry_ceil: Duration::from_secs(inner.subgraph_error_retry_ceil_in_secs),
352352
subgraph_error_retry_jitter: inner.subgraph_error_retry_jitter,
353353
enable_select_by_specific_attributes: inner.enable_select_by_specific_attributes.0,
354-
postpone_attribute_index_creation: false,
354+
postpone_attribute_index_creation: inner.postpone_attribute_index_creation.0
355+
|| cfg!(debug_assertions),
355356
postpone_indexes_creation_threshold: inner.postpone_indexes_creation_threshold,
356357
log_trigger_data: inner.log_trigger_data.0,
357358
explorer_ttl: Duration::from_secs(inner.explorer_ttl_in_secs),
@@ -556,7 +557,6 @@ struct Inner {
556557
#[envconfig(from = "GRAPH_ENABLE_SELECT_BY_SPECIFIC_ATTRIBUTES", default = "true")]
557558
enable_select_by_specific_attributes: EnvVarBoolean,
558559
#[envconfig(from = "GRAPH_POSTPONE_ATTRIBUTE_INDEX_CREATION", default = "false")]
559-
#[allow(unused)]
560560
postpone_attribute_index_creation: EnvVarBoolean,
561561
#[envconfig(from = "GRAPH_POSTPONE_INDEXES_CREATION_THRESHOLD", default = "10000")]
562562
postpone_indexes_creation_threshold: i32,

0 commit comments

Comments
 (0)