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•11mo ago

Comments

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

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

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

Credit cards are vulnerable to brute force attacks

https://metin.nextc.org/posts/Credit_Cards_Are_Vulnerable_To_Brute_Force_Kind_Attacks.html
147•kodbraker•2h ago•116 comments

Ti-84 Evo

https://education.ti.com/en/products/calculators/graphing-calculators/ti-84-evo
160•thatxliner•2h ago•178 comments

New research suggests people can communicate and practice skills while dreaming

https://www.newyorker.com/culture/annals-of-inquiry/its-possible-to-learn-in-our-sleep-should-we
162•XzetaU8•5h ago•86 comments

The Smelly Baby Problem

https://www.worksinprogress.news/p/how-disposable-diapers-conquered
24•dionysou•2d ago•9 comments

Ask HN: Who is hiring? (May 2026)

204•whoishiring•7h ago•228 comments

Show HN: Destiny – Claude Code's fortune Teller skill

https://github.com/xodn348/destiny
37•xodn348•2h ago•30 comments

Whimsical Animations Course Open House

https://courses.joshwcomeau.com/wham/open-house/00-introduction
41•SpyCoder77•3h ago•7 comments

whohas – Command-line utility for cross-distro, cross-repository package search

https://github.com/whohas/whohas
111•peter_d_sherman•7h ago•26 comments

SpaceX rocket set for unintentional Moon landing – well, a piece of it anyway

https://www.theregister.com/2026/05/01/spacex_debris_landing/
27•beardyw•11h ago•11 comments

City Learns Flock Accessed Cameras in Children's Gymnastics Room as a Sales Demo

https://www.404media.co/city-learns-flock-accessed-cameras-in-childrens-gymnastics-room-as-a-sale...
235•joshcsimmons•4h ago•63 comments

Lib0xc: A set of C standard library-adjacent APIs for safer systems programming

https://github.com/microsoft/lib0xc
33•wooster•3h ago•14 comments

Show HN: WhatCable, a tiny menu bar app for inspecting USB-C cables

https://github.com/darrylmorley/whatcable
375•sleepingNomad•14h ago•126 comments

AI uses less water than the public thinks

https://californiawaterblog.com/2026/04/26/ai-water-use-distractions-and-lessons-for-california/
293•hirpslop•5h ago•264 comments

Show HN: AI CAD Harness

https://fusion.adam.new/install
46•zachdive•5h ago•60 comments

Ask HN: Who wants to be hired? (May 2026)

107•whoishiring•7h ago•215 comments

Artemis II Fault Tolerance

https://alearningaday.blog/2026/05/01/artemis-ii-fault-tolerance/
46•speckx•5h ago•26 comments

Spotify adds 'Verified' badges to distinguish human artists from AI

https://www.bbc.com/news/articles/c5yerr4m1yno
173•reconnecting•6h ago•197 comments

Understand Anything

https://github.com/Lum1104/Understand-Anything
81•taubek•5h ago•26 comments

Eka’s robotic claw feels like we're approaching a ChatGPT moment

https://www.wired.com/story/when-robots-have-their-chatgpt-moment-remember-these-pincers/
56•zdw•1d ago•56 comments

Sally McKee, who coined the term "the memory wall", has died

https://www.online-tribute.com/SallyMcKee
100•deater•8h ago•19 comments

Ubuntu servers taken offline by "sustained, cross-border attack"

https://arstechnica.com/security/2026/05/ubuntu-infrastructure-has-been-down-for-more-than-a-day/
82•RattlesnakeJake•3h ago•13 comments

Historic Tennessee Hotel Is Also Home to the Greatest Duck Tradition (2016)

https://www.audubon.org/magazine/tennessees-most-historic-hotel-also-home-greatest-duck-tradition
15•NaOH•2d ago•1 comments

Running Adobe's 1991 PostScript Interpreter in the Browser

https://www.pagetable.com/?p=1854
114•ingve•10h ago•26 comments

The Gay Jailbreak Technique

https://github.com/Exocija/ZetaLib/blob/main/The%20Gay%20Jailbreak/The%20Gay%20Jailbreak.md
292•bobsmooth•5h ago•100 comments

I'm Peter Roberts, immigration attorney who does work for YC and startups. AMA

108•proberts•7h ago•173 comments

Apocalypse Early Warning System

https://ews.kylemcdonald.net/
86•carlsborg•6h ago•46 comments

AWS stops billing Middle East cloud customers as repairs to war damage drag on

https://arstechnica.com/gadgets/2026/05/amazon-stuck-with-months-of-repairs-after-drone-strikes-o...
117•johnbarron•5h ago•49 comments

A Letter from Dijkstra on APL (1982)

https://www.jsoftware.com/papers/Dijkstra_Letter.htm
47•tosh•11h ago•45 comments

Your website is not for you

https://websmith.studio/blog/your-website-is-not-for-you/
235•pumbaa•11h ago•173 comments

An open letter asking NHS England to keep its code open

https://keepthingsopen.com
200•tvararu•7h ago•13 comments