cnosdb
cnosdb copied to clipboard
columns_index don't save in meta
Is your feature request related to a problem? Please describe.
pub struct TskvTableSchema {
pub tenant: String,
pub db: String,
pub name: String,
pub schema_version: SchemaVersion,
next_column_id: ColumnId,
columns: Vec<TableColumn>,
//ColumnName -> ColumnsIndex
columns_index: HashMap<String, usize>,
}
Columns_index can be built from columns, so it does not need to be stored in meta
columns_index and columns are redundant; The original design was intended for fast indexing; Confirm if it is necessary.
Columns_index is not necessary to store in meta.