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.

A backdoor in a LinkedIn job offer

https://roman.pt/posts/linkedin-backdoor/
630•lwhsiao•5h ago•126 comments

Banned Book Library in a Wi-Fi Smart Light Bulb

https://www.richardosgood.com/posts/banned-book-library/
122•sohkamyung•2h ago•23 comments

Iroh 1.0

https://www.iroh.computer/blog/v1
913•chadfowler•9h ago•281 comments

TinyWind: A pixel pirate sailing game with real wind physics (380k+ kms sailed)

https://tinywind.io
577•tinywind•8h ago•119 comments

I Love the Computer

https://michaelenger.com/blog/i-love-the-computer/
127•speckx•4h ago•80 comments

Ask HN: Has anyone replaced Claude/GPT with a local model for daily coding?

644•cloudking•10h ago•324 comments

Why I email complete strangers

https://www.goodinternetmagazine.com/why-i-email-complete-strangers/
61•karakoram•3h ago•33 comments

Peopleless economy? Not technically impossible

https://gmalandrakis.com/writings/ad-economicum.html
77•l0new0lf-G•3h ago•126 comments

My Homelab AI Dev Platform

https://rsgm.dev/post/ai-dev-platform/
230•rsgm•9h ago•45 comments

US battery manufacturing output continues to break records

https://fred.stlouisfed.org/series/IPG33591S
146•epistasis•4h ago•118 comments

Hetzner Price Adjustment

https://docs.hetzner.com/general/infrastructure-and-availability/price-adjustment/#cloud-servers
321•tuhtah•11h ago•465 comments

What job interviews taught me about Kubernetes

https://notnotp.com/notes/what-job-interviews-taught-me-about-kubernetes/
77•chmaynard•4h ago•69 comments

What every coder should know about Gamma Correction

https://blog.johnnovak.net/2016/09/21/what-every-coder-should-know-about-gamma/
52•sph•2d ago•18 comments

Fox to buy Roku

https://www.wsj.com/business/deals/fox-roku-deal-f6e564f9
269•thm•12h ago•362 comments

How TimescaleDB compresses time-series data

https://roszigit.com/en/blog/timescaledb-compression-hypercore
112•lkanwoqwp•7h ago•14 comments

An O(x)Caml book that runs

https://kcsrk.info/ocaml/oxcaml/teaching/nptel/llm/2026/06/13/an-oxcaml-book-that-runs/
20•anirudh24seven•2d ago•6 comments

Game Engine White Papers Commander Keen

https://forgottenbytes.net/commander_keen.html
149•mfiguiere•7h ago•50 comments

Salesforce to Acquire Fin (formerly Intercom) for $3.6B

https://www.salesforce.com/news/press-releases/2026/06/15/salesforce-signs-definitive-agreement-t...
271•colesantiago•12h ago•207 comments

Copper transport drug restores memory and clears toxic Alzheimer's proteins

https://www.monash.edu/news/articles/copper-drug-restores-memory-and-clears-toxic-alzheimers-prot...
246•bookofjoe•10h ago•92 comments

Launch HN: Drafted (YC P26) – Models for residential architecture

39•PrimalNick•8h ago•49 comments

Factoring "short-sleeve" RSA keys with polynomials

https://blog.trailofbits.com/2026/06/12/factoring-short-sleeve-rsa-keys-with-polynomials/
74•ledoge•3d ago•1 comments

Show HN: Fata – Spaced repetition to fight skill rot from AI coding

https://fata.dev
75•djoume•4d ago•44 comments

How memory safety CVEs differ between Rust and C/C++

https://kobzol.github.io/rust/2026/06/15/how-memory-safety-cves-differ-between-rust-and-c-cpp.html
107•nicoburns•8h ago•101 comments

Making glass-to-metal seals for home­made vacuum tubes

https://maurycyz.com/projects/glass/1/
126•zdw•1d ago•40 comments

Claude Corps

https://www.anthropic.com/news/claude-corps
71•Mustan•7h ago•55 comments

Boot Naked Linux

https://nick.zoic.org/art/boot-naked-linux/
92•abnercoimbre•8h ago•48 comments

Show HN: Vet turned founder, AI lawn diagnosis

https://grassdx.com/
35•andrewbr•7h ago•31 comments

The ghost domain problem in DNS, and what we're doing about it

https://ohdear.app/news-and-updates/the-ghost-domain-problem-in-dns-and-what-were-doing-about-it
6•Mojah•3d ago•1 comments

Typst 0.15.0

https://typst.app/docs/changelog/0.15.0/
274•schu•7h ago•77 comments

Show HN: machine0 – Persistent NixOS VMs You Control from the CLI

https://machine0.io
73•bwm•9h ago•32 comments