Skip to content

Commit

Permalink
[docs] Fix typo in website/docs/table-design/data-distribution/bucket…
Browse files Browse the repository at this point in the history
…ing.md (#261)
  • Loading branch information
RunningDB authored Dec 25, 2024
1 parent 76f4390 commit 04eb514
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/docs/table-design/data-distribution/bucketing.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ and distributes the data to multiple hosts and services.

When creating a Fluss table, you can specify the number of buckets by setting `'bucket.num' = '<num>'` property for the table, see more details in [DDL](/docs/engine-flink/ddl.md).
Currently, Fluss supports 3 bucketing strategies: **Hash Bucketing**, **Sticky Bucketing** and **Round-Robin Bucketing**.
Primary-Key Tables only allows to use **Hash Bucketing**. Log Tables use **Sticky Bucketing** by default but can use other two bucketing strategies.
Primary-Key Tables only allow to use **Hash Bucketing**. Log Tables use **Sticky Bucketing** by default but can use other two bucketing strategies.

## Hash Bucketing
**Hash Bucketing** is common in OLAP scenarios.
Expand All @@ -21,7 +21,7 @@ Primary-Key Tables use primary key (excluding partition key) as the bucket key b

## Sticky Bucketing

**Sticky Bucketing** enables larger batches and reduce latency when writing records into Log Tables. After sending a batch, the sticky bucket changes. Over time, the records are spread out evenly among all the buckets.
**Sticky Bucketing** enables larger batches and reduces latency when writing records into Log Tables. After sending a batch, the sticky bucket changes. Over time, the records are spread out evenly among all the buckets.
Sticky Bucketing is the default bucketing strategy for Log Tables. This is quite important because Log Tables uses Apache Arrow as the underling data format which is efficient for large batches.

**Usage**: setting `'client.writer.bucket.no-key-assigner'='sticky'` property for the table to enable this strategy. PrimaryKey Tables do not support this strategy.
Expand Down

0 comments on commit 04eb514

Please sign in to comment.