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.

Play Store blocks AuroraStore, hurting GrapheneOS users

https://gitlab.com/AuroraOSS/AuroraStore/-/work_items/1566
134•erikvanoosten•1h ago•40 comments

AnkiDroid: Google Play no longer allowing Open Collective donation link

https://github.com/ankidroid/Anki-Android/issues/21656
627•hexa555•6h ago•160 comments

Ask HN: Who is hiring? (September 2026)

93•whoishiring•2h ago•74 comments

Ambient CSS v3 – Blender meets CSS

https://ambientcss.vercel.app/
54•kikkupico•1h ago•20 comments

I trained a small transformer in 1.5hrs and it beats many LLMs

https://mvakde.github.io/blog/44-on-arc-1/
297•porridgeraisin•7h ago•81 comments

Quill (YC W20) Is Hiring a Fullstack SWE

1•R_R•7m ago

Io_uring Without Readahead

https://frn.sh/io-uring/
72•porridgeraisin•3h ago•16 comments

Show HN: Running 104GB Qwen3.8-Flash-Next on 48GB Mac with at ~12 tok/s

https://github.com/carloslfu/slotstream
12•carloslfu•25m ago•1 comments

American Airlines' Legendary Mechanic Passes Away at 100 After 80-Year Career

https://simpleflying.com/american-airlines-mechanic-passes-away-100-record-80-years/
290•NaOH•2d ago•113 comments

Dr. Melvin Scheinman: 40th Anniversary of Catheter Ablation

https://ucsfhealthcardiology.ucsf.edu/facstaff/spotlight/dr-melvin-scheinman-40th-anniversary-cat...
18•efavdb•3d ago•0 comments

We Are Rebuilding Monica

https://www.monicahq.com/en/blog/we-are-rebuilding-monica/
54•robinhood•1d ago•31 comments

Fastpotify

https://fastpotify.rocks/
710•nreece•14h ago•455 comments

Keenable SELECT: an agent that searches the web in SQL

https://keenableai.github.io/select-showcase/
27•phoenix120•1h ago•3 comments

Introducing Ad Blocker for Firefox on iOS

https://blog.mozilla.org/en/firefox/ad-blocker-on-ios/
122•HieronymusBosch•3h ago•55 comments

Movie Scene Map – 13,312 films, series, games, anime and manga

https://moviescenemap.com/
3•Flightmussy•33m ago•0 comments

A browser-based viewer for Office Open XML documents

https://ooxml.silurus.dev/
23•mathiaswp•1h ago•6 comments

Fractal Jittered Voronoi Partitions

https://www.boristhebrave.com/2026/08/29/fractal-jittered-voronoi-partitions/
55•jp3141•2d ago•6 comments

Saab Enters Collaborative Combat Aircraft Race with High-End Concept

https://aviationweek.com/defense/aircraft-propulsion/saab-enters-collaborative-combat-aircraft-ra...
69•rbanffy•2h ago•50 comments

Thanks to Lake Ontario, MapQuest is popular all over again

https://www.washingtonpost.com/politics/2026/09/01/thanks-lake-ontario-mapquest-is-popular-all-ov...
17•reaperducer•43m ago•8 comments

Dwarf Fortress' creator says the industry's in shambles over AI

https://www.pcgamer.com/gaming-industry/dwarf-fortress-creator-says-the-industrys-in-shambles-ove...
28•Limb•1h ago•11 comments

Restroom Archive

https://restroomarchive.com
297•jcalx•13h ago•69 comments

Tmp.0ut Volume 5

https://tmpout.sh/5/
163•ghuntley•17h ago•34 comments

Playa Phone

https://playaphone.com/
713•cutoff•1d ago•224 comments

I turned my security cameras into an automatic bird identification system

https://jasontucker.blog/how-i-turned-my-security-cameras-into-an-automatic-bird-identification-s...
583•speckx•1d ago•156 comments

Terence Tao explains 6 essential mathematical concepts [video]

https://www.youtube.com/watch?v=OOMx2BHHWtE
561•matthewsinclair•1d ago•74 comments

GPU World

https://www.gpuworld.org/
362•simonpure•13h ago•229 comments

Has early Scratch experience led to fulfilling careers?

https://twitter.com/ID_AA_Carmack/status/2094450188911845827
78•ilamont•17h ago•58 comments

RotaryCell: Making an unmodified rotary phone work over LTE with an ESP32-S3

https://github.com/fregacmols/RotaryCell
136•jombib•14h ago•38 comments

Dwarf Fortress is getting the mother of all magic updates

https://www.rockpapershotgun.com/dwarf-fortress-is-getting-the-mother-of-all-magic-updates-extend...
486•Tomte•5d ago•231 comments

A walkable ASCII cyberpunk city in one HTML file [video]

https://www.youtube.com/watch?v=3YtygAx_C6A
381•keithcarolus•22h ago•58 comments