Skip to main content

create_index

Function create_index 

Source
pub fn create_index(
    tables: &Vec<Table>,
    table: u32,
    cols: &[u32],
) -> Option<Vec<u8>>
Expand description

CREATE INDEX IF NOT EXISTS on tenant_id and columns cols of table table, so reads that filter on them need not scan the tenant. Indexes change no result, only speed. None on a bad schema, table or column.