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.

Our decision on Cursor following its acquisition by SpaceX

https://openai.com/index/our-decision-on-cursor-following-its-acquisition-by-spacex/
442•meetpateltech•5h ago•207 comments

Samsung's Processing-in-Memory (PIM)

https://chipsandcheese.com/p/hot-chips-2026-samsungs-processing
14•ingve•1h ago•0 comments

Boot a Virtual iPhone via Apple's Virtualization.framework

https://github.com/Lakr233/vphone-cli
235•hentrep•8h ago•69 comments

GUIs should be fully keyboard-driven

https://ckardaris.com/blog/2026/08/28/keyboard-driven-guis.html
749•ckardaris•16h ago•376 comments

TurboKV: Insanely fast Rust key-value store

https://github.com/kingroryg/turbokv
75•rgbimbochamp•5h ago•29 comments

Htmx 4.0

https://four.htmx.org/announcements/2026-08-28-htmx-4.0.0-is-released
621•rmsaksida•18h ago•153 comments

U.S. sanctions against the A/I Collective

https://www.inventati.org/
559•exiguus•18h ago•558 comments

Does the Sumerian King List Align with Paleoclimate Events?

https://www.vectorian.be/articles/2026-06-07/sumerian-king-list-paleoclimate-alignment-explorer/
91•dev_l1x_be•7h ago•33 comments

I accidentally turned LLM memory into program analysis

https://pwning.systems/posts/llm-memory-program-analysis/
111•matt_d•8h ago•21 comments

Just the rumour of a bug is enough to find an exploit these days

https://anil.recoil.org/notes/rumour-is-the-exploit
299•avsm•15h ago•104 comments

StemDeck, a free, open-source and local AI stem separator

https://github.com/stemdeckapp/stemdeck
76•thclpr•6h ago•14 comments

9th Circuit sides with states in Kalshi gambling fight

https://azmirror.com/2026/08/28/9th-circuit-sides-with-states-in-kalshi-gambling-fight-potentiall...
120•hungryhobbit•7h ago•95 comments

Inception-style curved map for turn-by-turn directions

https://www.orbify.eu/demo/
480•smoser•19h ago•159 comments

e is a customizable self-aware Emacs-like editor written in Chez Scheme

https://github.com/paveluv/e
5•p4bl0•54m ago•2 comments

Kumander Linux – A Linux Distro with a Windows 7 Desktop

https://www.kumander.org/
39•linuxkernal•5h ago•15 comments

Experiments with Plotter Art

https://sometimes.digital/posts/experiments-with-plotter-art/
44•surprisetalk•4d ago•2 comments

Monzo Stand-In

https://monzo.com/blog/tolerating-full-cloud-outages-with-monzo-stand-in
61•coffeefuel•4d ago•6 comments

Queen Caroline turned King Arthur into an 18C royal PR strategy

https://theconversation.com/how-queen-caroline-turned-king-arthur-into-an-18th-century-royal-pr-s...
9•samizdis•4d ago•1 comments

Europe's last regular standard-gauge steam passenger service

https://parowozowniawolsztyn.pl/?page_id=2141
5•GungulSurm•2d ago•0 comments

Box of 300 Love Letters Showed Up, What Whimsical WWII Soldier Who Wrote Them?

https://www.smithsonianmag.com/history/this-box-of-300-love-letters-showed-up-out-of-the-blue-who...
10•gmays•4d ago•3 comments

Curvature Beziers: Improving on a timeless recipe

https://acko.net/blog/curvature-beziers/
110•leephillips•4d ago•11 comments

The Twelve-Factor App (2025)

https://12factor.net/
260•jxmorris12•1d ago•139 comments

GLM-5.3 is now open-weight

https://huggingface.co/zai-org/GLM-5.3
672•jeudesprits•16h ago•224 comments

EasyEffects can improve laptop speaker sound quality

https://www.osnews.com/story/145883/easyeffects-should-be-part-of-every-linux-distribution-and-de...
136•birdculture•16h ago•52 comments

Autonomous Mathematical Discovery in an Open-World Multi-Agent Environment

https://arxiv.org/abs/2608.23691
100•stephenchung•14h ago•23 comments

Review: Chuwi's $449 Unibook laptop is a funhouse-mirror MacBook Neo

https://arstechnica.com/gadgets/2026/08/review-chuwis-449-unibook-laptop-is-a-funhouse-mirror-mac...
32•rbanffy•4d ago•10 comments

Verschlimmbesserung: The Word Your Software Updates Need

https://geekyschmidt.com/post/2026-08-25-verschlimmbesserung/
126•speckx•16h ago•83 comments

Visual Analysis of Binary Files

https://binvis.io/#/
78•vismit2000•3d ago•22 comments

Migrating to HTTPX2

https://github.com/openai/openai-python/blob/main/httpx2.md
191•tosh•19h ago•82 comments

Attimet (YC F24) Is Hiring Members of Technical Staff – Engineering and Research

https://www.ycombinator.com/companies/attimet/jobs/6btZFDg-member-of-technical-staff-engineering
1•kbanothu•14h ago