Skip to content

Commit d1493c6

Browse files
committed
Merge branch 'main' of https://github.com/ClickHouse/clickhouse-docs into autogen_arithmetic_functions
2 parents c1a0c63 + 07b67a3 commit d1493c6

File tree

5,267 files changed

+173820
-139779
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

5,267 files changed

+173820
-139779
lines changed

contribute/style-guide.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,3 +376,20 @@ logic might fail.
376376
1. Keep version strings in consistent formats for predictable results.
377377

378378
2. Use simplified version parameters in URLs (e.g., `v08` instead of `v0.8.x`).
379+
380+
## Related blog component
381+
382+
Pages can show a "Related blogs" component which displays recent blogs which are
383+
related to the keywords or title of the document.
384+
385+
If you would like to show it on a page, add the following property to the
386+
front matter:
387+
388+
```yaml
389+
---
390+
show_related_blogs: true
391+
---
392+
```
393+
394+
This will show it on the page, assuming there is a matching blog. If there is no
395+
match then it remains hidden.

docs/about-us/distinctive-features.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ sidebar_label: 'Why is ClickHouse unique?'
44
sidebar_position: 50
55
description: 'Understand what makes ClickHouse stand apart from other database management systems'
66
title: 'Distinctive Features of ClickHouse'
7+
keywords: ['compression', 'secondary-indexes','column-oriented']
78
---
89

910
# Distinctive Features of ClickHouse

docs/best-practices/avoid_mutations.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
---
22
slug: /best-practices/avoid-mutations
33
sidebar_position: 10
4-
sidebar_label: 'Avoid Mutations'
5-
title: 'Avoid Mutations'
4+
sidebar_label: 'Avoid mutations'
5+
title: 'Avoid mutations'
66
description: 'Page describing why to avoid mutations in ClickHouse'
7+
keywords: ['mutations']
78
---
89

910
import Content from '@site/docs/best-practices/_snippets/_avoid_mutations.md';

docs/best-practices/avoid_optimize_final.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
slug: /best-practices/avoid-optimize-final
33
sidebar_position: 10
44
sidebar_label: 'Avoid Optimize Final'
5-
title: 'Avoid Optimize Final'
6-
description: 'Page describing why to avoid Optimize Final in ClickHouse'
5+
title: 'Avoid OPTIMIZE FINAL'
6+
description: 'Page describing why you should avoid the OPTIMIZE FINAL clause in ClickHouse'
7+
keywords: ['avoid OPTIMIZE FINAL', 'background merges']
78
---
89

910
import Content from '@site/docs/best-practices/_snippets/_avoid_optimize_final.md';

docs/best-practices/choosing_a_primary_key.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ sidebar_position: 10
44
sidebar_label: 'Choosing a Primary Key'
55
title: 'Choosing a Primary Key'
66
description: 'Page describing how to choose a primary key in ClickHouse'
7+
keywords: ['primary key']
8+
show_related_blogs: true
79
---
810

911
import Image from '@theme/IdealImage';

docs/best-practices/json_type.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ sidebar_position: 10
44
sidebar_label: 'Using JSON'
55
title: 'Use JSON where appropriate'
66
description: 'Page describing when to use JSON'
7+
keywords: ['JSON']
8+
show_related_blogs: true
79
---
810

911
ClickHouse now offers a native JSON column type designed for semi-structured and dynamic data. It's important to clarify that **this is a column type, not a data format**—you can insert JSON into ClickHouse as a string or via supported formats like [JSONEachRow](/docs/interfaces/formats/JSONEachRow), but that does not imply using the JSON column type. Users should only use the JSON type when the structure of their data is dynamic, not when they simply happen to store JSON.

docs/best-practices/minimize_optimize_joins.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
slug: /best-practices/minimize-optimize-joins
33
sidebar_position: 10
44
sidebar_label: 'Minimize and Optimize JOINs'
5-
title: 'Minimize and Optimize JOINs'
5+
title: 'Minimize and optimize JOINs'
66
description: 'Page describing best practices for JOINs'
7+
keywords: ['JOIN', 'Parallel Hash JOIN']
8+
show_related_blogs: true
79
---
810

911
import Image from '@theme/IdealImage';
1012
import joins from '@site/static/images/bestpractices/joins-speed-memory.png';
1113

12-
13-
1414
ClickHouse supports a wide variety of JOIN types and algorithms, and JOIN performance has improved significantly in recent releases. However, JOINs are inherently more expensive than querying from a single, denormalized table. Denormalization shifts computational work from query time to insert or pre-processing time, which often results in significantly lower latency at runtime. For real-time or latency-sensitive analytical queries, **denormalization is strongly recommended**.
1515

1616
In general, denormalize when:

docs/best-practices/partitioning_keys.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ sidebar_position: 10
44
sidebar_label: 'Choosing a Partitioning Key'
55
title: 'Choosing a Partitioning Key'
66
description: 'Page describing how to choose a partitioning key'
7+
keywords: ['partitioning key']
78
---
89

910
import Image from '@theme/IdealImage';

docs/best-practices/select_data_type.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
---
22
slug: /best-practices/select-data-types
33
sidebar_position: 10
4-
sidebar_label: 'Select Data Types'
5-
title: 'Select Data Types'
4+
sidebar_label: 'Selecting data Types'
5+
title: 'Selecting data Types'
66
description: 'Page describing how to choose data types in ClickHouse'
7+
keywords: ['data types']
78
---
89

910
import NullableColumns from '@site/docs/best-practices/_snippets/_avoid_nullable_columns.md';

docs/best-practices/selecting_an_insert_strategy.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
---
22
slug: /best-practices/selecting-an-insert-strategy
33
sidebar_position: 10
4-
sidebar_label: 'Selecting an Insert Strategy'
5-
title: 'Selecting an Insert Strategy'
4+
sidebar_label: 'Selecting an insert strategy'
5+
title: 'Selecting an insert strategy'
66
description: 'Page describing how to choose an insert strategy in ClickHouse'
7+
keywords: ['INSERT', 'asynchronous inserts', 'compression', 'batch inserts']
8+
show_related_blogs: true
79
---
810

911
import Image from '@theme/IdealImage';

0 commit comments

Comments
 (0)