Skip to main content

CREATE_INDICES

Constant CREATE_INDICES 

Source
pub const CREATE_INDICES: &[&str];
Expand description

Every index the schema declares.

§Two entries left in v8, and why the list is now allowed to be short

idx_annotations_label and idx_lc_tgt_active were dropped by the v7 → v8 rung (D-089, completed by D-118). Neither had a reader anywhere in the crate — analytics_annotations is never selected from here at all, and no query seeks on links_current.target_id as a leading column — so each was an index write per insert, forever, buying nothing. One of them was on the crate’s hottest write path.

tests/index_plan_tests.rs now requires the unread set to be empty, which turns “these two are known bad” into “an index with no reader is a red test”. That is the guarantee this list is kept short by.