logoalt Hacker News

UltraSane • today at 10:20 AM • 2 replies • view on HN

SQL forcing all results into a flat table is one of its biggest design flaws. It creates tremendous data duplication.


Replies

Taikonerd • today at 3:10 PM

This is the main reason I love Gel: https://www.geldata.com/

It's a "new database" (actually a layer on top of Postgres). It has a more ergonomic query language, and it returns results as nested structures rather than rows. So "give me all my customers with a list of their orders" returns what you want.

Unfortunately, the startup that was developing Gel got acqui-hired, and Gel's future is unclear.

➕ show 1 reply
ctippett • today at 11:53 AM

If anything a well designed database minimises data duplication. If your query returns duplicate data that's on the writer, not the language's fault.

➕ show 1 reply