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.

GPT-5.6 Sol Ultra will be in Codex

https://twitter.com/thsottiaux/status/2073933490513752151
177•mfiguiere•4h ago•114 comments

OpenPrinter

https://www.opentools.studio/
617•bouh•8h ago•150 comments

Has_not_been_viewed_much

https://iamwillwang.com/notes/has-not-been-viewed-much/
167•wxw•6h ago•43 comments

Organic Maps

https://organicmaps.app/
877•tosh•15h ago•258 comments

Building relationships with customers through support didn't turn out as hoped

https://www.uncommonapps.nyc/p/castro-podcasts-things-i-got-wrong-support
58•dabluck•3h ago•30 comments

Does code cleanliness affect coding agents? A controlled minimal-pair study

https://arxiv.org/abs/2605.20049
77•softwaredoug•6h ago•39 comments

Show HN: Homegames. An open-source game platform I've been making for 8 years

https://homegames.io
123•homegamesjoseph•8h ago•35 comments

The Age of Personalized Hardware Is Coming

https://geastack.com/blog-the-age-of-personalized-hardware-is-coming
28•arbayi•3d ago•15 comments

Completing a computer science degree on Coursera

https://notesbylex.com/completing-a-computer-science-degree-on-coursera
156•lexandstuff•8h ago•108 comments

It's not about physical vs. digital games, it's about ownership

https://popcar.bearblog.dev/its-about-ownership/
380•popcar2•14h ago•277 comments

Mr. Baby Paint and accidentally discovering a new cellular automata

https://tekstien-marginaalien-keskus.aalto.fi/residenssi/heikki/blog/004-december-2/
147•jfil•3d ago•30 comments

The future of Flipper Zero development

https://blog.flipper.net/future-of-flipper-zero-development/
277•croes•11h ago•113 comments

New AI tutor achieves 0.71-1.30 SD effect size in Dartmouth course [pdf]

https://intextbooks.science.uu.nl/workshop2026/files/itb26_s1s2.pdf
149•jonahbard•11h ago•90 comments

Composite Video on the NES: Why's it so wobbly?

https://nicole.express/2026/phase-altering-by-line.html
75•zdw•8h ago•7 comments

Delta flight hit by firework while landing at Midway Airport on Fourth of July

https://www.nbcchicago.com/news/local/delta-flight-hit-by-firework-while-landing-at-midway-airpor...
105•randycupertino•10h ago•144 comments

Starring the Computer

https://www.starringthecomputer.com/computers.html
190•gitowiec•12h ago•43 comments

Zuckerberg says AI agent development going slower than expected

https://www.reuters.com/business/zuckerberg-says-ai-agent-development-going-slower-than-expected-...
149•cwwc•3d ago•294 comments

Platonic Hydrocarbons

https://en.wikipedia.org/wiki/Platonic_hydrocarbon
7•chriskw•3d ago•0 comments

The Private Capture of Public Genius

https://www.wysr.xyz/p/the-private-capture-of-public-genius
67•martialg•5h ago•33 comments

Modernizing a 25-year-old minimal C++ unit testing framework (Part 2)

https://freshsources.com/code-capsules/test-part2/
4•chuckallison•3d ago•0 comments

The Sneakerweb

https://sneakerweb.org/
36•GalaxyNova•4h ago•7 comments

Connections in Math: the two kinds of random

https://stillthinking.net/posts/connections-in-math-two-kinds-of-random/
32•pcael•6h ago•24 comments

DNSGlobe – Rust TUI to watch DNS propagate around the world

https://github.com/514-labs/dnsglobe
42•Callicles•7h ago•26 comments

Cursed circuits #5: capacitance multiplier

https://lcamtuf.substack.com/p/cursed-circuits-capacitance-multiplier
77•surprisetalk•9h ago•8 comments

Dungeon Proof Crawler: learn how to write proofs with RPG

https://dhilst.github.io/algae/game/index.html
50•SchwKatze•8h ago•13 comments

An Ordinary Mind on an Ordinary Day

https://www.laphamsquarterly.org/roundtable/ordinary-mind-ordinary-day
10•tintinnabula•3d ago•1 comments

Shrimple – A Simpler, Nicer Markdown

https://qount25.dev/Shrimple/
8•usrbinenv•3h ago•14 comments

The Writers Who Wrote the Most in History

https://brennan.day/compulsion-the-writers-who-wrote-the-most-in-history/
25•bookofjoe•4d ago•12 comments

You need a webring

https://shub.club/writings/2026/july/you-need-a-webring/
74•forthwall•11h ago•50 comments

Al Vigier: Canada's AI strategy shouldn't include secret Palantir bills

https://www.readtheline.ca/p/al-vigier-canadas-ai-strategy-shouldnt
130•ClearwayLaw•5h ago•55 comments