Rendered at 21:00:37 GMT+0000 (Coordinated Universal Time) with Cloudflare Workers.
jexp 1 days ago [-]
It’s been a lot of fun. But yes we built it from scratch in a relatively short time. Some foundations were there especially acceptance tests for openCypher and performance tests and we had neo4j and others to test against. Since early September we merged almost 2000 PRs with agents running on fireworks models - glm, kimi, deepseek and the occasional Claude and Gemini.
But 15 years of database architecture/design experience in our heads helped a lot with the steering.
It’s all OSS so you can see the development pace.
https://github.com/relatedb/relate
snthpy 15 hours ago [-]
Looks cool! So are you aiming to complete the in-process triple of (OLTP, OLAP, GraphDB) -> (SQLite, DuckDB, RelateDB)?
When i point it at my Obsidian folder, what gets loaded into memory? Is it just the link graph or all the page contents and metadata frontmatter as well?
jexp 11 hours ago [-]
Both the link graph and the properties from the frontmatter and the content as a separate property. If you run rw (on a copy first) you can also make updates.
We don’t parse the links from the text right now. That could be an enhancement for the future. But those would be read only I guess.
OptionOfT 23 hours ago [-]
I don't have the best memories about Neo4j.
We ran it clustered, and had to use bookmarks to make sure we didn't end up on an out-of-date read-replica after having just written something.
But that wasn't the worst. The worst was the stop the world events. When a garbage collect would take too long the whole thing would promote another write master.
Since then I'm quite allergic to databases written in a GC language.
UltraSane 23 hours ago [-]
Neo4j isn't fun to run but I really enjoy graph data modeling and the Cypher query language.
roseway4 22 hours ago [-]
> The worst was the stop the world events. When a garbage collect would take too long the whole thing would promote another write master.
This bit us one too many times at Zep, and was a reason why we built our own graph db service. Doing so also took ~10 weeks.
Hope Relate will work better for you guys. Feedback welcome.
utopianism 19 hours ago [-]
The way they go about making it fast (look up the way it represents and stores data internally, and reflect on why it needs so incredibly much memory to perform OK, sooooo much about it falls out naturally from their basic data structures, unsurprisingly) optimizes for some sorts of graph-related operations one might like to perform. And it is fast at those.
Its performance is pretty bad for most things that aren't in that set of operations, including some stuff one might expect a "graph database" to be really good at, based on the name. Like, worse than Postgres at some of the graphy stuff. (To be fair, this take is years old, but unless they totally re-engineered the fundamental way it represents its data, or expanded its memory use by a multiple more than its already very-high demands to store supplemental, differently-structured copies of the data... I don't see how it could have changed much)
Their marketing folks liked to snag non-technical (or unwary technical) people with corporate buying power by being like "when you think about it all your data is a graph! So clearly you need a graph database!" but employing it as a database of record outside very narrow use cases was a bad idea (at least back when I was looking at it). Unless you were dealing with some pretty unusual data (and not much else) it was much better-suited for querying a supplementary, ephemeral dataset, if you had extremely graph-heavy queries of the type it was good at to run, on large graphs (on small ones, hell, just use sql)
Cypher's great, though. I came away from my encounter hoping never to be stuck on a project where someone above me'd been fooled into adopting Neo4j, but I'd definitely not mind working with Cypher again in some other context.
Incidentally, by far the best overall database for the requirements of the system I got stuck using it on would have been... sqlite. And I don't mean one of those hipster use cases where you use it for something that'd traditionally use Postgresql or whatever, I mean it just straight-up would have saved them so much money getting them features they paid to build for free. Way, way more than the almost-nonexistent benefits Neo4j provided for their use case (I did also have insight into another project we were working on for them that also got stuck with Neo4j and also absolutely did not need it, didn't base my negative opinion on my project alone; the amount of time burned on the back half of that project on bugs that'd never have happened at all on a SQL database of almost any kind, was large, mostly to due to their having a really poor set of available data types, made even worse by weak transaction support, at least beak then)
A guy in our client's organization who seemed to be their main allegedly-technical cheerleader for neo4j and appeared to be one of those guys who's always going to one conference or another rather than doing actual work informed me that I'd regret it if I didn't go deep on graph databases, like it'd really hurt my career because that was The Future. Like my dude I've seen this song and dance a couple times before. SQL man. SQL is eternal. Your shit's definitely a fad, and you're a victim of professional liars (salesmen and marketers). I'm not even happy about that, necessarily, that's just how it is. The parallels to how caught up he was in the marketing was so similar to predecessor database fads that it was uncanny. Also this database had like no features so I pretty much exhausted my exploration of it in a week or so, LOL, not like there was even anything to learn... wonder how that guy's doing these days, got a great title and still mostly attending conferences for pay and misleading teams, I bet.
OptionOfT 16 hours ago [-]
It sounds like we could've been colleagues, as this matches how it was sold to us.
utopianism 3 hours ago [-]
This was one of the top firms in a market that shares the some syllables of its usual two-word descriptor with "indigent insulting".
Their use case would max out in hundreds-of-thousands of nodes and edges per client (with most being in the 5-figures) and OK you might want to mix those together in one master database for a bunch of reasons but they wanted to be able to run the whole thing on-premises with local data storage on client sites so they weren't dependent on an Internet connection, and to share full datasets over [name omitted] dropbox-alike file storage service, so in fact they did not want to do that (later ingestion of the datasets to some other store for, ah, research purposes was surely among their goals, but that's separate and doesn't at-all need to inform how the data's represented while in use for its primary purpose).
They needed sqlite. Could have served it from a potato. Performance for some operations they needed would have been a multiple faster, others, slower, but so fast you'd still miss it if you blinked because the datasets were so small. A solid 50% of our development timeline would have evaporated into free money for them. LOL.
But "it's graphs" (so's everything, according to neo4j salesmen) so "must need a GRAPH database".
Same client insisted we needed GraphQL for this because graph and were frequently confused and incredulous when I repeatedly explained to them that it's actually not an especially good fit for the kinds of graph queries and datasets they had, just because that word's in the name. Like it'll work but not by leveraging any special features other than its ability to return tabular data, it was gaining us nothing but I just kept having to refer them to official docs explaining why no, it was not getting us anything graph-related "for free" and was actually adding extra work.
speaktorob 10 hours ago [-]
> falls out naturally from their basic data structures
Which ones?
> employing it as a database of record outside very narrow use cases was a bad idea
Why would you ever use a database *outside* of it's use case? Neo4j is a graph database, for graph solutions.
> unless they totally re-engineered the fundamental way it represents its data
Sounds like you are talking about block format? Which is a complete re-engineering of the storage engine, has been in Neo4j Enterprise Edition for three years, and was released for Community edition a couple weeks ago. https://medium.com/@david.pond/a-faster-foundation-for-neo4j...
> SQL is eternal. Your shit's definitely a fad
20+ years and counting since this was first uttered. Since then we've also seen wide column, document store, time series, the list goes on. You could store timestamps in Postgres and perform date arithmetic. Postgres can also store JSONB, so why do we even need Mongo or Cassandra when we can just dump a blob into a single field. /s
utopianism 3 hours ago [-]
> Postgres can also store JSONB, so why do we even need Mongo or Cassandra when we can just dump a blob into a single field. /s
Lots of databases are useful, while not being a great choice for a primary, general datastore.
Every new one that comes along, the marketing department tries to sell it as the best general datastore, because pretending that's true increases the TAM and can score you some sales with people who aren't savvy.
edtechdev 1 days ago [-]
The article is about their new open source embedded graph database, relate.
Is this a bet that agentic compatibility will drive database adoption and database technology customer aquisition?
I still find it hard to grasp that someone builds a software of this kind of complexity in 10 weeks. It feels like the market is a pinball mashine.
twoodfin 1 days ago [-]
I think the bet is, roughly, build
something simple, focused, and open source to jump-start an (agentic) developer ecosystem, then slide the existing “enterprise-grade” platform into place underneath for the folks with the checkbooks.
They’re probably imagining Relate : Neo4j as Spark : Databricks.
jexp 23 hours ago [-]
More pglite/neon : databricks
gedy 23 hours ago [-]
It's an existing, will tested system they are rewriting. It's a good case for LLM rewrite, it's not a new concept or from scratch product.
jexp 23 hours ago [-]
It’s not a rewrite. It’s a new product from scratch. With a different form factor. Embedded, local, low resource, in memory, agent-native.
Not focused on scale, HA, security, enterprise production workloads.
gedy 23 hours ago [-]
Not same interface?
jexp 22 hours ago [-]
yes but that's also the interface that many other graph databases have aka Cypher as query language and the underlying property graph model. it supports bolt/http for compatibility/existing tools, but the native embedded bindings are new.
fidotron 24 hours ago [-]
The shocker was DuckDb getting acquired. AI boosts the (potential) value of OLAP enormously.
Graph databases have largely been solutions in search of problems (knowledge graphs, social networks, auth systems), but anyone with the slightest dealing with them starts to think they too are problems. I never met anyone that adopted one that wasn't relieved when it was killed.
pjmlp 6 hours ago [-]
Having done a few trainings on the matter, I always come out feeling they are a solution for those that don't know their SQL, or how to actually build proper indexes.
fidotron 5 hours ago [-]
I think the only major thing they can win with is data locality for some applications, but it starts to look more document oriented than graph.
nemo44x 1 days ago [-]
As a company I think they’re desperate for any kind of product market fit. Their flagship database is past its time and the bet that a graph database would be anything but niche was wrong. From what I’ve heard the company has a massive churn issue and struggles to acquire customers with very long sales cycles. Bad combo.
So now they’re a AI graph database company. Ok.
zcw100 24 hours ago [-]
If you're asking yourself "should I use a graph database?", just say "no", you'll be right 99% of the time. I'm willing to take the %1 miss.
jexp 23 hours ago [-]
The company is doing well. Thank you. It was just this form factor that was missing …
Not a very good article, more of a ceo said this and that and lets drop some buzz words.
Heres an example...
> Seven months later, Neo4j released Relate: an open-source graph database for agents that fits in a single file.
So its a single file... what does this mean ?
cjlm 19 hours ago [-]
Thanks for the feedback, I’ll try to be more clear next time.
10111001 22 hours ago [-]
>> Seven months later, Neo4j released Relate: an open-source graph database for agents that fits in a single file.
> So its a single file... what does this mean ?
A file can only be so big. My AI says the maximum size of a file is 8.5x11 and two inches deep. It's quite an accomplishment to fit an entire database server into such a small space. Now you can fit dozens of databases into a filing cabinet, when previously you could only fit one or two.
MiroslavPokorny 22 hours ago [-]
Exactly and you can only fold a paper that size 7 or 8 times... i cant remember which.
swyx 24 hours ago [-]
yooo whats with making me the bad guy lol. i was just steelmanning the other side so that emil could respond for the critics
trastentrasten 1 days ago [-]
Pretty cool!
webbrain 22 hours ago [-]
and in 1 year with chatgpt it became obsolete
weakfish 1 days ago [-]
Is it just me, or do the fonts render really oddly?
cjlm 1 days ago [-]
Let me know your platform, they look okay to me in Firefox/Chrome/Safari on macOS.
When i point it at my Obsidian folder, what gets loaded into memory? Is it just the link graph or all the page contents and metadata frontmatter as well?
We don’t parse the links from the text right now. That could be an enhancement for the future. But those would be read only I guess.
We ran it clustered, and had to use bookmarks to make sure we didn't end up on an out-of-date read-replica after having just written something.
But that wasn't the worst. The worst was the stop the world events. When a garbage collect would take too long the whole thing would promote another write master.
Since then I'm quite allergic to databases written in a GC language.
This bit us one too many times at Zep, and was a reason why we built our own graph db service. Doing so also took ~10 weeks.
https://www.getzep.com/blog/why-we-built-a-graph-database-se...
Its performance is pretty bad for most things that aren't in that set of operations, including some stuff one might expect a "graph database" to be really good at, based on the name. Like, worse than Postgres at some of the graphy stuff. (To be fair, this take is years old, but unless they totally re-engineered the fundamental way it represents its data, or expanded its memory use by a multiple more than its already very-high demands to store supplemental, differently-structured copies of the data... I don't see how it could have changed much)
Their marketing folks liked to snag non-technical (or unwary technical) people with corporate buying power by being like "when you think about it all your data is a graph! So clearly you need a graph database!" but employing it as a database of record outside very narrow use cases was a bad idea (at least back when I was looking at it). Unless you were dealing with some pretty unusual data (and not much else) it was much better-suited for querying a supplementary, ephemeral dataset, if you had extremely graph-heavy queries of the type it was good at to run, on large graphs (on small ones, hell, just use sql)
Cypher's great, though. I came away from my encounter hoping never to be stuck on a project where someone above me'd been fooled into adopting Neo4j, but I'd definitely not mind working with Cypher again in some other context.
Incidentally, by far the best overall database for the requirements of the system I got stuck using it on would have been... sqlite. And I don't mean one of those hipster use cases where you use it for something that'd traditionally use Postgresql or whatever, I mean it just straight-up would have saved them so much money getting them features they paid to build for free. Way, way more than the almost-nonexistent benefits Neo4j provided for their use case (I did also have insight into another project we were working on for them that also got stuck with Neo4j and also absolutely did not need it, didn't base my negative opinion on my project alone; the amount of time burned on the back half of that project on bugs that'd never have happened at all on a SQL database of almost any kind, was large, mostly to due to their having a really poor set of available data types, made even worse by weak transaction support, at least beak then)
A guy in our client's organization who seemed to be their main allegedly-technical cheerleader for neo4j and appeared to be one of those guys who's always going to one conference or another rather than doing actual work informed me that I'd regret it if I didn't go deep on graph databases, like it'd really hurt my career because that was The Future. Like my dude I've seen this song and dance a couple times before. SQL man. SQL is eternal. Your shit's definitely a fad, and you're a victim of professional liars (salesmen and marketers). I'm not even happy about that, necessarily, that's just how it is. The parallels to how caught up he was in the marketing was so similar to predecessor database fads that it was uncanny. Also this database had like no features so I pretty much exhausted my exploration of it in a week or so, LOL, not like there was even anything to learn... wonder how that guy's doing these days, got a great title and still mostly attending conferences for pay and misleading teams, I bet.
Their use case would max out in hundreds-of-thousands of nodes and edges per client (with most being in the 5-figures) and OK you might want to mix those together in one master database for a bunch of reasons but they wanted to be able to run the whole thing on-premises with local data storage on client sites so they weren't dependent on an Internet connection, and to share full datasets over [name omitted] dropbox-alike file storage service, so in fact they did not want to do that (later ingestion of the datasets to some other store for, ah, research purposes was surely among their goals, but that's separate and doesn't at-all need to inform how the data's represented while in use for its primary purpose).
They needed sqlite. Could have served it from a potato. Performance for some operations they needed would have been a multiple faster, others, slower, but so fast you'd still miss it if you blinked because the datasets were so small. A solid 50% of our development timeline would have evaporated into free money for them. LOL.
But "it's graphs" (so's everything, according to neo4j salesmen) so "must need a GRAPH database".
Same client insisted we needed GraphQL for this because graph and were frequently confused and incredulous when I repeatedly explained to them that it's actually not an especially good fit for the kinds of graph queries and datasets they had, just because that word's in the name. Like it'll work but not by leveraging any special features other than its ability to return tabular data, it was gaining us nothing but I just kept having to refer them to official docs explaining why no, it was not getting us anything graph-related "for free" and was actually adding extra work.
Which ones?
> employing it as a database of record outside very narrow use cases was a bad idea
Why would you ever use a database *outside* of it's use case? Neo4j is a graph database, for graph solutions.
> unless they totally re-engineered the fundamental way it represents its data
Sounds like you are talking about block format? Which is a complete re-engineering of the storage engine, has been in Neo4j Enterprise Edition for three years, and was released for Community edition a couple weeks ago. https://medium.com/@david.pond/a-faster-foundation-for-neo4j...
> SQL is eternal. Your shit's definitely a fad
20+ years and counting since this was first uttered. Since then we've also seen wide column, document store, time series, the list goes on. You could store timestamps in Postgres and perform date arithmetic. Postgres can also store JSONB, so why do we even need Mongo or Cassandra when we can just dump a blob into a single field. /s
Lots of databases are useful, while not being a great choice for a primary, general datastore.
Every new one that comes along, the marketing department tries to sell it as the best general datastore, because pretending that's true increases the TAM and can score you some sales with people who aren't savvy.
An alternative is LadybugDB https://github.com/LadybugDB/ladybug
But Relate definitely looks more complete.
I still find it hard to grasp that someone builds a software of this kind of complexity in 10 weeks. It feels like the market is a pinball mashine.
They’re probably imagining Relate : Neo4j as Spark : Databricks.
Not focused on scale, HA, security, enterprise production workloads.
Graph databases have largely been solutions in search of problems (knowledge graphs, social networks, auth systems), but anyone with the slightest dealing with them starts to think they too are problems. I never met anyone that adopted one that wasn't relieved when it was killed.
So now they’re a AI graph database company. Ok.
Heres an example...
> Seven months later, Neo4j released Relate: an open-source graph database for agents that fits in a single file.
So its a single file... what does this mean ?
> So its a single file... what does this mean ?
A file can only be so big. My AI says the maximum size of a file is 8.5x11 and two inches deep. It's quite an accomplishment to fit an entire database server into such a small space. Now you can fit dozens of databases into a filing cabinet, when previously you could only fit one or two.