我创建了一个表并用大约 1Mio 数据填充它。但是现在,选择查询最多需要 16 秒(按日期选择)。
如何向现有表添加索引以提高搜索性能?我从这里不太明白: https ://crate.io/docs/reference/sql/reference/alter_table.html#partition-clause
像这样的东西会很好:
alter table table_name reset column_name index using PLAIN
非常感谢!
我创建了一个表并用大约 1Mio 数据填充它。但是现在,选择查询最多需要 16 秒(按日期选择)。
如何向现有表添加索引以提高搜索性能?我从这里不太明白: https ://crate.io/docs/reference/sql/reference/alter_table.html#partition-clause
像这样的东西会很好:
alter table table_name reset column_name index using PLAIN
非常感谢!
'PLAIN' 是默认索引,不需要显式打开:https ://crate.io/docs/reference/sql/ddl/indices_full_search.html#plain-index-default - 如果您需要不同的索引需要重新索引您的数据。通过“SELECT INTO”或使用“COPY TO”转储数据并使用“COPY TO”加载回