VR

Labs

Hands-on exercises with complete runnable code. No external dependencies beyond Python 3.8 standard library.

Available Labs

LabModuleWhat You'll LearnTime
lab-01-n-plus-one-profilingN+1 QueriesObserve N+1, fix with JOIN and IN batch, measure improvement
lab-02-connection-pool-tuningConnection PoolingPool size impact on p50/p99/throughput

Running Labs

Each lab has:

  • README.md — complete instructions with all code
  • setup.md — prerequisites and setup notes
  • solution.md — expected results and analysis

Copy the code from README.md, save as a .py file, run with python3.

What Makes a Good Lab Session

  1. Run the code unmodified first — see the baseline
  2. Change one parameter at a time — observe the effect
  3. Explain the results to yourself — connect to the theory in the parent module
  4. Try the extension exercises — they reveal edge cases

📚 Related Topics