随笔分类 - clickhouse
跳数索引
摘要:1、minmax 下面是为url建立最大最小值的跳数索引 ALTER TABLE hits_UserID_URL ADD INDEX url_skipping_index URL TYPE minmax GRANULARITY 4; ALTER TABLE hits_UserID_URL MATER
阅读全文
clickhouse的稀疏索引
摘要:clickhouse官网 稀疏索引 在使用primary key的时候指定的key必须是在order by多个字段中排在前面 CREATE TABLE hits_UserID_URL( `UserID` UInt32, `URL` String, `EventTime` DateTime)ENGIN
阅读全文
为clickhouse创建只读
摘要:1、检查default用户是否开启赋予权限的能力。也就是 .....(自己安装路径)/clickhouse-server/users.xml下看看 <!-- User can create other users and grant rights to them. --> <access_manag
阅读全文