Skip to content

Lightweight introduction to sparse primary indexes. #3638

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 10, 2025
Merged

Lightweight introduction to sparse primary indexes. #3638

merged 4 commits into from
Apr 10, 2025

Conversation

tom-clickhouse
Copy link
Contributor

Introduces ClickHouse’s sparse primary index and how it helps efficiently skip unnecessary data during query execution. Explains how the index is built and used, with examples and tools for observing its effect. Links to a deep dive for advanced use cases and best practices.

@tom-clickhouse tom-clickhouse requested a review from a team as a code owner April 10, 2025 08:38
Copy link

vercel bot commented Apr 10, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
clickhouse-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 10, 2025 9:11am
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
clickhouse-docs-jp ⬜️ Ignored (Inspect) Apr 10, 2025 9:11am
clickhouse-docs-ru ⬜️ Ignored (Inspect) Visit Preview Apr 10, 2025 9:11am
clickhouse-docs-zh ⬜️ Ignored (Inspect) Visit Preview Apr 10, 2025 9:11am

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Tom Schreiber seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copy link
Member

@Blargian Blargian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tom-clickhouse I think Dale prefers to have the responses without the line numbering. I'm fine to keep them as output_format_pretty_row_numbers is enabled by default. Defer to @gingerwizard.

Code blocks don't need runnable=true, runnable works as well.

@tom-clickhouse
Copy link
Contributor Author

Line numbers in results help a lot with following explanations as I can refer to them like in Note how row 13 of the EXPLAIN output above shows that ...

@Blargian
Copy link
Member

Line numbers in results help a lot with following explanations as I can refer to them like in Note how row 13 of the EXPLAIN output above shows that ...

Agree, in this case it is needed

@Blargian Blargian merged commit 514e62f into main Apr 10, 2025
12 checks passed
@gingerwizard gingerwizard deleted the PK_light branch April 13, 2025 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants