frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

QueryLeaf: SQL for Mongo

https://github.com/beekeeper-studio/queryleaf
23•tilt•1y ago

Comments

ttfkam•1y ago
Would much rather have "Mongo" for SQL like this:

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•1y ago
https://www.ferretdb.com/
VWWHFSfQ•1y ago
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.

    create table document (
      id uuid primary key default gen_random_uuid(),
      doc 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•1y ago
this makes so much sense.

I also wonder if there are some specific capabilities of MongoDB that this pattern does not support?

etse•1y 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.

ttfkam•1y ago
Excluding conversations about MongoDB compatibility, PG16 added bidirectional replication for multiple writers and there are Postgres-compatible options out there for a distributed database including Citus, EDB Postgres Distributed, Yugabyte, CockroachDB, Aurora Limitless, etc.

The choices require some nuance to figure out a best fit, but then again so does any MongoDB installation (despite the marketing hype to the contrary as there are no free lunches).

You might be surprised how far most folks can typically scale with just read replica(s) on a reasonably sized writer. Add in bidirectional replication for multiple writers, and you can go even further. Beyond that, even vanilla Postgres can do it, but you'll need to do some combinations of partitioning and foreign tables.

zareith•1y ago
Curious if there is something similar that works with sqlite.
maxbond•1y ago
As of 3.38 (or 3.45 if you meant a binary JSON structure specifically) https://sqlite.org/json1.html
zareith•1y ago
We can use json type, but the dx around directly using that is not comparable to mongodb. Which is why I was looking for a similar abstraction.
aleksi•1y ago
There is FerretDB v1, which provides MongoDB protocol for SQLite. See https://github.com/FerretDB/FerretDB/tree/main-v1
zareith•1y ago
They seemed to have moved away from that.

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•1y ago
FerretDB v2 is built on top of this extension. See https://github.com/FerretDB/FerretDB
gavinray•1y ago
It's somewhat of a secret, but AWS's JDBC driver for DocumentDB supports Mongo as well

Let's you interact with Mongo as if it were a regular SQL JDBC database

https://github.com/aws/amazon-documentdb-jdbc-driver

bdcravens•1y ago
That driver is read-only
gitroom•1y ago
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_•1y 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.

Muse Spark 1.3

https://developer.meta.com/ai/models/muse-spark/
540•bvaldivielso•12h ago•365 comments

Gemini 3.8 Flash and 3.8 Flash Cyber

https://blog.google/innovation-and-ai/models-and-research/gemini-models/3-8-flash-and-3-8-flash-c...
981•bratao•16h ago•557 comments

The Computer Museum of America reclamation project

https://computer-museum.org/wp/
31•rbanffy•2d ago•11 comments

Holden's Lightning Flight

https://en.wikipedia.org/wiki/Holden%27s_Lightning_flight
143•ColinWright•2d ago•26 comments

Pre-Release of Polars 2.0

https://pola.rs/posts/announcing-polars-2/
6•komape•57m ago•0 comments

Google avoids a breakup of its ad tech business

https://www.nytimes.com/2026/09/02/technology/google-ad-tech-remedies.html
358•donohoe•17h ago•260 comments

Three sites made 215,128 “best software” pages for AI. Perplexity cites them

https://trellner.com/reports/manufactured-sources-behind-ai-recommendations/
393•jakobgreenfeld•17h ago•189 comments

Creating Backup Storage Sucks

https://smarmelling.com/posts/creating-backup-storage-sucks.html
41•smarmelling•2d ago•31 comments

Can I opt out of my input or output data being used for training?

https://help.mistral.ai/en/articles/455207-can-i-opt-out-of-my-input-or-output-data-being-used-fo...
428•teekert•19h ago•187 comments

Reverse Engineering Unknown File Formats with ImHex

https://werwolv.net/posts/file_format_reverse_engineering/
176•carlos-menezes•2d ago•34 comments

Launch HN: RonanRX (YC S26) – Personalized Peptides and GLP-1s

56•lloydarmbrust•9h ago•62 comments

Higher Multipoles of the Cow

https://arxiv.org/abs/2504.00506
56•MrOrelliOReilly•1d ago•17 comments

Fable 5.1 World Modeling

https://github.com/PhiloLabs/fable51-worlds
222•surreal_•12h ago•65 comments

LLMs and Self-Referentiality

https://scottaaronson.blog/?p=10046
19•mavdol04•1d ago•9 comments

Show HN: OwnTime – a chess clock for your day's priorities

https://owntime.app/
60•fmos•1d ago•29 comments

Wendell Berry has died

https://www.nytimes.com/2026/08/31/us/wendell-berry-dead.html
176•Curiositry•2d ago•95 comments

Biggest dark matter detector spots a single weird particle

https://www.science.org/content/article/world-s-biggest-dark-matter-detector-spots-single-weird-p...
280•randycupertino•18h ago•95 comments

Aging brains blend memories together instead of just forgetting them

https://studyfinds.com/aging-brains-blend-memories-together-instead-of-forgetting-them-study-finds/
263•mdp2021•18h ago•115 comments

Much Ado About Adenoids

https://www.damninteresting.com/much-ado-about-adenoids/
23•SamuraiLion•1d ago•0 comments

Qantas Airbus A380 engine failure in 2010 (2023)

https://admiralcloudberg.medium.com/a-matter-of-millimeters-the-story-of-qantas-flight-32-bdaa62d...
123•gumby•13h ago•76 comments

Engineering of the fastest WebAssembly interpreters

https://wasmi-labs.github.io/blog/posts/wasmi-v2.0/
86•herobird•1d ago•6 comments

The shrinking landscape of linguistic diversity in the age of LLMs

https://www.nature.com/articles/s41562-026-02550-0
132•Anon84•3d ago•110 comments

Exit the Cave

https://turtlespace.blog/p/exit-the-cave
249•akkartik•17h ago•90 comments

Async Rust vs RTOS showdown (2022)

https://tweedegolf.nl/en/blog/65/async-rust-vs-rtos-showdown/
80•kooi•13h ago•42 comments

A Selection of Los Alamos Rolodex Business Cards

https://clui.org/collections/los-alamos-business-cards/selection-cards
160•1970-01-01•2d ago•41 comments

Nango (YC W23) is hiring across eng, product and GTM (SF and remote)

https://nango.dev/careers
1•bastienbeurier•10h ago

Altair Basic Interpreter Source Code (1975) [pdf]

https://images.gatesnotes.com/12514eb8-7b51-008e-41a9-512542cf683b/34d561c8-cf5c-4e69-af47-3782ea...
55•Eridanus2•11h ago•33 comments

We could save petabytes of cache storage with Zstandard and Pingora

https://blog.cloudflare.com/cache-transcoding/
103•torutofu•1d ago•39 comments

Poisson Disk Sampling

https://stripeacross.com/posts/poisson-disk-sampling/
155•vismit2000•18h ago•19 comments

Reasons robotics is hard

https://secondthoughts.ai/p/14-reasons-robotics-is-hard
82•ddp26•9h ago•47 comments