frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

QueryLeaf: SQL for Mongo

https://github.com/beekeeper-studio/queryleaf
23•tilt•9mo ago

Comments

ttfkam•9mo 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•9mo ago
https://www.ferretdb.com/
VWWHFSfQ•9mo 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•9mo ago
this makes so much sense.

I also wonder if there are some specific capabilities of MongoDB that this pattern does not support?

etse•9mo 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•9mo 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•9mo ago
Curious if there is something similar that works with sqlite.
maxbond•9mo ago
As of 3.38 (or 3.45 if you meant a binary JSON structure specifically) https://sqlite.org/json1.html
zareith•9mo 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•9mo ago
There is FerretDB v1, which provides MongoDB protocol for SQLite. See https://github.com/FerretDB/FerretDB/tree/main-v1
zareith•9mo 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•9mo ago
FerretDB v2 is built on top of this extension. See https://github.com/FerretDB/FerretDB
gavinray•9mo 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•9mo ago
That driver is read-only
gitroom•9mo 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_•9mo 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.

I'm helping my dog vibe code games

https://www.calebleak.com/posts/dog-game/
615•cleak•8h ago•184 comments

Show HN: Moonshine Open-Weights STT models – higher accuracy than WhisperLargev3

https://github.com/moonshine-ai/moonshine
120•petewarden•3h ago•21 comments

Mercury 2: The fastest reasoning LLM, powered by diffusion

https://www.inceptionlabs.ai/blog/introducing-mercury-2
55•fittingopposite•3h ago•17 comments

Mac mini will be made at a new facility in Houston

https://www.apple.com/newsroom/2026/02/apple-accelerates-us-manufacturing-with-mac-mini-production/
335•haunter•4h ago•345 comments

Hacking an old Kindle to display bus arrival times

https://www.mariannefeng.com/portfolio/kindle/
172•mengchengfeng•6h ago•40 comments

Nearby Glasses

https://github.com/yjeanrenaud/yj_nearbyglasses
236•zingerlio•8h ago•90 comments

I pitched a roller coaster to Disneyland at age 10 in 1978

https://wordglyph.xyz/one-piece-at-a-time
391•wordglyph•12h ago•151 comments

Corgi Labs (YC W23) Is Hiring

https://www.ycombinator.com/companies/corgi-labs/jobs/ZiEIf7a-founders-associate
1•leastsquares•51m ago

Show HN: Emdash – Open-source agentic development environment

https://github.com/generalaction/emdash
111•onecommit•7h ago•46 comments

Optophone

https://en.wikipedia.org/wiki/Optophone
34•Hooke•4d ago•8 comments

Pi – a minimal terminal coding harness

https://pi.dev
150•kristianpaul•3h ago•65 comments

Aesthetics of single threading

https://ta.fo/aesthetics-of-single-threading/
16•todsacerdoti•3d ago•1 comments

Hugging Face Skills

https://github.com/huggingface/skills
135•armcat•8h ago•41 comments

How we rebuilt Next.js with AI in one week

https://blog.cloudflare.com/vinext/
370•ghostwriternr•5h ago•126 comments

IRS Tactics Against Meta Open a New Front in the Corporate Tax Fight

https://www.nytimes.com/2026/02/24/business/irs-meta-corporate-taxes.html
185•mitchbob•12h ago•197 comments

Amazon Busted for Widespread Scheme to Inflate Prices Across the Economy

https://www.thebignewsletter.com/p/amazon-busted-for-widespread-price
24•toomuchtodo•51m ago•1 comments

We Are Changing Our Developer Productivity Experiment Design

https://metr.org/blog/2026-02-24-uplift-update/
40•ej88•5h ago•27 comments

We installed a single turnstile to feel secure

https://idiallo.com/blog/installed-single-turnstile-for-security-theater
270•firefoxd•2d ago•123 comments

OpenAI, the US government and Persona built an identity surveillance machine

https://vmfunc.re/blog/persona/
443•rzk•7h ago•144 comments

Build Your Own Forth Interpreter

https://codingchallenges.fyi/challenges/challenge-forth/
48•AlexeyBrin•3d ago•15 comments

Justifying Text-Wrap: Pretty

https://matklad.github.io/2026/02/14/justifying-text-wrap-pretty.html
8•surprisetalk•5d ago•0 comments

Steel Bank Common Lisp

https://www.sbcl.org/
153•tosh•7h ago•50 comments

IDF killed Gaza aid workers at point blank range in 2025 massacre: Report

https://www.dropsitenews.com/p/israeli-soldiers-tel-sultan-gaza-red-crescent-civil-defense-massac...
1286•Qem•13h ago•512 comments

The history of knocking on wood

https://resobscura.substack.com/p/neolithic-habits-machine-age-tools
11•benbreen•10h ago•1 comments

Cell Service for the Fairly Paranoid

https://www.cape.co/
64•0xWTF•3h ago•45 comments

Stripe reportedly makes offer to acquire PayPal

https://www.cnbc.com/2026/02/24/paypal-stock-stripe-acquisition-report.html
64•nodesocket•3h ago•38 comments

Ask HN: Programmable Watches with WiFi?

17•dakiol•3d ago•8 comments

US Military leaders meet with Anthropic to argue against Claude safeguards

https://www.theguardian.com/us-news/2026/feb/24/anthropic-claude-military-ai
20•KnuthIsGod•1h ago•0 comments

The Missing Semester of Your CS Education – Revised for 2026

https://missing.csail.mit.edu/
400•anishathalye•1d ago•117 comments

Dream Recorder AI – a portal to your subconscious

https://dreamrecorder.ai/
15•level87•3h ago•11 comments