Skip to content

Project layout

The repository keeps entry-point files at the root and groups implementation files by purpose.

sql-performance-lab/
├── compose.yaml              # Docker Compose entry point
├── Makefile                  # Optional command shortcuts
├── mkdocs.yml                # Documentation configuration
├── .env.example              # Local environment template
├── postgres/
│   └── postgresql.conf       # PostgreSQL runtime configuration
├── .devin/skills/            # On-demand project agent skills
├── docs/                     # MkDocs source pages
├── scripts/                  # Setup, seed, wait, and verification scripts
└── sql/
    ├── bootstrap/            # Schema, seed, and dataset report
    ├── indexes/              # Intentionally imperfect baseline indexes
    ├── labs/                 # Lab SQL exercises
    └── final/                # Final incident simulation

AGENTS.md contains only always-on repository constraints. Detailed interactive tutoring behavior lives in .devin/skills/sql-performance-mentor/SKILL.md and is loaded on demand, reducing context overhead.

Why Compose is at the root

Docker Compose automatically discovers compose.yaml in the current directory. Keeping it at the root means all of these work without a -f argument:

docker compose up -d postgres
docker compose ps
docker compose down

Moving it into docker/ would require docker compose -f docker/compose.yaml ... everywhere and would change how relative volume paths are resolved.

What is in postgres/

postgres/postgresql.conf is a PostgreSQL configuration file mounted read-only into the official PostgreSQL image. It is not a Dockerfile, because this project does not build a custom PostgreSQL image.

Why the Makefile is at the root

Makefile is optional. It provides short, repeatable commands such as make setup, but Docker Compose and the scripts do the actual work. Keeping it at the root allows GNU Make to discover it automatically.

Choose either workflow: