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


相关推荐
卡布叻_星星23 分钟前
笔记之光盘刻录
笔记
寄思~23 分钟前
Excel 数据匹配工具 -笔记
笔记·python·学习·excel
朔北之忘 Clancy41 分钟前
2020 年 6 月青少年软编等考 C 语言二级真题解析
c语言·开发语言·c++·学习·青少年编程·题解·尺取法
知识分享小能手42 分钟前
Ubuntu入门学习教程,从入门到精通,Ubuntu 22.04 中安装 Docker 容器 —— 知识点详解(26)
学习·ubuntu·docker
数据轨迹0011 小时前
CVPR Efficient ViM:视觉 Mamba 的轻量化
经验分享·笔记·facebook·oneapi·twitter
开开心心_Every1 小时前
安卓做菜APP:家常菜谱详细步骤无广简洁
服务器·前端·python·学习·edge·django·powerpoint
wdfk_prog1 小时前
WIN11如何可以安装ISO
linux·笔记·学习
haokan_Jia1 小时前
【高项十大知识域-重点笔记】
笔记
Darkershadow1 小时前
蓝牙学习之Provision(2)
学习·蓝牙·ble·mesh
kitsch0x971 小时前
论文学习_IDFUZZ: Intelligent Directed Grey-box Fuzzing
学习