News for hackers. Stuff that matters.

maxdemarzi

Re:Hey Database Go Ffffine tune yourself on Sunday May 31, 2026 @08:24AM (#48345159)
Wouldn’t it be nice if your database could help you fine tune your model for better faster and cheaper text to sql? That’s what we’re exploring on this post.
Re:Extending MySQL with VillageSQL on Tuesday May 26, 2026 @05:29PM (#48286240)
I'm happy enough to use LLMs for code, but I think it's nuts people are using it for their PERSONAL blogs. It's supposed to be me talking to my super niche audience. Never gonna happen.
Re:Decision Graphs on Monday April 20, 2026 @09:23AM (#47833965)
I can't shake the feeling that something is off about “context graphs”. This is my attempt at trying to explain why I feel this way.
Re:Text2SQL is dead – long live text2SQL on Tuesday October 28, 2025 @02:18PM (#45736681)
The current benchmark for real world text to sql is https://spider2-sql.github.io/ and the SOTA is at 64%

Anyone selling you 99% accuracy can prove it there first.

Re:More people are getting tattoos removed on Thursday May 08, 2025 @01:55PM (#43929143)
I’ve had tattoos removed and currently removing two more. They are all 20 years old, very faded, blurry they honestly just didn’t look good any more.

The first removal 5 years ago would leave me bleeding and require bandage changes for a week.

The new tattoo removal lasers leave you feeling like a sun burn for two days. No blood, no bandages.

It will become way more common.

Tell me more…
It’s $275 a month plus $99 every 6 months at SlimDownRX. The compounded pharmacies are helping.
Re:Joins 13 Ways on Monday July 03, 2023 @04:41PM (#36578502)
The 14th way is “multi way joins” also called “worst case optimal joins” which is a terrible name.

It means instead of joining tables two at a time and dealing with the temporary results along the way (eating memory), you join 3 or more tables together without the temporary results.

There is a blog post and short video of this on https://relational.ai/blog/dovetail-join and the original paper is on https://dl.acm.org/doi/pdf/10.1145/3180143

I work for RelationalAI, we and about 4 other new database companies are bringing these new join algorithms to market after ten years in academia.

Re:Why Are There No Relational DBMSs? [pdf] on Monday March 13, 2023 @02:45PM (#35140463)
Quite the opposite. The idea is to move as much of the business logic into the database. “Rel” definitions are meant to be written once and reused everywhere. Instead of letting the client decide different business logic every time, you capture and control it in one place.
Re:Why Are There No Relational DBMSs? [pdf] on Monday March 13, 2023 @02:15PM (#35139995)
It works a little different in “Rel” (the query language Relational.ai uses). You would create multiple definitions of what a “full polite address” is for each “case” of valid arguments/empty columns and use that going forward. A bit like a UNION without the same column width requirements.
Re:Why Are There No Relational DBMSs? [pdf] on Monday March 13, 2023 @01:31PM (#35139215)
You can by using “narrow” tables (key value and key key). Download the slide notes from this presentation of how Relational.ai is doing it: https://www.slideshare.net/maxdemarzi/developer-intro-deckpo...
Re:All of NoSQL is because of this on Monday February 27, 2023 @02:52PM (#34961037)
They don't have joins at all because of how expensive binary joins are to do. NoSQL pre-joins relations (graphs dbs), pre-joins foreign keys (document dbs) , pre-joins everything (queries) (wide column dbs). Saying "all" is a bit of a hyperbole but it gets to the point of the matter.
Re:All of NoSQL is because of this on Monday February 27, 2023 @11:13AM (#34958100)
It took about 10 years, but worst case optimal joins and multi-way joins in general are finally fixing the Join problem in databases that led to the proliferation of NoSQL systems over the past decade.
Re:Bullshit Graph Database Performance Benchmarks on Friday January 13, 2023 @11:21AM (#34369924)
Author here: I did not write that I was proud of not knowing Python. I just wrote that I don't know Python. The thought of trying to understand 2k lines of it looking to see where Memgraph 'cheated' to make their product look good and the other bad was beyond my current capabilities.
Re:Bullshit Graph Database Performance Benchmarks on Friday January 13, 2023 @09:44AM (#34368362)
Author here to clear up a few questions: I did not run any benchmarks for Memgraph, just Neo4j on my machine and compared them to their numbers on their machine. My 8 faster cores to their 12 slower cores, so not apples to apples, but close enough to make the point that Memgraph is not 120x times faster than Neo4j. I used to work at Neo4j, then at AWS for Neptune, I work on my own graph database http://ragedb.com/, and work for another database company https://relational.ai/

If you want to be my hero, find a way to fix this problem: https://maxdemarzi.com/2023/01/09/death-star-queries-in-grap...

Re:What Every Competent Graph DBMS Should Do on Thursday January 12, 2023 @05:50PM (#34361375)
The lack of a Schema does hurt Neo4j performance. Properties are stored "willy nilly" on a linked list of bytes per node/relationship. No order, an "age" property can be: 45, 38.5, "adult", [18,19], false... and that makes a terrible mess when aggregating, sorting, filtering, searching, etc.
Re:Ask HN: Anyone try semaglutide / Wegovy for weight loss? on Thursday November 24, 2022 @11:56AM (#33733471)
It will stop your hunger, but you will still fight your bad habits or social eating. If you eat like “normal” you will have a bad time. Your stomach will hurt, you will feel miserable. Gotta have your partner help and stop eating out or eat separately for a few months.
Re:Lua, a Misunderstood Language (2021) on Thursday September 29, 2022 @05:22PM (#33027389)
You are right. This code runs just fine on both of these online Lua websites. local tab = {} tab[938388893] = "hi" tab[987383332] = "Hello"

for k,v in pairs(tab) do print(k) print (v) end

https://www.lua.org/cgi-bin/demo https://luajit.me/

But when I try it using the Sol library (embedded in C++) it eats all my memory. Is it a Sol issue or a C Lua binding issue? Anybody know?

Re:Lua, a Misunderstood Language (2021) on Thursday September 29, 2022 @02:06PM (#33024788)
One Lua thing that is wacky is that you cannot have large integers as keys to a table. Lua converts {2938433:"hello", 983748323:"hi"} to positions in the array portion of a table and creates a giant 99.999% empty table eating all the RAM. Unless somebody knows something I don't on how to make it work.
How are you storing and querying your graph data? Are you using a graph database underneath all that or ?
Re:One million queries per second with MySQL on Thursday September 01, 2022 @06:36PM (#32684269)
What were the stats on each Shard? Was each shard running 4 cores? 8 cores? 32 cores? RAM? The blog post is light on details.
Re:Tell HN: Turned 44 today and I'm lost on Thursday April 14, 2022 @02:11PM (#31030926)
Get your Testosterone checked in the early morning two times (about a week apart). If you are under 300 both times, go see a Urologist for treatment. It could be your hormones.

Older »