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.

Why have papers by one of history's most famous physicists been retracted?

https://www.science.org/content/article/why-have-papers-one-history-s-most-famous-physicists-been...
189•adharmad•2h ago•74 comments

Incident CVE-2026-LGTM

https://nesbitt.io/2026/06/26/incident-report-cve-2026-lgtm.html
285•mooreds•3h ago•49 comments

The Exhaustion of Talking to a Tool

https://ohadravid.github.io/posts/2026-06-tool-talking/
20•BrunoBernardino•48m ago•9 comments

Ultrasound Imaging of the Brain

https://alephneuro.com/blog/ultrasound-brain
83•rossant•4h ago•23 comments

New satellites from years to weeks, days, or hours

https://arstechnica.com/space/2026/06/a-us-military-exercise-in-space-got-underway-with-barely-an...
26•jonbaer•2d ago•1 comments

Jolla Phone, Over 13 500 units sold

https://commerce.jolla.com/products/jolla-phone-october-2026
105•mrbn100ful•1h ago•70 comments

Om Malik has died

https://om.co/2026/06/24/1966-2026/
1152•minimaxir•19h ago•132 comments

Run isolated sandboxes with full lifecycle control: AWS introduces MicroVMs

https://aws.amazon.com/blogs/aws/run-isolated-sandboxes-with-full-lifecycle-control-aws-lambda-in...
13•justincormack•3d ago•1 comments

An entire Herculaneum scroll has been read for the first time

https://scrollprize.org/firstscroll
1513•verditelabs•1d ago•327 comments

The AI industry is pouring millions into US elections

https://www.bloodinthemachine.com/p/the-ai-industry-is-pouring-hundreds
72•speckx•1h ago•36 comments

Libre Barcode Project

https://graphicore.github.io/librebarcode/
242•luu•13h ago•38 comments

Bipartite Matching Is in NC

https://scottaaronson.blog/?p=9851
77•amichail•3d ago•9 comments

What happened after 2k people tried to hack my AI assistant

https://www.fernandoi.cl/posts/hackmyclaw/
291•cuchoi•13h ago•125 comments

Framework's 10G Ethernet module exposes USB-C's complexity

https://www.jeffgeerling.com/blog/2026/framework-10g-ethernet-module-usb-c-complexity/
271•Alupis•15h ago•149 comments

Show HN: WebBase-III – dBASE III rebuilt in the browser with its own interpreter

https://github.com/DDecoene/WebBaseIII
47•ddecoene•2d ago•11 comments

22-year-old Mozart's handwritten notebook unearthed in 'major discovery'

https://www.classicfm.com/composers/mozart/handwritten-notebook-discovered-major-paris/
178•thunderbong•6d ago•48 comments

FEXPRs vs. vtable: how LispE interpreter works

https://github.com/naver/lispe/wiki/2.7-FEXPR-vs.-vtable
33•birdculture•2d ago•6 comments

Mullvad founder gave millions to extremist far right party

https://mastodon.social/@raphaelrobert/116816274242387568
46•vrganj•1h ago•22 comments

A game where you're an OS and have to manage processes, memory and I/O events

https://github.com/plbrault/youre-the-os
307•exploraz•3d ago•64 comments

The 'papers, please' era of the internet will decimate your privacy

https://expression.fire.org/p/the-papers-please-era-of-the-internet
955•bilsbie•18h ago•486 comments

The Garbage Collection Handbook: The Art of Automatic Memory Management (2nd Ed) (2023)

https://gchandbook.org/
203•teleforce•17h ago•43 comments

We all depend on open source. We will defend it together

https://akrites.org/letter/
381•dhruv3006•10h ago•186 comments

Oxide computer 3D rack guided tour

https://explorer.oxide.computer/
437•darthcloud•4d ago•180 comments

IBM debuts sub-1 nanometer chip technology

https://newsroom.ibm.com/2026-06-25-ibm-debuts-worlds-first-sub-1-nanometer-chip-technology
360•porridgeraisin•1d ago•191 comments

Hey Nico, you didn't vibe code your data room but stole it from Papermark

https://twitter.com/mfts0/status/2070080422482977095
531•mmunj•1d ago•216 comments

Microbubbles in Medicine

https://worksinprogress.co/issue/microbubbles/
26•Jimmc414•4d ago•3 comments

Show HN: Chess-Inspired Roguelike

https://princechazz.com
390•cowboy_henk•5d ago•124 comments

Show HN: OpenKnowledge – open source AI-first alternative to Obsidian/Notion

https://github.com/inkeep/open-knowledge
333•engomez•1d ago•157 comments

Un-0: Generating Images with Coupled Oscillators

https://unconv.ai/blog/introducing-un-0-generating-images-with-coupled-oscillators/
178•babelfish•19h ago•43 comments

The Doorman's Fallacy in action

https://rozumem.xyz/posts/17
193•rozumem•20h ago•251 comments