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.

Hard Drive pricing has gotten bad

https://blog.ktz.me/black-friday-hard-drive-prices-are-messed-up/
132•zdw•2h ago•65 comments

AI made self-hosting fun again

https://janlukas.blog/posts/ai-self-hosting
416•jlelse•6h ago•225 comments

Kamil Khan Mumtaz: Pakistani architect, admired at home, almost invisible abroad

https://worksinprogress.co/issue/the-greatest-architect-youve-never-heard-of-is-in-pakistan/
287•dverlaeckt80•6h ago•61 comments

YouTube Ad Punisher – Auto-reloads YouTube pages when an ad plays

https://github.com/antonpictures/youtube-punisher
304•iantongeorge•10h ago•379 comments

AMD-specific fork of llama.cpp

https://devnull.land/amd-specific-llama-cpp
304•julianlam•10h ago•74 comments

CTO of 'RansomwareHelp' indicted for wire fraud

https://krebsonsecurity.com/2026/11/cto-of-ransomwarehelp-indicted-for-wire-fraud/
235•Bender•10h ago•102 comments

Google will show solo Android developers' phone numbers and addresses

https://support.google.com/googleplay/android-developer/answer/17594752?hl=en
40•nreece•53m ago•12 comments

Show HN: Sqrin – A better screen share for Mac

https://sqrin.app
5•stichoza•1h ago•0 comments

Company Culture = Slack Emoji ÷ √Headcount

https://lia.mg/posts/measuring-company-culture-with-slack-emoji/
170•liamg•7h ago•68 comments

Intel One Mono font (2023)

https://github.com/intel/intel-one-mono
485•saikatsg•17h ago•244 comments

Novita, StreamLake, etc. are ByteDance Ark wrappers

https://kendell.dev/blog/arkwrapper/
60•leafingensemble•6h ago•10 comments

An introduction to uncertainty in machine learning

https://chrhenning.com/blog/2026/introduction-to-uncertainty/
28•chrhenning•9h ago•0 comments

New AI research suggests AI bubble bursting and to expect major market collapse

https://www.london.edu/think/ai-bubble-about-to-burst
3•nreece•1h ago•0 comments

Largest 2D Chart library in the world using BUI: BlenderUI

https://bui.preetham.top/charts/
78•ppmpreetham•9h ago•10 comments

Google Will Make AI Agents Use Its MCP Servers. The Gmail One Can't Send Email

https://techstackups.com/articles/google-workspace-ai-agents-mcp/
277•ritzaco•18h ago•231 comments

Rvoip: VoIP stack in Rust

https://github.com/eisenzopf/rvoip
104•zerosegfaults•8h ago•19 comments

Show HN: Olumino, a Markdown notes and spaced repetition app

https://olumino.app
90•Wiyseful•1d ago•41 comments

George Whitesides, 1939-2026

https://www.science.org/content/blog-post/george-whitesides-1939-2026
71•dverlaeckt80•9h ago•7 comments

Show HN: I wrote an entire Vim manual over 4 years

http://themouseless.dev/vim/
85•thanato0s•13h ago•25 comments

The USAID Files

https://reclaimthenet.org/usaid-files
186•MassPikeMike•1d ago•218 comments

Holy shit holy shit holy shit holy shit: The magnitude of what’s now happening

https://scottaaronson.blog/?p=10379
2007•Kotlopou•1d ago•1826 comments

Curiosity Is No Solo Act

https://thereader.mitpress.mit.edu/curiosity-is-no-solo-act/
137•Petiver•2d ago•34 comments

An algebraic quantization of gravity from the null cone

https://arxiv.org/abs/2611.34924
225•hecmmm•22h ago•83 comments

Moat: OpenRouter replacement

https://commandcode.ai/moat
261•amanverasia•21h ago•148 comments

Tell HN: Happy Thanksgiving

644•ericmay•13h ago•138 comments

NormalScript: A perfectly normal scripting language

https://psychoscript.com/
88•hn-aarvin•23h ago•21 comments

Show HN: Three Linux VMs in a browser tab, each running a different browser

https://michidk.github.io/sidebyside/
121•michidk•13h ago•26 comments

Nextcloud Office Desktop app

https://nextcloud.com/blog/euro-office-comes-to-your-desktop-with-the-nextcloud-office-desktop-app/
410•e12e•16h ago•208 comments

AI agents now control part of DeepMind's compute for Gemini experiments

https://the-decoder.com/ai-agents-now-control-part-of-deepminds-compute-for-gemini-experiments-bu...
41•geox•4h ago•19 comments

Discovery of curse ritual in trash dump surprises Egyptologist

https://phys.org/news/2026-11-discovery-curse-ritual-trash-dump.html
99•PaulHoule•3d ago•56 comments