Skip to Content
Skip to content
236 results
SQL
Find and Fix a Deadlock Level: Advanced

Reproduce a deadlock between two money transfers, read the message, and fix it by locking rows in the same order.

SQL
Process a Job Queue With SKIP LOCKED Level: Advanced

Let two workers take different jobs from one table with FOR UPDATE SKIP LOCKED, and see what happens to a job when a worker fails.

SQL
Add a NOT NULL Column to a Big Table Without Downtime Level: Advanced

Add a NOT NULL column to a big table with a constant default, or with a nullable column, a batch backfill, NOT VALID and VALIDATE.

SQL
Walk a Tree With a Recursive CTE Level: Advanced

Walk down an employee tree, walk up to the top, count each manager's team and guard the query against a loop with CYCLE.

SQL
Back Up With pg_dump and Prove the Restore Works Level: Advanced

Take a pg_dump backup in Docker, restore it into a scratch database, compare the tables and see what a damaged backup looks like.

Docker
Start Two Services With docker compose up Level: Beginner

Write a compose.yaml for a web server and a checker, start both, read the result and remove them. After this, you can run a two-service project from one file.

Docker
Copy a File Out With docker cp Level: Beginner

Copy a file or folder between a container and your computer, even from a stopped container. After this, you can rescue a file before you delete the container.

Docker
Fix Docker Desktop Stuck on Starting Level: Beginner

Check virtualization, WSL, the docker-desktop distribution, the engine context and memory in the order that finds the cause fastest.

Docker
Verify Docker Desktop After Installation on Windows Level: Beginner

Check CLI resolution, the intended local context and engine connection, then run and verify cleanup of a disposable test container.

Docker
Mount a Host Folder Without Losing Data Level: Beginner

Share a folder from your computer with a container, make it read-only and see how a mount can hide files that were already there.

Docker
Open a Shell Inside a Running Container Level: Beginner

Open a shell with docker exec, run one command without it and read the two errors you will meet first.

Docker
Read Logs From a Container That Just Exited Level: Beginner

Find a stopped container, read its exit code and log, and tell a crash from a kill. After this, you can see why a container stopped in under a minute.