avoid n+1
Find a file
Waylon S. Walker 48c6176c47 init
2025-07-03 09:48:05 -05:00
.gitignore init 2025-07-03 09:48:05 -05:00
.python-version init 2025-07-03 09:48:05 -05:00
api.py init 2025-07-03 09:48:05 -05:00
database.py init 2025-07-03 09:48:05 -05:00
dependencies.py init 2025-07-03 09:48:05 -05:00
hello.py init 2025-07-03 09:48:05 -05:00
justfile init 2025-07-03 09:48:05 -05:00
models.py init 2025-07-03 09:48:05 -05:00
pyproject.toml init 2025-07-03 09:48:05 -05:00
README.md init 2025-07-03 09:48:05 -05:00
service.py init 2025-07-03 09:48:05 -05:00
uv.lock init 2025-07-03 09:48:05 -05:00

Learning nested models

This repo is for learning.

  • avoid n + 1 performance slowdown
  • avoid over selecting from the database blowing up memory

Services architecture

  • api.py
  • models.py
  • routes.py
  • service.py