Get the latest tech news

Algorithms on billion-scale graph using 10GB RAM: I love DataFusion


In a previous post, I was sceptical about using Apache DataFusion for graph analytics. However, after some thought and experimentation, I changed my mind. I have reconsidered my approach and now have a working implementation of basic graph algorithms, such as WCC, PageRank and MSSP. For example, I can identify weakly connected components in a graph with two billion edges using just 10 GB of RAM and two cores. This is one of the most widely used graph algorithms and lies behind most entity resolution. The pure CSR of this graph requires over 15 GB of raw memory (or 30 GB if it is treated as undirected, as WCC requires). The hard limit was 10 GB of RAM when using systemd-run -p MemoryMax=10G, and the process was successful. Not Vibe-coded.

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of GB RAM

GB RAM

Photo of algorithms

algorithms

Photo of datafusion

datafusion

Related news:

News photo

Show HN: Open-source engine running Gemma 4 26B in 2 GB RAM on any M-series Mac

News photo

Yope raises $12.3M to build a private social network without algorithms or ads

News photo

Windows 11 Copilot now tells you what’s slowing down your PC, while using 1GB RAM itself