Postgres migrationClickHouse Workshops

05 Stream the analytical copy — instructor notes

Teaching steps, verification checks, and recovery guidance for module 05.

Your computer
macOS terminal: Run workshop commands in Terminal using zsh or bash.

Allow 30 to 45 minutes of active work. Use the learner module for commands.

Verify the source and destination

Start from the ClickHouse service and select ClickHouse Postgres as the source. Use Managed Postgres as the source, rather than the original RDS instance. Confirm both services use the workshop region.

Discuss engine and ordering keys

Explain how ReplacingMergeTree stores CDC versions and deduplicates rows with the same ordering key. Require a unique row identity and immutable key columns. For order_items, discuss the pruning benefit and immutability requirement of (placed_at, order_item_id).

Background merges do not guarantee query-time deduplication. The lab panels can include duplicate versions before merges complete. For exact results on mutable rows, review deduplication and deletion handling before choosing a query strategy.

Verify CDC

Wait for the initial load, then update a known source row and find the new version in ClickHouse. Inspect the Managed Postgres slot and confirm that lag is stable. Use an interactive query as a functional check; it is not comparable to the concurrent-load baseline.

End checkpoint

Confirm all four tables are populated, the test update arrives, and participants can explain their engine and ordering-key choices. Grafana still queries Managed Postgres. Module 06 changes routing and measures the combined result.

이 페이지의 내용

KO