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.

OnePlus halts operations in USA and Europe

https://community.oneplus.com/thread/2170715118587871237
114•pilililo2•2h ago•56 comments

The lost joy of music piracy

https://www.pigeonsandplanes.com/read/music-piracy-what-cd-oink-nine-inch-nails-streaming
440•mcgin•7h ago•272 comments

Where are YC founders now? OpenAI and Anthropic, mostly

https://joinedanthropic.com
105•ohong•4h ago•26 comments

The LLM Critics Are Right. I Use LLMs Anyway

https://www.theocharis.dev/blog/llm-critics-are-right-i-use-llms-anyway/
8•JeremyTheo•21m ago•0 comments

Inkling: Our Open-Weights Model

https://thinkingmachines.ai/news/introducing-inkling/
1045•vimarsh6739•18h ago•260 comments

A Beautiful Theory Falls to Ugly Data

https://marginalrevolution.com/marginalrevolution/2026/05/a-beautiful-theory-falls-to-ugly-data.html
35•paulpauper•3d ago•12 comments

British Steel taken into public ownership to protect 'vital' UK supply

https://www.bbc.com/news/articles/c5y680w62wno
6•clarionbell•14m ago•0 comments

The Act and the Outcome of Creation

https://www.ssp.sh/blog/on-creation/
4•zazuke•14m ago•0 comments

Let's Build PlanetScale from Scratch: Infrastructure

https://onatm.dev/2026/07/16/homescale-part-1/
4•onatm•22m ago•0 comments

If you want to create a button from scratch, you must first create the universe

https://madcampos.dev/blog/2026/07/accessibility-from-scratch/
173•treve•8h ago•79 comments

Teardown: A Generic 7-Port USB 3.0 Hub That Wasn't

https://goughlui.com/2026/07/09/teardown-a-generic-7-port-usb-3-0-hub-that-wasnt/
98•speckx•3d ago•40 comments

1,300 Beautiful Wildlife Illustrations from the 19th Century Now Restored

https://www.openculture.com/2026/07/explore-1300-beautiful-wildlife-illustrations-from-the-19th-c...
131•gslin•9h ago•24 comments

Governments, companies, nonprofits should invest in free, open source AI [pdf]

https://www.siegelendowment.org/wp-content/uploads/2026/07/fortune-david-siegel-open-source-ai.pdf
226•bilsbie•15h ago•79 comments

Grok Build is open source

https://github.com/xai-org/grok-build
488•skp1995•15h ago•530 comments

SQLite should have (Rust-style) editions

https://mort.coffee/home/sqlite-editions/
302•gnyeki•13h ago•135 comments

Stripe and Advent have made a joint offer to acquire PayPal – sources

https://www.reuters.com/business/finance/stripe-advent-offer-buy-paypal-more-than-53-billion-sour...
456•rvz•1d ago•272 comments

Let's build a simple interpreter for APL – part 1

https://mathspp.com/blog/lsbasi-apl-part1
8•mpweiher•6d ago•0 comments

I also filed the corners off my MacBook

https://www.brt.fyi/posts/mac-book-filing/
226•maxbrt•1d ago•120 comments

Reynard: A real Firefox web browser for iOS 13 or later

https://github.com/minh-ton/reynard-browser
78•AbuAssar•7h ago•25 comments

I resurrected an 8-year-old dead CSS library and gave it an engine

https://usevivace.dev
4•axelrevana•1h ago•0 comments

Bluesky Trademarks ATProto

https://atproto.com/blog/at-protocol-trademark
120•chaosharmonic•10h ago•74 comments

Making 768 servers look like 1

https://planetscale.com/blog/making-768-servers-look-like-1
96•hisamafahri•8h ago•31 comments

Track your workout from the iPhone Lock Screen

https://musklr.com/blog/2026/iphone-lock-screen-workout-tracking-live-activity/
3•badgag•1h ago•1 comments

SpaceX stock erases all its gains and slides below IPO price in intraday trading

https://www.latimes.com/business/story/2026-07-16/spacex-stock-erases-gains-slides-below-ipo-pric...
6•1vuio0pswjnm7•18m ago•0 comments

Ente – Opening Our Books

https://ente.com/open/
6•Sherex•1h ago•0 comments

Running Gemma 4 26B at 5 tokens/sec on a 13-year-old Xeon with no GPU

https://www.neomindlabs.com/2026/06/08/running-gemma-4-26b-at-5-tokens-sec-on-a-13-year-old-xeon-...
297•neomindryan•20h ago•194 comments

High-Bandwidth Flash offers efficient storage for model weights

https://spectrum.ieee.org/high-bandwidth-flash
55•Gaishan•1d ago•20 comments

Job queues are deceptively tricky

https://typesanitizer.com/blog/job-queues.html
102•ingve•2d ago•32 comments

Can LLMs Perform Deep Technical Comprehension of Computer Architecture Papers

https://arxiv.org/abs/2607.11859
65•Jimmc414•10h ago•20 comments

Artie (YC S23) Is Hiring Software Engineers

https://jobs.ashbyhq.com/artie
1•tang8330•19h ago