Skip to content

Commit 4cb9236

Browse files
authored
Update minimize_optimize_joins.md
1 parent 005faba commit 4cb9236

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/best-practices/minimize_optimize_joins.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Follow these best practices to improve JOIN performance:
4141
When using dictionaries for JOINs in ClickHouse, it's important to understand that dictionaries, by design, do not allow duplicate keys. During data loading, any duplicate keys are silently deduplicated—only the last loaded value for a given key is retained. This behavior makes dictionaries ideal for one-to-one or many-to-one relationships where only the latest or authoritative value is needed. However, using a dictionary for a one-to-many or many-to-many relationship (e.g. joining roles to actors where an actor can have multiple roles) will result in silent data loss, as all but one of the matching rows will be discarded. As a result, dictionaries are not suitable for scenarios requiring full relational fidelity across multiple matches.
4242
:::
4343

44-
## Choosing the right JOIN Algorithm {#choosing-the-right-join-algorithm}
44+
## Choosing the correct JOIN Algorithm {#choosing-the-right-join-algorithm}
4545

4646
ClickHouse supports several JOIN algorithms that trade off between speed and memory:
4747

0 commit comments

Comments
 (0)