Repository navigation
Docs: document patch parts for lightweight deletes - #121997
Conversation
Explain `lightweight_delete_mode`, patch-part prerequisites, and visibility versus physical deletion. https://clickhouse.com/blog/updates-in-clickhouse-2-sql-style-updates#lightweight-deletes-are-now-even-lighter https://clickhouse.com/docs/reference/settings/session-settings/lightweight#lightweight_delete_mode
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
|
Workflow [PR], commit [ef5e46c] Summary: ✅ AI ReviewSummaryThis PR updates the lightweight delete guide to describe Findings
Final Verdict
|
|
|
||
| If you need to guarantee that your data is deleted from storage in a predictable time, consider using the table setting [`min_age_to_force_merge_seconds`](/reference/settings/merge-tree-settings/min-age#min_age_to_force_merge_seconds). Or you can use the [ALTER TABLE ... DELETE](/reference/statements/alter/delete) command. Note that deleting data using `ALTER TABLE ... DELETE` may consume significant resources as it recreates all affected parts. | ||
|
|
||
| ## Choose the delete mode {#lightweight-delete-mode} |
There was a problem hiding this comment.
This updates only the guide snippet, but the published statement reference at /reference/statements/delete is autogenerated from src/Parsers/ParserDeleteQuery.cpp and still says that lightweight DELETE is always mutation-based. After this merges, the guide and the reference page will disagree about lightweight_delete_mode, patch-part prerequisites, and the internal translation of DELETE. Please update the structured statement docs in registerStatement("DELETE", ...) in the same PR so the reference page stays aligned.
Avoid linking to a section that has not yet been generated into the reference page. https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=121997&sha=b7d57de78029d29055732d60454100a776f92fc0&name_0=PR&name_1=Docs%20check%20%28Mintlify%29 #121997
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Compile time of recompiled translation units7 translation units recompiled, 7 s compile time in total, 7 of them have a recent master baseline. |
The lightweight delete guide omitted patch parts and
lightweight_delete_mode. Add a short explanation and link to the existing setting reference and lightweight update requirements. Qualify mutation-specific behavior and clarify replica visibility and physical cleanup.The change is limited to the guide snippet. No C++ source or generated reference changes. Checked the linked pages and anchors and ran
git diff --check.Reference: https://clickhouse.com/blog/updates-in-clickhouse-2-sql-style-updates#lightweight-deletes-are-now-even-lighter
Reference: https://clickhouse.com/docs/reference/settings/session-settings/lightweight#lightweight_delete_mode
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Document patch parts and link to
lightweight_delete_modein the lightweight delete guide.Workflow [PR]
Sync PR [sync-upstream/pr/121997]
Version info
26.10.1.680-master(included in26.10and later)