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


相关推荐
三水不滴4 小时前
Redis 过期删除与内存淘汰机制
数据库·经验分享·redis·笔记·后端·缓存
wdfk_prog5 小时前
[Linux]学习笔记系列 -- [drivers][i2c]i2c-dev
linux·笔记·学习
土拨鼠烧电路6 小时前
笔记03:业务语言速成:“人、货、场”模型与IT系统全景图
笔记
2301_812731416 小时前
CSS3笔记
前端·笔记·css3
越努力越幸运5086 小时前
CSS3学习之网格布局grid
前端·学习·css3
chillxiaohan7 小时前
GO学习记录——多文件调用
开发语言·学习·golang
小乔的编程内容分享站7 小时前
记录使用VSCode调试含scanf()的C语言程序出现的两个问题
c语言·开发语言·笔记·vscode
中屹指纹浏览器8 小时前
2026年指纹浏览器技术迭代与风控对抗演进
经验分享·笔记
1104.北光c°8 小时前
【从零开始学Redis | 第一篇】Redis常用数据结构与基础
java·开发语言·spring boot·redis·笔记·spring·nosql
Funny_AI_LAB9 小时前
AI Agent最新重磅综述:迈向高效智能体,记忆、工具学习和规划综述
人工智能·学习·算法·语言模型·agi