STAGE 04 / 08
Database & caching
Model reliable data, write useful queries and understand where caching helps.
SQL · PostgreSQL · Indexes · Transactions · Prisma · Redis
START LEARNING
Choose a lesson.
Each lesson includes an explanation, an example and a short exercise.
- 01Model data with tables and constraintsA relational database stores related facts in tables with rules that protect their consistency.
- 02SQL: read and change dataSQL describes the data you want and the changes you want to make.
- 03Indexes and query plansAn index can help a database find matching rows without inspecting every row.
- 04Transactions and consistencyA transaction groups database changes into an all-or-nothing unit.
- 05Prisma as a database clientAn ORM can provide typed application APIs for common database operations.
- 06Redis and cache expirationA cache keeps a copy of data so repeated reads can be faster or cheaper.