ClickHouse® is a real-time analytics DBMS
Go to file
iammagicc 08549c0a02
增加最后一个索引条目存储了上图中颗粒1082的主键列的最大值与图片不符的描述
为什么图中显示的数据与结论不符合?因为图中的数据是禁用了自适应索引粒度后得到的,默认情况下索引粒度是自适应的。
https://clickhouse.com/docs/en/optimize/sparse-primary-indexes
We mentioned in the beginning of this guide in the "DDL Statement Details", that we disabled adaptive index granularity (in order to simplify the discussions in this guide, as well as make the diagrams and results reproducible).
For tables with adaptive index granularity (index granularity is adaptive by default) the size of some granules can be less than 8192 rows depending on the row data sizes.
我们在本指南开头的“DDL 语句详细信息”中提到,我们禁用了自适应索引粒度(为了简化本指南中的讨论,并使图表和结果可重现)。
对于具有自适应索引粒度的表(默认情况下索引粒度是自适应的),某些粒度的大小可以小于 8192 行,具体取决于行数据大小。


https://clickhouse.com/docs/en/whats-new/changelog/2019#experimental-features-1
ClickHouse Release 19.6.3.18, 2019-06-13
Experimental Features:实验性特性   
Add setting index_granularity_bytes (adaptive index granularity) for MergeTree* tables family.
为合并树家族的表系列添加设置index_granularity_bytes(自适应索引粒度)。

ClickHouse Release 19.10.1.5, 2019-07-12
Performance Improvement:优化改进
Add the possibility to write the final mark at the end of MergeTree columns. It allows to avoid useless reads for keys that are out of table data range. It is enabled only if adaptive index granularity is in use.
添加在合并树列末尾写入最终标记的可能性。它允许避免对超出表数据范围的键进行无用的读取。仅当使用自适应索引粒度时,才会启用它。
2023-03-21 15:53:45 +08:00
.github Add a fuse for backport branches w/o a created PR 2023-03-20 13:45:23 +01:00
base Merge branch 'master' into fuzzer-of-data-formats 2023-03-20 03:26:51 +03:00
benchmark Remove old file 2022-07-12 20:28:02 +02:00
cmake Merge pull request #47673 from ClickHouse/rs/restore-mac-build 2023-03-20 04:27:22 +03:00
contrib Merge branch 'master' into fuzzer-of-data-formats 2023-03-20 03:26:51 +03:00
docker Merge branch 'master' into fix_993 2023-03-17 21:28:23 +03:00
docs 增加最后一个索引条目存储了上图中颗粒1082的主键列的最大值与图片不符的描述 2023-03-21 15:53:45 +08:00
packages Fix startup on older systemd versions 2023-03-17 17:56:56 +01:00
programs Merge branch 'master' into rs/qc-cachebase 2023-03-20 17:08:47 +01:00
rust Merge branch 'master' into build/rust-rebuild-fix 2023-02-13 14:40:15 +03:00
src Merge branch 'master' into rs/qc-cachebase 2023-03-20 20:44:34 +01:00
tests Merge pull request #47789 from ClickHouse/proper-review-states 2023-03-20 19:05:24 +01:00
utils Merge pull request #47703 from ClickHouse/add-style-check-for-dereference-after-cast 2023-03-18 22:07:47 +03:00
.clang-format add BeforeLambdaBody to .clang-format 2022-02-11 16:51:45 +01:00
.clang-tidy Preparation for libcxx(abi), llvm, clang-tidy 16 2023-03-19 17:25:41 +00:00
.editorconfig Changed tabs to spaces in editor configs and in style guide [#CLICKHOUSE-3]. 2017-04-01 11:35:09 +03:00
.exrc Fix vim settings (wrong group for autocmd) 2022-12-03 21:23:24 +01:00
.git-blame-ignore-revs Add files with revision to ignore for git blame 2022-09-13 23:05:56 +02:00
.gitattributes Ignore core.autocrlf for tests references 2022-10-05 09:13:27 +02:00
.gitignore Fix flakiness of expect tests for clickhouse-client by avoiding history overlap 2023-02-20 09:51:08 +01:00
.gitmodules Fix include 2023-02-14 16:45:46 +00:00
.pylintrc Cover deprecated bad-* pylint options with black 2022-06-08 14:18:28 +02:00
.snyk Add exclusions from the Snyk scan 2022-10-31 17:47:02 +01:00
.yamllint Drop truthy.check-keys from yamllint (does not supported on CI) 2021-02-21 06:15:36 +03:00
AUTHORS Update AUTHORS 2021-09-22 11:38:03 +03:00
CHANGELOG.md Edit the changelog 2023-02-24 20:45:35 +01:00
CMakeLists.txt Restore native macos build 2023-03-19 19:59:22 +01:00
CODE_OF_CONDUCT.md Add minimal code of conduct #9676 2020-03-16 12:44:28 +03:00
CONTRIBUTING.md Mention ClickHouse CLA in CONTRIBUTING.md (#32697) 2021-12-14 03:47:19 +03:00
format_sources allow several <graphite> targets (#603) 2017-03-21 23:08:09 +04:00
LICENSE Update LICENSE 2023-01-02 00:35:32 +01:00
PreLoad.cmake fix spaces 2023-02-02 21:00:49 +00:00
README.md Updated date in Austin Meetup 2023-03-18 08:53:13 +00:00
SECURITY.md Update version_date.tsv and changelogs after v23.2.1.2537-stable 2023-02-23 19:46:46 +00:00

ClickHouse — open source distributed column-oriented DBMS

ClickHouse® is an open-source column-oriented database management system that allows generating analytical data reports in real-time.

How To Install (Linux, macOS, FreeBSD)

curl https://clickhouse.com/ | sh
  • Official website has a quick high-level overview of ClickHouse on the main page.
  • ClickHouse Cloud ClickHouse as a service, built by the creators and maintainers.
  • Tutorial shows how to set up and query a small ClickHouse cluster.
  • Documentation provides more in-depth information.
  • YouTube channel has a lot of content about ClickHouse in video format.
  • Slack and Telegram allow chatting with ClickHouse users in real-time.
  • Blog contains various ClickHouse-related articles, as well as announcements and reports about events.
  • Code Browser (Woboq) with syntax highlight and navigation.
  • Code Browser (github.dev) with syntax highlight, powered by github.dev.
  • Contacts can help to get your questions answered if there are any.

Upcoming Events

  • ClickHouse Meetup in Austin - Mar 30 - The first ClickHouse Meetup in Austin is happening soon! Interested in speaking, let us know!
  • v23.3 Release Webinar - Mar 30 - 23.3 is rapidly approaching. Original creator, co-founder, and CTO of ClickHouse Alexey Milovidov will walk us through the highlights of the release.

Recent Recordings

  • FOSDEM 2023: In the "Fast and Streaming Data" room Alexey gave a talk entitled "Building Analytical Apps With ClickHouse" that looks at the landscape of data tools, an interesting data set, and how you can interact with data quickly. Check out the recording on YouTube.
  • Recording available: v23.2 Release Webinar NTILE Window Function support, Partition Key for GROUP By, io_uring, Apache Iceberg support, Dynamic Disks, integrations updates! Watch it now!
  • All release webinar recordings: YouTube playlist