An Introduction to the ZODB
summary
ZODB provides a Python object store that is fully ACID-compliant, stores pickled objects in a data.fs file, and installs via pip install zodb3==3.10.1. Persistence hooks into CPython memory management so reads are cheap, writes require explicit transaction.commit or transaction.abort and support subtransactions for batching large updates. BTree-backed maps avoid loading whole collections, ZEO and RelStorage enable multi‑client and SQL backends, and Python 3 support is not yet available.
AI-written summary · about
chapters (18)
- 0:00Intro
- 0:17ZODB is • A persistence mechanism for Python objects
- 0:48ACID Compliance
- 3:00Why use it? Applications where
- 4:11Why not use it? Applications where data is highly relational
- 6:39Installation
- 7:31Example Class
- 7:56New Database
- 9:06Saving Data Data is added to the DB by making a reference to it from any object already in the
- 11:21Subtransactions
- 12:47Querying Queries are straight Python code; no special language necessary.
- 15:32Mutable Obje
- 17:49Undo
- 24:40BTree Hints BTrees rely on key sorting to work efficiently. Therefore
- 28:17repoze.catalog
- 31:39Does it scale?
- 34:20Data migrations
- 36:26References
related talks
24mBuild-a-Database with Python
09mIntegrating SQLObject and Archetypes with SQLOSStorage
35mPersisting Relations Across Time and Space
29mInside a Database A Code Level Walkthrough of an RDBMS I Built in Python
19mA zone-aware cache system for distributed databases
01h 01mSpiceDB: Flexible Permissions Database for the Internet Era
25mA practical approach to handling tabular data in logic
01h 03mPersisting C++ Classes in Relational Databases with ODB
