FerretDB 2 Moves To DocumentDB
Written by Alex Denham   
Tuesday, 11 February 2025

FerretDB has been updated to version 2.0, which the company says offers major improvements in performance, compatibility, support, and flexibility. In practical terms, the main change is a move to use Microsoft's DocumentDB PostgreSQL extension, which is behind a twenty times performance improvement

FerretDB is an open-source alternative to MongoDB. It is a proxy that converts MongoDB 5.0+ wire protocol queries to SQL and uses PostgreSQL, now with a DocumentDB extension as a database engine.

FerretDB was launched three years ago as MangoDB. It's a stateless proxy that lets you use MongoDB drivers seamlessly with PostgreSQL and the new DocumentDB extension as the database backend. The developers say its advantage is that you can use all tools, drivers, UIs, and the same query language and stay open-source.

The standout change is the move to use DocumentDB. Peter Farkas, Co-Founder and CEO of FerretDB, said that the change
significantly increases database performance:

"Among other improvements, DocumentDB introduces the BSON data type and operations to PostgreSQL, giving us the tools to store and query data much more efficiently than before."

This version is also more feature compatible with MongoDB. It also adds support for vector search and replication. The vector search support comes in the form of two types of vector index -
Hierarchical Navigable Small World (HNSW) and Inverted File (IVF). HNSW is a graph-based index that uses a hierarchical structure to store vectors, suitable for high-speed vector search in memory, while IVF is an inverted file index that partitions the vector space into clusters and performs approximate nearest neighbor search within selected clusters.

The new replication support is based on the Write-Ahead Logging (WAL) streaming method. WAL is a logging method that writes every change in the database to a log (WAL) before applying it to the primary PostgreSQL data.

The release candidate of FerretDB 2 is available now. 

More Information

FerretDB

Related Articles

FerretDB The MongoDB Drop-In Replacement Is Production Ready

MongoDB 8 Reduces Memory Use And Increases Speed

Turn Your SQLite Database Into A Server

Move Over To PostgreSQL With Babelfish and MangoDB

CouchDB 3.4 Strengthens Password Hashes

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.

Banner


DryRun Announces Natural Language Code Policies
23/01/2025

DryRun Security is introducing Natural Language Code Policies  to provide AppSec teams with an automated way to build and maintain security policy rules. 



Stack Overflow Jobs Expands As Traffic Dwindles
15/01/2025

Stack Overflow Jobs, a site run in partnership with Indeed, is now available outside the US, including the United Kingdom, Germany, France and the Netherlands. This should provide a revenue strea [ ... ]


More News

espbook

 

Comments




or email your comment to: comments@i-programmer.info