Menu

1 / 2

GBase 8a Data Distribution Strategies: Hash, Random, and Replicated Tables

DEV Community·Michael·6 months ago
#2GzplJT9
#gbase#database#performance#software#tables
Reading 0:00
15s threshold

GBase 8a MPP Cluster offers three primary data distribution strategies: Hash distribution , random distribution , and replicated tables . Each determines how data is physically placed across nodes, directly impacting join and aggregation performance in a gbase database .

Strategy Overview

Strategy Syntax Distribution Method Key Feature

Hash DISTRIBUTED BY (column) Rows with the same column value are mapped to the same node via hash. Data locality — related rows are physically together, ideal for joins and grouping.

Random Default (no keyword) or DISTRIBUTED RANDOMLY Data is scattered evenly across all data nodes. Perfect load balancing — equal data volume and compute pressure on every node.

Replicated REPLICATED A full copy of the table exists on every data node. Global redundancy — no network transfer needed for joins.

When to Use Each Strategy

1.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.