ToroDB: A MongoDB-compatible, document-oriented database on top of PostgreSQL
8kdata.com
8kdata.com
How does this compare to putting a thin Node.JS veneer over PostGRE's JSON type? The server could covert the cursor from PG into the binary format that MongoDB clients expect. It would have been less work.
Postgresql with jsonb lets you get the best of both world : schemaless when you want it, relationnal when you need it, and acid all the time.
I found it strange that they decided to map a document over relationnal schema. I would only map the "id" property of the document to a pkey, and then dump all the rest in a jsonb column, per document type.
(My one open question, and something this page doesn't touch on, is how easy is it to get ToroDB up and running? Mongo makes that part easy as well!)
Storage has become so cheap that Toro's savings are negligible considering you now must maintain their service layer on top of your normal Postgres configuration. I don't see how a bit of storage savings warrants any of those tradeoffs unless they can show a significant performance improvement as well. And if silence tells me anything, it is that this is probably slower than Postgres' JSON type.
How do they implement data loss on top of Postgres? <rimshot>
Hopefully it will give people who like the simplicity of interfacing with Mongo a safer, more reliable option.