HIGH-PERFORMANCE SQLALCHEMY
summary
Claims a lightweight library that turns SQLAlchemy usage into declarative, import-time query descriptions so the app loads exactly the columns needed, collapses many lazy loads and n+1 patterns into a small set of SQL statements, and avoids creating heavy ORM objects (avoids the CPU hit when models have 50–100 columns and object construction pushes responses past ~100 ms). Implements constructors that return dictlike rows, a define decorator for reusable computed fields, and map/get operators for efficient related-data fetching.
AI-written summary · about
chapters (11)
- 0:00Introduction to SQLAlchemy performance
- 1:24Optimizing database queries effectively
- 2:51Simplifying code for performance
- 8:31Lazy loading pitfalls and N+1 queries
- 11:41Introducing SQLConstruct library
- 25:48Motivation behind SQLConstruct
- 29:02Core vs SQLAlchemy levels
- 32:17Data transformation at database level
- 35:12Performance impact of ORM objects
- 37:20Handling complex queries and aggregations
- 40:14Q&A session
