Week 38
Week 38 DS
- Learn: Schemas, roles, privileges.
- Learn: SERIAL vs IDENTITY, sequences.
- Learn: Native types (arrays, enums, JSON/JSONB).
- Hands-on: create a schema
parking
, with a scans
table that uses JSONB for flexible metadata.
Tasks
Week 39
- Learn: Index types (B-Tree, Hash, GIN, BRIN).
- Hands-on: create a GIN index on your JSONB metadata and query with
@>
operator.
- Learn: Common Table Expressions (CTEs) & Window Functions.
- Hands-on: Write a query to find the “most frequently scanned car” using
ROW_NUMBER()
or RANK()
.
Tasks
Week 40
- Learn: Transactions & ACID properties.
- Hands-on: run multi-step queries with
BEGIN/COMMIT/ROLLBACK
.
- Practice: simulate a failed transaction and confirm rollback works.
- Learn: Backup & restore with
pg_dump
/ pg_restore
.
Tasks
Week 41
- Learn: Views & materialized views.
- Hands-on: create a view for “scans in last 24h.”
- Experiment: store flexible data with JSONB vs relational table, compare queries.
Tasks