"Schema"
- 1.2 Schema Design 與資料建模
整理 table、index、key、partition、denormalization 與命名規則
- Schema(命名空間義)
看到 permission denied for schema、或想確認這個字指的是表結構還是命名空間時
- Pub/Sub Ordering Key、Dead-Letter Topic 與 Schema Enforcement:三道交付治理
Pub/Sub overview 之下的 implementation-layer deep article — 把 ordering key 的有序代價、dead-letter topic 的 poison message 隔離、schema enforcement 的契約守門三件事寫到可操作:subscription 是 first-class、ackDeadline 與 extension、push vs pull vs streaming pull + flow control、Avro / Protobuf schema、Pub/Sub Lite 與標準版差異、BigQuery / Cloud Storage subscription,含 5 個 production 故障演練(ordering 限流 / ack deadline 太短重投 / DLT max delivery attempts / push 500 retry storm / schema 擋下不相容 publish)
- 1.15 資料契約文件(Data Contract Document)
schema 表達不了的語意承諾——欄位單位、跨欄不變式、錯誤語意——需要專屬 artifact;整理邏輯契約與實作綁定的分區、寫不寫契約文件的判斷(協作交接與 migration 治理),以及 dormant 表豁免
- 1.16 Schema 設計決定的查詢代價:可空性、排序鍵唯一性、表寬、一對多的切法、比較規則與外鍵執法
建表時每一個決定有哪些選法、選了之後查詢要多做什麼、代價在什麼條件下才浮現、改回來要付的遷移成本,以及設計當下就能問的問題;輸出為 SQLite 與 PostgreSQL 的實測
- SQLite Schema Migration and Versioning
SQLite schema migration、user_version、table rebuild、ALTER TABLE 限制、app release compatibility 與 migration evidence