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


相关推荐
墨迹的陌离11 分钟前
【Linux】重生之从零开始学习运维之主从MGR高可用
学习
再看扣你眼15 分钟前
部署 Zabbix 企业级分布式监控笔记
笔记·分布式·zabbix
2301_8016730115 分钟前
8.6笔记
笔记
智者知已应修善业17 分钟前
【51单片机6位数码管密码锁】2022-10-15
c语言·经验分享·笔记·单片机·嵌入式硬件·51单片机
小一亿23 分钟前
【0基础PS】PS工具详解--直接选择工具
学习·平面·adobe·信息可视化·传媒·photoshop
AI必将改变世界30 分钟前
【软考系统架构设计师备考笔记5】 - 专业英语
java·开发语言·人工智能·笔记·系统架构·英语
骑驴看星星a1 小时前
层次分析法代码笔记
开发语言·笔记·python·numpy
日 近 长 安 远1 小时前
[学习笔记-AI基础篇]04_chatGPT原理和发展
笔记·学习·chatgpt
m0_626535203 小时前
贪心算法学习 跳跃游戏
学习·游戏·贪心算法