Data Modeling Specialist
Model data that survives a decade: normalization boundaries, key choices, hierarchies, star schemas, slowly changing dimensions, and migrations that never break readers.
Path overview
数据模型是系统里最难撤销的决定。本路径从规范化与主键之争讲起,覆盖层级数据、多态关联与分析型星型模式,再处理软删除与 JSONB 这两个现代争议点,收尾于可回滚的扩张收缩迁移工作流。
The data model is the hardest decision to undo. This path covers normalization boundaries, key choices, hierarchies, polymorphic associations, star schemas, soft deletes, JSONB trade-offs, and expand-contract migrations.
Read "How to Design Soft Deletes" for the "Decide what deletion means" argument, then name the decision in data modeling work it would change.
Next step: How to Query JSONB in PostgreSQL
⏱ 1h
Compare "Choose JSONB and keep a schema" with "Learn the operators" in "How to Query JSONB in PostgreSQL" and state which trade-off you would accept in data modeling code.
Prerequisites: How to Design Soft Deletes
Next step: Index JSONB Attributes for Containment Queries
⏱ 1h
Execute "Index JSONB Attributes for Containment Queries" end to end, then repeat the last step with one parameter changed and compare "Make attribute lookups on a JSONB column fast without indexing every possible key in every".
Prerequisites: How to Query JSONB in PostgreSQL
Next step: Expand-Contract Database Migration
⏱ 0.5h
Follow "Expand-Contract Database Migration" and record "Change a database schema without breaking in-flight requests or forcing a coordinated" at the step where it should appear, using "Old application versions continue to work unchanged." as the check.
Prerequisites: Index JSONB Attributes for Containment Queries
Next step: Order Migrations and Detect Cycles
⏱ 1.5h
Turn JSON object: { migrations: [{ id, dependsOn?: string[] }] } into {order:[001_init,002_add_table,003_add_index],cyclic:false,cycle:[]} by completing "Order Migrations and Detect Cycles" with a reproducible script and a failing-case note.
Prerequisites: Expand-Contract Database Migration
Next step: Capstone: Data Modeling Specialist
⏱ 0.42h
Build "Build a Database Migration Runner" through its phases, keeping "Ordered plan" independently testable.
Prerequisites: Expand-Contract Database Migration, Order Migrations and Detect Cycles
Next step: Run the capstone's tests, publish the repository, and demo it to a reviewer.
⏱ 4h