Skip to main content

26 docs tagged with "database"

View all tags

Backend

A domain that collects notes on server-side development, including API design, authentication, and databases (SQL/NoSQL). A Practical Introduction to Laravel × DDD × Clean Architecture (20 chapters), Introduction to PayloadCMS (7 chapters), and Introduction to Database Design (19 chapters + glossary + design templates) are available.

Chapter 18: Database Normalization Exercises

A collection of exercises to deepen the understanding of normalization covered in Chapter 11. Practice decomposing an unnormalized table up through third normal form, repeatedly, using common business cases (children's information, multiple categories, derived values, employee information).

Design Template Collection — Introduction to Database Design

A collection of design templates and checklists that junior engineers can bring into real projects. It lists out naming conventions, normalization, key design, and review criteria, so you have something to check against right away on a new project.

Domain Model and Table Design — Mapping and Indexes

Covers why to design domain-model-first, mapping patterns under the premise that the domain model and tables are not 1:1 (embedding / one aggregate across multiple tables / technical splitting), how the repository absorbs the gap, and index design including the leftmost-prefix rule for composite indexes and its trade-offs.

Glossary — Introduction to Database Design

A quick-reference dictionary of the technical terms that appear throughout this guide. When you're reading a chapter and wondering "what was the definition of that term again?", check here for a quick answer.

Transaction Management — Where to Place the Consistency Boundary

Explains transaction management using Laravel's DB::transaction(). Covers the ACID properties, when to place transactions inside the Repository (single aggregate) versus the UseCase (multiple aggregates), nested transactions (savepoints), and the implementation and use cases of optimistic and pessimistic locking.