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 6.1 Sol: Near-Astra intelligence for a fifth of the price

https://openai.com/index/introducing-gpt-6-1-sol/
543•crorella•2h ago•450 comments

Tcl/Tk 9.1 Released

https://www.tcl-lang.org/software/tcltk/9.1.html
137•dmux•2h ago•32 comments

Nicholas Polson has authored 258 academic papers in 2026 (so far)

https://statmodeling.stat.columbia.edu/2026/08/27/258/
30•zaik•41m ago•7 comments

How Delhi cut electricity loss from 50 to 5 percent

https://spectrum.ieee.org/delhi-electricity-loss
365•rbanffy•7h ago•206 comments

PS5 Relapse Exploit

https://github.com/ntfargo/Relapse-Exploit
126•therepanic•4h ago•64 comments

DraftKings Is Using AI to Behaviorally Target Chronic Gamblers

https://www.eff.org/deeplinks/2026/09/draftkings-using-ai-supercharge-harms-online-behavioral-adv...
370•paimapi•3h ago•246 comments

Dots: Always-on agents

https://openai.com/index/introducing-dots/
350•alvis•2h ago•255 comments

NAND-16: a computer built from 277,248 NAND gates

https://somethingbig.ai/computer
42•rossant•1d ago•25 comments

A Privacy Analysis of Web and Mobile Conversational AI Agents [pdf]

https://jorgegarciaherrero.com/wp-content/interactivos/20260916-Prompt-like-a-butterfly-sting-lik...
388•damaru2•10h ago•124 comments

AI needs $6T in annual revenue to justify data centre boom

https://www.thenationalnews.com/future/technology/2026/09/29/ai-industry-needs-to-earn-6-trillion...
39•Betelbuddy•35m ago•9 comments

Virus Stole a Human Gene and Won't Let Go of It

https://www.nytimes.com/2026/09/28/science/virus-molluscum-human-gene.html
43•gumby•23h ago•7 comments

Phyllotaxis: An audio-reactive LED display

https://jagi.studio/posts/phyllotaxis/
234•evakhoury•1d ago•41 comments

Without the Hot Air

https://www.withouthotair.com/
111•0sake_rs•7h ago•60 comments

Jeeves. Reasoning improves Jev-like decision models

https://github.com/PostHog/jeeves
205•nicowaltz•8h ago•84 comments

Walking Men

https://bookofjoe2.blogspot.com/2026/09/walking-men.html
63•surprisetalk•1d ago•21 comments

The End of a Fair Price: Dynamic Pricing and the Normalization of Gouging

https://prospect.org/2026/09/29/oct-2026-battling-an-army-of-price-setters-owens-review/
50•paimapi•1h ago•38 comments

A Staff Engineer's Guide to Inventing Work

https://sujithjay.com/inventing-work
104•amortize•1d ago•27 comments

Using any C++ library in Godot

https://blog.conan.io/cpp/conan/gamedev/godot/cmake/2026/09/29/Using-Any-Cpp-Library-In-Godot.html
141•czoido•11h ago•50 comments

GLM-5.3 and the spread of advanced cyber capabilities

https://www.anthropic.com/research/glm-5-3-and-the-spread-of-advanced-cyber-capabilities
21•Philpax•2h ago•13 comments

Stuck in the Suez Canal – the short version (2021)

https://cathsenker.co.uk/stuck-in-the-suez-canal-the-short-version/
3•joebig•2d ago•0 comments

You are no longer invited to dinner

https://www.derekthompson.org/p/the-death-of-the-american-host
629•barry-cotter•8h ago•578 comments

Memory Companies Have Destroyed the Consumer Market

https://gamersnexus.net/news-features/memory-companies-have-destroyed-consumer-market
14•DeepLogin•29m ago•1 comments

DevDay 2026 Recap

https://openai.com/index/devday-2026-recap/
67•polygot•2h ago•23 comments

Digital Audio on the ZX Spectrum's 1-Bit Beeper

https://bumbershootsoft.wordpress.com/2026/09/26/digital-audio-on-the-zx-spectrums-1-bit-beeper/
48•ibobev•2d ago•14 comments

What if Jev spoke Arrow?

https://columnar.tech/blog/what-if-jev-spoke-arrow/
20•ianmcook•3h ago•5 comments

1 in 8 cancer cases worldwide are caused by infections, study finds

https://www.cbc.ca/lite/story/9.7361622
194•colinprince•7h ago•111 comments

Show HN: Jevstiller – Distill Jev into a local model, with a disagreement bound

https://jevstiller.pages.dev/posts/the-guarantee/
52•tgluck•7h ago•7 comments

California farmers are struggling to sell grapes as demand for wine drops

https://www.kqed.org/news/12101534/california-farmers-are-struggling-to-sell-grapes-as-demand-for...
362•randycupertino•23h ago•877 comments

ChatGPT Pro 500

https://help.openai.com/en/articles/9793128-about-chatgpt-pro-tiers
142•prodigycorp•2h ago•145 comments

Google ending ChromeOS support two years early

https://www.theregister.com/os-platforms/2026/09/29/google-ending-chromeos-support-two-years-earl...
149•rbanffy•5h ago•116 comments