ZODB
activeby Zope Foundation · since 1998 · also known as Zope Object Database
Transparent persistence for Python objects with ACID transactions and history.
Overview
ZODB is a native object database for Python. You subclass Persistent, attach objects to a root mapping, and they are saved transparently at transaction commit, with no ORM or schema involved. It provides ACID transactions with optimistic concurrency and conflict resolution, scalable BTrees for large collections, history and undo in FileStorage, and multi-client access through ZEO or RelStorage. It has backed Zope and Plone for over two decades, and the Zope Foundation still ships regular releases (6.4 in October 2026). It fits Python apps with deep object graphs better than tabular data or non-Python consumers.
Strengths & trade-offs
Strengths
- +Persist arbitrary Python object graphs with no mapping layer
- +ACID transactions with optimistic concurrency and conflict resolution hooks
- +Object history and undo
- +Decades of production use in Zope and Plone
Trade-offs
- −Python-only; data is pickles, unreadable from other languages
- −No query language; you build indexes yourself (BTrees, catalogs)
- −Class renames and refactors need migration care
- −FileStorage needs periodic packing
Great for
- +Plone and Zope CMS deployments
- +Python apps with complex, deeply nested object models
- +Prototyping persistence without designing a schema
Think twice for
- −Multi-language data access
- −Analytics and reporting
- −High-concurrency write-heavy web apps
Capabilities
Native or official first-party support · 5 of 25 tracked
Scale & consistency
- Comfortable data size
- Small · ≤ 100 GB
- Horizontal scaling
- None
- Multi-region
- No
- Transactions
- Full ACID
- Consistency
- Strong
- Schema
- Schemaless
- Architecture
- Embedded, Client server
- Query languages
- Python (object traversal)
Single storage server (ZEO) or a relational backend via RelStorage; clients cache objects locally.
Deployment
Ecosystem
Alternatives to ZODB
The in-process SQL engine that ships in every phone, browser and OS: one file, zero servers.
zodb vs sqlite →The extensible, standards-first open-source relational database.
zodb vs postgresql →The default document database: flexible BSON documents, rich queries and built-in sharding.
zodb vs mongodb →Commercial object database for Java that implements JPA and JDO natively, with no ORM layer.
zodb vs objectdb →Smalltalk object database where application code runs inside the transactional object repository.
zodb vs gemstone-s →Dependency-free PHP library that stores schemaless documents as plain JSON files on disk.
zodb vs sleekdb →ZODB FAQ
What is ZODB?
ZODB is an object database by Zope Foundation, first released in 1998. ZODB is a native object database for Python. You subclass Persistent, attach objects to a root mapping, and they are saved transparently at transaction commit, with no ORM or schema involved. It provides ACID transactions with optimistic concurrency and conflict resolution, scalable BTrees for large collections, history and undo in FileStorage, and multi-client access through ZEO or RelStorage. It has backed Zope and Plone for over two decades, and the Zope Foundation still ships regular releases (6.4 in October 2026). It fits Python apps with deep object graphs better than tabular data or non-Python consumers.
Is ZODB open source?
Yes. ZODB is open source. License: Zope Public License 2.1.
Does ZODB support ACID transactions?
Yes. ZODB supports full ACID transactions, with strong consistency.
Does ZODB scale horizontally?
ZODB does not scale horizontally; it runs on a single node, so you scale it up rather than out. It is comfortable at small scale (≤ 100 GB).
How can I run ZODB?
You can self-host it and embed it in your application.
What is ZODB best for?
ZODB is a strong fit for plone and Zope CMS deployments; python apps with complex, deeply nested object models; and prototyping persistence without designing a schema. Think twice for multi-language data access.
What are the best alternatives to ZODB?
Common alternatives to ZODB include SQLite, PostgreSQL, MongoDB, ObjectDB and GemStone/S. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.
How popular is ZODB?
ZODB ranks #134 of 844 databases on the WhichDB Score (22.7/100), and #2 among object databases. The score combines public adoption signals such as package downloads, GitHub activity, job posts and developer discussion.


