Walk me through a time you diagnosed an N+1 query or connection-pool exhaustion issue in a Python web service.
Concrete ORM fluency (`select_related`/`prefetch_related` or SQLAlchemy eager loading), pool sizing awareness, and query-count verification.
Latency/DB CPU spike -> Query logging & EXPLAIN findings -> Eager loading & pool fix -> Query count and p95 latency reduction.