# 索引 ## Sparse indexes 读取精确 range 内的数据,减少访问的数据量(跨网络)。 ## Aggregating indexes 类似物化视图,预计算,查询时自动匹配。 ## Join indexes 避免全部扫描,使用索引查找。 join index 很小,可以存储在内存中。 join 前支持谓词下推,减少 fact table 的大小。 # 查询优化 跟踪哪些数据在 storage 中还是在 cache 中,根据这些来构建查询计划。 - **Vectorized processing** - **Index-based optimization** 使用索引构建最快的查询,基于 data ranges 当前的范围 - **Data and compute collocation** - **Automatic data reblancing** ingestion 期间,reblance/combine segments/inexes - **Reuse of compute sub-trees and operators** 可以重用以及编译好的查询计划中的部分 # Efficiency 计算集群可随时启停。 - 添加索引提升性能,节省计算成本