~/talk

The SQLAlchemy Session - In Depth

Talkat PyCon Canada 2012 · 2012-11-09..11-11· [python, databases]
slides:none on file

Argues SQLAlchemy’s Session replaces fragile active‑record patterns by enforcing explicit transactions, keeping a single identity map per operation, and using a unit of work to lazily flush and sort INSERT/UPDATE/DELETE in the correct order to satisfy FK and NOT NULL constraints. Demonstrates an HTML5 animation built from SQLAlchemy events showing add/flush/commit/expire cycles across connections; the demo runs and visualizes how objects go transient→pending→persistent→expired.

AI-written summary · about

  1. 0:00Introduction
  2. 2:00ACID Model
  3. 6:46Active Record
  4. 12:54Immediate
  5. 14:46Consistency
  6. 15:48ActiveRecord
  7. 17:36Most Dense Example
  8. 20:03Rain
  9. 20:18Session Strategy
  10. 20:36Session Rows
  11. 21:12Session Objects
  12. 21:46Pending Changes
  13. 21:59Row Proxy
  14. 22:39Expired Objects
  15. 23:13New Objects
  16. 23:24Cursed
  17. 23:41Unit of Work
  18. 24:32Where this doesnt come from
  19. 24:43Where this comes from
  20. 25:36Identity Map
  21. 26:40The Unit of Work
  22. 27:04Flush
  23. 27:29Rollback
  24. 28:51Explicit Transactions
  25. 29:31Live Session Demo
  26. 29:52Address Object
  27. 31:07Demo
  28. 37:04Maintaining sanity
  29. 39:35Isolation levels
~/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.