Clickhouse官方文档学习笔记

文章目录

  • [What is ClickHouse?](#What is ClickHouse?)
    • [Data Replication and Integrity](#Data Replication and Integrity)
    • [Approximate calculation](#Approximate calculation)
    • [Superior query performance](#Superior query performance)
  • [Quick Start](#Quick Start)

What is ClickHouse?

ClickHouse® is a high-performance, column-oriented SQL database management system (DBMS) for online analytical processing (OLAP)

关键词: high-performance, column-based, OLAP

Data Replication and Integrity

ClickHouse uses an asynchronous multi-master replication scheme to ensure that data is stored redundantly on multiple nodes. After being written to any available replica, all the remaining replicas retrieve their copy in the background. The system maintains identical data on different replicas. Recovery after most failures is performed automatically, or semi-automatically in complex cases.

依然是sharding+replica的思路, 跟绝大多数cluster一样

Approximate calculation

ClickHouse provides ways to trade accuracy for performance. For example, some of its aggregate functions calculate the distinct value count, the median, and quantiles approximately. Also, queries can be run on a sample of the data to compute an approximate result quickly. Finally, aggregations can be run with a limited number of keys instead of for all keys. Depending on how skewed the distribution of the keys is, this can provide a reasonably accurate result that uses far fewer resources than an exact calculation.

近似/采样计算确实是个新鲜玩意

Superior query performance

ClickHouse is well known for having extremely fast query performance. To learn why ClickHouse is so fast, see the Why is ClickHouse fast? guide.

最大的卖点来了, 就是快。

Quick Start

略过

唯一值得注意的可能就是尽量使用呢bulk insert。数据可以先写到本地postgres或者s3然后一次性导入。

Done on 2025-06-22


相关推荐
xiaoxiaoxiaolll几秒前
Nat Commun:中国团队演示光纤阵列中的里德堡阻塞,为高保真度两比特门奠定基础
学习·量子计算
zhangxuyu111814 分钟前
Vue2 学习记录--语法部分
学习
下午见。28 分钟前
深入理解C语言共用体/联合体(union):大小计算与大小端判断实战
c语言·笔记·学习
HalvmånEver44 分钟前
Linux的第二章 : 基础的指令(二)
linux·运维·服务器·开发语言·学习
im_AMBER7 小时前
React 17
前端·javascript·笔记·学习·react.js·前端框架
报错小能手7 小时前
C++笔记——STL map
c++·笔记
谷歌开发者8 小时前
Web 开发指向标 | Chrome 开发者工具学习资源 (六)
前端·chrome·学习
lkbhua莱克瓦249 小时前
Java基础——集合进阶3
java·开发语言·笔记
QT 小鲜肉9 小时前
【QT/C++】Qt定时器QTimer类的实现方法详解(超详细)
开发语言·数据库·c++·笔记·qt·学习
MeowKnight9589 小时前
【Qt】Qt实践记录3——UDP通信
笔记·qt