FerretDB vs MongoDB
FerretDB and MongoDB are both tools we tested end to end on a Melonslab server. This page puts 3 shared measurements side by side, with the versions we ran and a link to each full guide. Both tests used Debian 13.
The two tools
FerretDB
FerretDB 2.7 on Debian 13, the open-source database that speaks MongoDB's protocol and stores its data in PostgreSQL, in rootless Podman under a user of its own, with logins, TLS, access only over WireGuard and nightly backups you have restored.
Tested with FerretDB 2.7.0, Debian 13
Updated Oct 14, 2026 · tested on the alloy plan
Read the FerretDB guideMongoDB
MongoDB Community Server 9.0 on Debian 13 in rootless Podman under a user of its own, as a one-member replica set with a login per app, TLS for every connection, access only over WireGuard, a cache sized for 8 GB and nightly backups you have restored.
Tested with MongoDB Community Server 9.0.2, Debian 13
Updated Oct 14, 2026 · tested on the alloy plan
Read the MongoDB guide
What stood out
- FerretDB came out ahead on memory at rest: 570 MB against 650 MB.
- MongoDB came out ahead on memory under load: 710 MB against 800 MB.
Notes from the tests
- Memory at rest:FerretDB — the whole server after a reboot; FerretDB itself about 10 MB. MongoDB — whole server after a reboot with test data; MongoDB used 190 MB.
- Memory under load:FerretDB — the whole server after queries over 100,000 documents. MongoDB — whole server after queries over 100,000 documents.
- Rows tested:FerretDB — 100,000 test documents. MongoDB — 100,000 documents loaded.
Measurements
| Measurements | FerretDB | MongoDB |
|---|---|---|
| Memory at rest the whole server after a reboot; FerretDB itself about 10 MB · whole server after a reboot with test data; MongoDB used 190 MB | 570 MB | 650 MB |
| Memory under load the whole server after queries over 100,000 documents · whole server after queries over 100,000 documents | 800 MB | 710 MB |
| Rows tested 100,000 test documents · 100,000 documents loaded | 100000 documents | 100000 documents |
Both tools were tested on a Melonslab server. The commands, caveats and full measurements are in each guide.