ToroDB
discontinuedby 8Kdata · since 2014 · also known as ToroDB Stampede, ToroDB Server
MongoDB-compatible layer that stored documents as relational tables in PostgreSQL; abandoned since 2018.
discontinued. No commits since Stampede 1.0.0 (Oct 2018) and torodb.com no longer belongs to the project. Use FerretDB or DocumentDB on PostgreSQL.
Overview
ToroDB, from the Spanish company 8Kdata, mapped JSON documents onto normalised relational tables in PostgreSQL. ToroDB Server spoke the MongoDB wire protocol so applications could keep their drivers while data landed in an RDBMS, and the later ToroDB Stampede tailed a MongoDB replica set's oplog and replicated it into PostgreSQL tables so analysts could run SQL over it. The idea of 'MongoDB API, Postgres storage' was ahead of its time, but the project went quiet after Stampede 1.0.0 in October 2018 and its domain no longer belongs to the project. FerretDB and DocumentDB now fill this role.
Strengths & trade-offs
Strengths
- +Documents became real relational tables, so plain SQL and BI tools could query them
- +Stampede replicated live MongoDB data into PostgreSQL without changing the app
- +Durability and transactions came from PostgreSQL rather than an immature engine
Trade-offs
- −Abandoned since 2018; tied to old MongoDB and PostgreSQL versions
- −Incomplete MongoDB command coverage in ToroDB Server
- −Shredding deeply nested documents produced many tables and joins
Great for
- +Historical reference for mapping JSON documents to relational schemas
- +Legacy MongoDB-to-SQL analytics pipelines
Think twice for
- −New deployments
- −Current MongoDB versions
Capabilities
Native or official first-party support · 6 of 25 tracked
Scale & consistency
- Comfortable data size
- Medium · ≤ 10 TB
- Horizontal scaling
- None
- Multi-region
- No
- Transactions
- Full ACID
- Consistency
- Strong
- Schema
- Flexible
- Architecture
- Client server
- Query languages
- MongoDB Query Language, SQL
Bounded by the single PostgreSQL backend it wrote to.
Deployment
Ecosystem
Alternatives to ToroDB
Apache-licensed MongoDB-protocol proxy that stores data in PostgreSQL with the DocumentDB extension.
torodb vs ferretdb →MIT-licensed, MongoDB-compatible document engine built as PostgreSQL extensions, run by the Linux Foundation.
torodb vs documentdb-postgres →The extensible, standards-first open-source relational database.
torodb vs postgresql →The default document database: flexible BSON documents, rich queries and built-in sharding.
torodb vs mongodb →The relational database built into IBM i (AS/400), integrated with the OS and object security.
torodb vs ibm-db2-for-i →Chinese distributed document database with native ACID storage, SQL instances and S3 API, used in many banks.
torodb vs sequoiadb →ToroDB FAQ
What is ToroDB?
ToroDB is a document database by 8Kdata, first released in 2014. ToroDB, from the Spanish company 8Kdata, mapped JSON documents onto normalised relational tables in PostgreSQL. ToroDB Server spoke the MongoDB wire protocol so applications could keep their drivers while data landed in an RDBMS, and the later ToroDB Stampede tailed a MongoDB replica set's oplog and replicated it into PostgreSQL tables so analysts could run SQL over it. The idea of 'MongoDB API, Postgres storage' was ahead of its time, but the project went quiet after Stampede 1.0.0 in October 2018 and its domain no longer belongs to the project. FerretDB and DocumentDB now fill this role.
Is ToroDB open source?
Yes. ToroDB is open source. License: GNU AGPL v3.
Does ToroDB support ACID transactions?
Yes. ToroDB supports full ACID transactions, with strong consistency.
Does ToroDB scale horizontally?
ToroDB does not scale horizontally; it runs on a single node, so you scale it up rather than out. It is comfortable at medium scale (≤ 10 TB).
How can I run ToroDB?
You can self-host it.
What is ToroDB best for?
ToroDB is a strong fit for historical reference for mapping JSON documents to relational schemas and legacy MongoDB-to-SQL analytics pipelines. Think twice for new deployments.
What are the best alternatives to ToroDB?
Common alternatives to ToroDB include FerretDB; DocumentDB (open-source, PostgreSQL-based); PostgreSQL; MongoDB; and Db2 for i. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.
Is ToroDB still maintained?
ToroDB is discontinued. No commits since Stampede 1.0.0 (Oct 2018) and torodb.com no longer belongs to the project. Use FerretDB or DocumentDB on PostgreSQL.
How popular is ToroDB?
ToroDB ranks #558 of 844 databases on the WhichDB Score (1.4/100), and #50 among document databases. The score combines public adoption signals such as package downloads, GitHub activity, job posts and developer discussion.


