时尚

为什么PB级分析型数据库ClickHouse这么快?

时间:2010-12-5 17:23:32  作者:域名   来源:IT科技类资讯  查看:  评论:0
内容摘要:复制#首先,创建本地表 CREATETABLEtable_localONCLUSTERcluster_test ( OrderKeyU

为什么PB级分析型数据库ClickHouse这么快?
复制# 首先,析型创建本地表  CREATETABLE table_local ON CLUSTER cluster_test  (      OrderKey             UInt32,数据        # 列定义      OrderDate            Date,      Quantity             UInt8,      TotalPrice           UInt32,      ……  )  ENGINE = MergeTree()                    # 表引擎  PARTITION BY toYYYYMM(OrderDate)        # 分区方式  ORDERBY (OrderDate, OrderKey);         # 排序方式  SETTINGS index_granularity = 8192;       # 数据块大小  # 然后,免费信息发布网创建分布式表  CREATETABLE table_distribute ON CLUSTER cluster_test AS table_local  ENGINE = Distributed(cluster_test,库Ce快 default, table_local, rand())   # 关系映射引擎  1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.企商汇
copyright © 2025 powered by 编程之道  滇ICP备2023006006号-34sitemap