Skip to content

Commit 772dc73

Browse files
authored
Merge pull request #205549 from TimShererWithAquent/us1971568b
Update graphics.
2 parents 1e66d26 + 3d08986 commit 772dc73

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

articles/postgresql/hyperscale/concepts-colocation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Colocation means storing related information together on the same nodes. Queries
1919

2020
In Azure Database for PostgreSQL – Hyperscale (Citus), a row is stored in a shard if the hash of the value in the distribution column falls within the shard's hash range. Shards with the same hash range are always placed on the same node. Rows with equal distribution column values are always on the same node across tables.
2121

22-
:::image type="content" source="../media/concepts-hyperscale-colocation/colocation-shards.png" alt-text="Shards":::
22+
:::image type="content" source="../media/concepts-hyperscale-colocation/colocation-shards.png" alt-text="Diagram shows shards with the same hash range placed on the same node for events shards and page shards." border="false":::
2323

2424
## A practical example of colocation
2525

@@ -101,7 +101,7 @@ application.
101101

102102
Running the queries must consult data in shards scattered across nodes.
103103

104-
:::image type="content" source="../media/concepts-hyperscale-colocation/colocation-inefficient-queries.png" alt-text="Inefficient queries":::
104+
:::image type="content" source="../media/concepts-hyperscale-colocation/colocation-inefficient-queries.png" alt-text="Diagram shows an inefficient approach that uses multiple queries against the event and page tables in two nodes." border="false":::
105105

106106
In this case, the data distribution creates substantial drawbacks:
107107

@@ -146,7 +146,7 @@ query can be answered by using the set of colocated shards that contain the data
146146
for that particular tenant. A single PostgreSQL node can answer the query in
147147
a single step.
148148

149-
:::image type="content" source="../media/concepts-hyperscale-colocation/colocation-better-query.png" alt-text="Better query":::
149+
:::image type="content" source="../media/concepts-hyperscale-colocation/colocation-better-query.png" alt-text="Diagram shows a single query to one node, which is a more efficient approach." border="false":::
150150

151151
In some cases, queries and table schemas must be changed to include the tenant ID in unique constraints and join conditions. This change is usually straightforward.
152152

-5.75 KB
Loading
-2 KB
Loading
9.5 KB
Loading

0 commit comments

Comments
 (0)