~/talk

SQLAlchemy 2.0 - The One-Point-Four-Ening 2021

Talkat Python Web Conf 2021 · 2021-03-22..03-26· [python]
slides:none on file

SQLAlchemy 1.4 implements the planned SQLAlchemy 2.0 architecture: it is Python 3 only with a new Core/ORM alignment and 1.4 serving as the transitional caterpillar. Engine usage now requires explicit connect/begin (no more engine.execute or session.query); the Result object is unified across Core and ORM and SQL compilation is largely cached. Sessions use SessionMaker.begin as a context manager, registry/declarative mapping and the unit‑of‑work/identity map persist objects, and eager loaders (selectinload, joinedload, contains_eager) solve N+1. New runtime warnings detect cartesian products; async support uses asyncpg and aiomysql.

AI-written summary · about

  1. 0:00Introduction to SQLAlchemy 2.0
  2. 1:05SQLAlchemy 1.4 as transition to 2.0
  3. 1:47Core concepts and SQL automation
  4. 3:13Philosophy behind SQLAlchemy
  5. 4:56SQLAlchemy onion diagram explained
  6. 10:46Python 3 only and async I/O support
  7. 11:28Major changes in SQLAlchemy 2.0
  8. 14:11Engine and connection basics
  9. 20:14Running Python scripts with SQLAlchemy
  10. 21:18Creating and connecting to an engine
  11. 24:05Executing textual SQL queries
  12. 27:54Connection pooling and closing
  13. 30:22Transaction management in 2.0
  14. 36:39Database metadata and reflection
  15. 39:10Creating table metadata
  16. 42:56Generating DDL from metadata
  17. 46:24Reflecting existing databases
  18. 48:30Alembic migrations overview
  19. 49:13SQL expression language introduction
  20. 51:59Building SQL statements in Python
  21. 54:04Column comparisons and binary expressions
  22. 57:14Bound parameters and security
  23. 1:01:42Insert and update statements
  24. 1:04:11Joins in SQL Core
  25. 1:11:13One-to-many relationships
  26. 1:14:22Cartesian product warnings
  27. 1:15:51Explicit joins with join and join_from
  28. 1:18:38Table aliases and derived tables
  29. 1:23:11Subqueries and CTEs
  30. 1:30:58Correlated subqueries
  31. 1:34:54When to use text queries
  32. 1:35:56Object relational mapping basics
  33. 1:44:40ORM mapping styles
  34. 1:49:15Session and session maker
  35. 1:51:00Adding objects to session
  36. 1:54:12Auto-flushing and querying
  37. 1:58:28Committing transactions
  38. 2:05:14Rolling back changes
  39. 2:07:17Querying with ORM entities
  40. 2:16:43Basic ORM queries
  41. 2:17:46Advanced ORM with relationships
  42. 2:20:37Creating database schema for ORM
  43. 2:23:25Unit of work and cascading
  44. 2:29:43Joins with ORM entities
  45. 2:32:53ORM aliases and relationships
  46. 2:35:21Subqueries and CTEs in ORM
  47. 2:36:27Eager loading strategies
  48. 2:37:07N+1 problem and eager loading
  49. 2:41:19Join load vs selectin load
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.