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

Comments

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

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

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

Sergey Brin's Unretirement

https://www.inc.com/jessica-stillman/google-co-founder-sergey-brins-unretirement-is-a-lesson-for-...
178•iancmceachern•6d ago•195 comments

The creator of Claude Code's Claude setup

https://twitter.com/bcherny/status/2007179832300581177
372•KothuRoti•4d ago•214 comments

Vector graphics on GPU

https://gasiulis.name/vector-graphics-on-gpu/
37•gsf_emergency_6•4d ago•6 comments

Stop Doom Scrolling, Start Doom Coding: Build via the terminal from your phone

https://github.com/rberg27/doom-coding
428•rbergamini27•14h ago•305 comments

Electronic nose for indoor mold detection and identification

https://advanced.onlinelibrary.wiley.com/doi/10.1002/adsr.202500124
117•PaulHoule•9h ago•60 comments

Opus 4.5 is not the normal AI agent experience that I have had thus far

https://burkeholland.github.io/posts/opus-4-5-change-everything/
558•tbassetto•16h ago•760 comments

Rust is beyond object-oriented, part 3: Inheritance (2023)

https://www.thecodedmessage.com/posts/oop-3-inheritance/
30•zahrevsky•3d ago•36 comments

Show HN: SMTP Tunnel – A SOCKS5 proxy disguised as email traffic to bypass DPI

https://github.com/x011/smtp-tunnel-proxy
61•lobito25•9h ago•18 comments

A 30B Qwen model walks into a Raspberry Pi and runs in real time

https://byteshape.com/blogs/Qwen3-30B-A3B-Instruct-2507/
240•dataminer•13h ago•70 comments

On the slow death of scaling

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=5877662
70•sethbannon•6h ago•12 comments

Oral microbiome sequencing after taking probiotics

https://blog.booleanbiotech.com/oral-microbiome-biogaia
143•sethbannon•13h ago•60 comments

Vietnam bans unskippable ads

https://saigoneer.com/vietnam-news/28652-vienam-bans-unskippable-ads,-requires-skip-button-to-app...
1325•hoherd•17h ago•683 comments

We recreated Steve Jobs's 1975 Atari horoscope program

https://blog.adafruit.com/2026/01/06/we-recreated-steve-jobss-1975-atari-horoscope-program-and-yo...
64•ptorrone•9h ago•27 comments

I wanted a camera that doesn't exist, so I built it

https://medium.com/@cristi.baluta/i-wanted-a-camera-that-doesnt-exist-so-i-built-it-5f9864533eb7
364•cyrc•4d ago•111 comments

Calling All Hackers: How money works (2024)

https://phrack.org/issues/71/17
243•krrishd•14h ago•161 comments

Microsoft probably killed my Snapdragon Dev Kit

https://jasoneckert.github.io/myblog/how-microsoft-killed-my-snapdragon-devkit/
166•jasoneckert•7h ago•91 comments

What *is* code? (2015)

https://www.bloomberg.com/graphics/2015-paul-ford-what-is-code/
34•bblcla•5d ago•10 comments

CES 2026: Taking the Lids Off AMD's Venice and MI400 SoCs

https://chipsandcheese.com/p/ces-2026-taking-the-lids-off-amds
102•rbanffy•12h ago•56 comments

Show HN: VaultSandbox – Test your real MailGun/SES/etc. integration

https://vaultsandbox.com/
31•vaultsandbox•20h ago•2 comments

Launch HN: Tamarind Bio (YC W24) – AI Inference Provider for Drug Discovery

69•denizkavi•16h ago•17 comments

Show HN: TCP chat server written in C# and .NET 9, used in the terminal

https://github.com/Sieep-Coding/simple-chat-csharp
15•sieep•4d ago•3 comments

Two ways to crack a walnut, per Grothendieck (2025)

https://shreevatsa.net/post/grothendieck-approaches/
32•ethanseal•2d ago•8 comments

Show HN: Make audio loops online

https://makeloops.online/
39•bilalba•1d ago•9 comments

High-Performance DBMSs with io_uring: When and How to use it

https://arxiv.org/abs/2512.04859
139•matt_d•14h ago•37 comments

Investigating and fixing a nasty clone bug

https://kobzol.github.io/rust/2025/12/30/investigating-and-fixing-a-nasty-clone-bug.html
3•r4um•4d ago•0 comments

Locating a Photo of a Vehicle in 30 Seconds with GeoSpy

https://geospy.ai/blog/locating-a-photo-of-a-vehicle-in-30-seconds-with-geospy
123•kachapopopow•16h ago•107 comments

Comparing AI agents to cybersecurity professionals in real-world pen testing

https://arxiv.org/abs/2512.09882
99•littlexsparkee•13h ago•66 comments

Passing of Joe Mancuso

https://github.com/MasoniteFramework/masonite/discussions/853
175•wilsonfiifi•16h ago•16 comments

Laylo (YC S20) – Head of Growth (Organic and Partners and Loops and AI) – Remote US

https://www.ycombinator.com/companies/laylo/jobs/ZtLHRXe-head-of-growth
1•amellin794•12h ago

Show HN: Mantic.sh – A structural code search engine for AI agents

https://github.com/marcoaapfortes/Mantic.sh
65•marcoaapfortes•20h ago•26 comments