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.

Nvidia agrees to acquire Hugging Face for $13B

https://www.businessinsider.com/nvidia-in-talks-to-buy-hugging-face-13-billion-dollars-2026-8
666•mfiguiere•4h ago•278 comments

CEO fired developers to make room for AI. Developers create open source AI CEO

https://github.com/SenteLabsAI/OpenExecutive
302•GrumpySciGuy•3h ago•180 comments

Mechanical Turk shutting down September 30

https://www.mturk.com/
247•tmp10423288442•5h ago•78 comments

GLM-5.3-Flash

https://z.ai/blog/glm-5.3-flash
955•Philpax•15h ago•480 comments

Asahi Linux Progress Report: Linux 7.2

https://asahilinux.org/2026/08/progress-report-7-2/
174•pizzaiolo•7h ago•42 comments

Kusama Yayoi Dies at 97

https://news.jp/i/1465528042000662661
103•phantomathkg•3h ago•8 comments

Tailcat – Like netcat, but over Tailscale’s data plane

https://github.com/tailscale/tailcat
522•nderjung•11h ago•95 comments

Laion Big Video Dataset

https://projects.laion.ai/bvd/
34•ks2048•3h ago•6 comments

Worst-case glacial lake flood scenarios in a transboundary Himalayan basin 2022

https://nhess.copernicus.org/articles/22/3765/2022/nhess-22-3765-2022.html
114•totetsu•6h ago•50 comments

An ongoing 3D-printer AGPL violation

https://lwn.net/SubscriberLink/1089390/46116614cc74b814/
359•Velocifyer•11h ago•161 comments

U.S. State Department pauses immigrant visa applications

https://www.wsj.com/politics/policy/u-s-state-department-pauses-immigrant-visa-applications-25b31b23
406•sss111•12h ago•613 comments

Stripe acquires Clerky

https://www.clerky.com/blog/clerky-is-joining-stripe
128•zakshay•8h ago•23 comments

Zohran and the Short Link

https://iamwillwang.com/notes/zohran-and-the-short-link/
153•wxw•5h ago•52 comments

The Hugging Face incident and the road ahead

https://openai.com/index/hugging-face-incident-and-the-road-ahead/
225•amrrs•10h ago•264 comments

Twitter Viewer – View Twitter Without Account

https://twitterwebviewer.com/
374•motownphilly•15h ago•206 comments

Actinide is first startup to produce high-assay low-enriched uranium (HALEU)

https://www.actinideinc.com/press/actinide-becomes-first-startup-to-ever-enrich-natural-uranium-t...
149•dsalzman•10h ago•77 comments

CoMaps: The Offline App That Guided Rescuers Without a Signal in Venezuela

https://hotosm.org/en/news/comaps-the-offline-app-that-guided-rescuers-without-a-signal-in-the-ve...
232•gedankenstuecke•12h ago•49 comments

IBM Unveils Next Generation Dual-Architecture Processor for IBM Z and LinuxONE

https://newsroom.ibm.com/2026-08-24-ibm-unveils-next-generation-dual-architecture-processor-for-i...
112•porridgeraisin•9h ago•79 comments

FDA approves first in class targeted therapy for metastatic pancreatic cancer

https://www.fda.gov/news-events/press-announcements/fda-approves-first-class-targeted-therapy-met...
194•leopoldj•13h ago•45 comments

Serve Markdown to AI Agents with Accept Headers

https://acceptmarkdown.com/
110•tilt•9h ago•67 comments

Nebula Sans

https://www.nebulasans.com
379•GavinAnderegg•14h ago•139 comments

Mold: A Massively Parallel Linker

https://arxiv.org/abs/2608.23228
103•matt_d•9h ago•15 comments

Taylor Farms: How One Company's Reach Became a National Risk

https://farmaction.us/taylorfarmsreport/
262•speckx•15h ago•178 comments

The Harness Is the Thing

https://scott-fryxell.github.io/blog/the-harness-is-the-thing/
76•sfryxell•12h ago•22 comments

GitHub Outage Tracker: Is GitHub Cooked?

https://isgithubcooked.com/
213•toomanyrichies•9h ago•140 comments

Getting video models to learn better, faster

https://www.linum.ai/field-notes/data-filtering-gen-video
16•schopra909•3h ago•8 comments

Launch HN: Risklytics (YC S26) – Insurance brokerage for frontier tech companies

https://www.risklytics.ai/
48•AlexRisio•13h ago•19 comments

The turbulent AI era is here

https://www.gatesnotes.com/a-turbulent-ai-era-and-critical-choices-to-make
195•LVB•13h ago•179 comments

AWS Acquires DuckLabs

https://ducklabs.com/news/2026/08/26/ducklabs-to-join-aws
1014•onderkalaci•16h ago•299 comments

Tim Curry has died

https://www.theguardian.com/film/2026/aug/26/tim-curry-dies-rocky-horror-show-stephen-king-it-leg...
614•mykowebhn•13h ago•202 comments