Solving the n+1 query problem in SQLAlchemy | Hacker News Reader