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.

Qwen 3.8

https://twitter.com/Alibaba_Qwen/status/2078759124914098291
429•nh43215rgb•7h ago•325 comments

Minecraft: Java Edition now uses SDL3

https://www.minecraft.net/en-us/article/minecraft-26-3-snapshot-4
135•ObviouslyFlamer•4h ago•86 comments

What I learned selling 2,500 MIDI recorders: Hardware is not so hard

https://chipweinberger.com/articles/20260719-hardware-is-not-so-hard
230•chipweinberger•5h ago•106 comments

Bananas sprout in Rayleigh Garden UK after 15 years

https://www.bbc.com/news/articles/cvg8edqq5g5o
36•teleforce•2h ago•18 comments

Blender 5.2 LTS

https://www.blender.org/download/releases/5-2/
195•makizar•4d ago•76 comments

Claude Code uses Bun written in Rust now

https://simonwillison.net/2026/Jul/19/claude-code-in-bun-in-rust/
178•tosh•6h ago•244 comments

OpenAI reduces Codex Model Context Size from 372k to 272k

https://github.com/openai/codex/pull/33972/files
156•AmazingTurtle•8h ago•73 comments

UnifiedIR for Julia

https://github.com/JuliaLang/julia/pull/62334
13•vimarsh6739•18h ago•0 comments

Transcribe.cpp

https://workshop.cjpais.com/projects/transcribe-cpp
642•sebjones•15h ago•137 comments

Land Atlas – soil, farmability, and crop analysis for land listings

https://land-atlas-production.up.railway.app/welcome
19•L3dge•6d ago•3 comments

I joined the IndieWeb, here's what I learned

https://en.andros.dev/blog/0b8e451e/i-joined-the-indieweb-heres-what-i-learned/
64•andros•4h ago•35 comments

Infinities, impossibilities, and the man in the white linen suit

https://iain.so/infinities-impossibilities-and-the-man-in-the-white-linen-suit
26•iainharper•5d ago•19 comments

The death and rebirth of my home server

https://sgt.hootr.club/blog/home-server-rebirth/
70•steinuil•5h ago•38 comments

Cagire: Live Coding in Forth

https://cagire.raphaelforment.fr
7•surprisetalk•1w ago•0 comments

Speech Recognition and TTS in less than 500kb

https://github.com/moonshine-ai/moonshine/tree/main/micro
510•petewarden•4d ago•70 comments

Codex Resets

https://codex-resets.com/
246•denysvitali•16h ago•164 comments

Mathematicians still don't know the fastest way to multiply numbers

https://www.scientificamerican.com/article/mathematicians-still-dont-know-the-fastest-way-to-mult...
166•beardyw•5d ago•95 comments

Better and Cheaper Than IPTV

https://github.com/stupside/castor
265•xonery•15h ago•75 comments

Clever hacker fits 537,000 domains in a $5 ESP32 ad-blocking dongle

https://www.tomshardware.com/networking/clever-hacker-fits-537-000-domains-in-a-tiny-usd5-esp32-a...
24•sbulaev•2h ago•7 comments

Hardcore IndieWeb: Run your own website 100% independently for only $0.01/day

https://www.neatnik.net/hardcore-indieweb
214•cdrnsf•18h ago•174 comments

The Mighty Big Array of Finn Jensen LA8YB

https://la0by.darc.de/LA8YB_EME_MBA.htm
24•kalehmann•8h ago•6 comments

Restoring and Demoing 1960s Vintage Computers at the Computer History Museum [pdf]

https://ibm-1401.info/pictures/Proc-MIW-2017-Garner-1401PDP1.pdf
30•rbanffy•1w ago•3 comments

Scrying the AMD GFX1250 LLVM Tea Leaves

https://chipsandcheese.com/p/scrying-the-amd-gfx1250-llvm-tea
50•mfiguiere•11h ago•1 comments

Ollama: All Aboard Open Models

https://ollama.com/blog/all-aboard-open-models
37•inferhaven•8h ago•16 comments

Using self-hosted Umami for iOS app analytics

https://hjerpbakk.com/blog/2026/07/14/umami-for-apps
44•Sankra•5d ago•5 comments

The Art of Insight in Science and Engineering – Mastering Complexity(2014) [pdf]

https://ocw.mit.edu/courses/res-6-011-the-art-of-insight-in-science-and-engineering-mastering-com...
38•nill0•8h ago•3 comments

Classic Amiga titles, free to download

https://amigafreeware.downer.tech/
156•doener•18h ago•21 comments

Making Software: How to make a font

https://www.makingsoftware.com/chapters/how-to-make-a-font
73•Garbage•5d ago•13 comments

Goodbye, and Thanks for All the Bikesheds

https://queue.acm.org/detail.cfm?id=3818307
264•Ygg2•22h ago•233 comments

A Visual Catalog of Retro Macintosh Software

https://www.marciot.com/mac68k-visual-catalog/
70•zdw•1w ago•7 comments