跳到主要内容
学院
中级 代码街区

数据库设计

清晰地为数据建模,选对数据库类型。

Good apps start with a good data model. In this track you turn features into entities and relationships, choose keys that never need to change, and clean a messy spreadsheet into tables with normalization. Then you design for real use: data types that can't lose a cent or an hour, constraints that guard your rules, indexes shaped by the queries you actually run, counters that make popular pages fast, and the right kind of database for each job.

Every example is PostgreSQL you can run, and the track ends with you designing a seasonal game leaderboard on your own.

课时
14
时长
2 小时
级别
中级

本课程的内容目前为英文。

  • 铜牌 可挑战
  • 银牌 可挑战
  • 金牌 未解锁

准备好证明自己了吗?

三场考试正等着你:铜牌、银牌和金牌。

前往考试

学完后你将能够

  • Turn a feature description into entities, relationships and an ER sketch
  • Choose primary keys and build one-to-many and many-to-many tables
  • Normalize messy data to third normal form
  • Pick data types and constraints that keep data correct
  • Design indexes and counters for the queries you really run
  • Choose between relational, document, key-value, graph, search and time-series stores

学习旅程

  1. 1
    第 1 单元

    Model the world

    Find entities and relationships, choose keys, and normalize messy data into clean tables.

    0 / 4
  2. 2
    第 2 单元

    Design for real use

    Types, constraints, indexes, counters, and the right database for each job.

    0 / 6
  3. 3
    第 3 单元

    Next steps

    Change live schemas safely, split huge tables, keep history and model data for analytics.

    0 / 4

快速导航