I am skeptical that SQL with Mongo backing it would be at all performant except in the most trivial cases. On the flip side, Postgres's jsonb indexing makes the inverse very doable.
We're seeing a convergence of document DBs adding relational features, and relational DBs adding document features. At this point I find the best of both worlds to simply be PG with JSONB.
This alone will give you a huge number of the features that Mongo provides, but also the full power of Postgres for everything else.
victor106•4h ago
this makes so much sense.
I also wonder if there are some specific capabilities of MongoDB that this pattern does not support?
etse•3h ago
Maybe not capabilities, but I'm wondering if Postgres has gotten any easier to scale horizontally. The administrative overhead of scaling and maintenance with MongoDB seemed lower to Postgres to me.
Would love to hear from others with more Postgres than I.
zareith•4h ago
Curious if there is something similar that works with sqlite.
Honestly, putting Mongo and SQL together always confuses me a bit. I'm way more comfy with Postgres and jsonb. Anyone else feel like scaling Postgres is still kinda a pain?
sparky_•2h ago
I can appreciate the technical aspect of a translation layer, but I struggle to understand the use case for a tool like this. If your data is inherently relational, then you should be using a relational store anyway. And if it isn't, trying to hammer it on-demand into something that looks relational is going to eat you with performance implications. Unless I'm missing something.
ttfkam•2d ago
https://github.com/microsoft/documentdb
I am skeptical that SQL with Mongo backing it would be at all performant except in the most trivial cases. On the flip side, Postgres's jsonb indexing makes the inverse very doable.
Zambyte•5h ago
VWWHFSfQ•4h ago
victor106•4h ago
I also wonder if there are some specific capabilities of MongoDB that this pattern does not support?
etse•3h ago
Would love to hear from others with more Postgres than I.
zareith•4h ago
maxbond•4h ago
zareith•1h ago
aleksi•2h ago
zareith•1h ago
From https://docs.ferretdb.io/migration/migrating-from-v1
> Unlike v1.x that provides options for PostgreSQL and SQLite as backend, FerretDB v2.x requires a PostgreSQL with DocumentDB extension as the backend
aleksi•2h ago