← All Learning Paths

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.

technicalintermediate6 nodes12.42h total

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.

  1. Read "How to Design Soft Deletes" for the "Decide what deletion means" argument, then name the decision in data modeling work it would change.

    Completion criteria: Attach a one-page summary that quotes "Decide what deletion means", lists two trade-offs, and links the commit where you applied it.

    Next step: How to Query JSONB in PostgreSQL

    ⏱ 1h

  2. 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

    Completion criteria: Record a short walkthrough of "How to Query JSONB in PostgreSQL" with timestamps at "Choose JSONB and keep a schema" and "Learn the operators", plus the commit that applies it.

    Next step: Index JSONB Attributes for Containment Queries

    ⏱ 1h

  3. 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

    Completion criteria: Run the steps through "Make attribute lookups on a JSONB column fast without indexing every possible key in every", paste the command output, and mark the line that matches "The index is created and is typically several times smaller than the default jsonb_ops"; then rerun with one parameter changed.

    Next step: Expand-Contract Database Migration

    ⏱ 0.5h

  4. 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

    Completion criteria: Record the state "Change a database schema without breaking in-flight requests or forcing a coordinated" at the verification step, then paste the output of "Old application versions continue to work unchanged." that proves it.

    Next step: Order Migrations and Detect Cycles

    ⏱ 1.5h

  5. 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

    Completion criteria: Submit a solution for "Data Modeling Specialist" that passes both samples ({migrations:[{id:003_add_index,dependsOn:[002_add_table]},{i to {order:[001_init,002_add_table,003_add_index],cyclic:false,c) and attach the failing case you fixed.

    Next step: Capstone: Data Modeling Specialist

    ⏱ 0.42h

  6. Build "Build a Database Migration Runner" through its phases, keeping "Ordered plan" independently testable.

    Prerequisites: Expand-Contract Database Migration, Order Migrations and Detect Cycles

    Completion criteria: Run the project's test command for "Build a Database Migration Runner", paste the passing output, and attach the acceptance note for "Ordered plan" with the test name.

    Next step: Run the capstone's tests, publish the repository, and demo it to a reviewer.

    ⏱ 4h