New every Friday: the week's best founder lessons in one email. Subscribe free
Back to All Episodes
S6 Bonus: A Version-Controlled Knowledge Graph with Gavin Mendel-Gleason of TerminusDB
Aug 11, 2022 22:24

S6 Bonus: A Version-Controlled Knowledge Graph with Gavin Mendel-Gleason of TerminusDB

Bonus
0:00 / 22:24

About this episode

A version-controlled knowledge graph database: Gavin Mendel-Gleason from TerminusDB on a database with Git-like branching, diffing and merging for connected data.

———

When asked what he does for fun, Gavin Mendel-Gleason likes to program for fun. He builds stuff in his spare time, as tech dominates his life. Outside of tech though, he has 2 daughters, and his family enjoys spending time outdoors, specifically in the alps.

At Trinity College in Dublin, Gavin and his teammates were working on a project that required the storage and relation between loads of complex datasets. During this project, they decided to create a better kind of database, to help solve with these sorts of problems.

This is the creation story of TerminusDB.

Sponsors

Links

Times are from the episode recording; ad breaks in your player may shift them a bit later.

Read the key answers from this episode, with quotes and timestamps from Gavin Mendel-Gleason from TerminusDB: https://www.codestory.co/episodes/s6-bonus-what-if-git-and-mongodb-had-a-baby-building-a-version-controlled-knowledge-graph-with-gavin-mendel-gleason-terminusdb/



Current Sponsors:

Checkout our Substack

Checkout our Stacklist!

Checkout our Patreon!

Hosted by Noah Labhart.



Our Sponsors:
* Check out Granola and use my code granola.ai/CODESTORY for a great deal: https://granola.ai
* Check out Perplexity: https://pplx.ai/codestory


Advertising Inquiries: https://redcircle.com/brands

Privacy & Opt-Out: https://redcircle.com/privacy

Chapters

Latest Season of the Podcast is Sponsored By

Key Takeaways

  • Born From Historical Research: TerminusDB began at Trinity College Dublin, where a study of civilizational collapse needed time-scoped, geographically scoped data with a complicated chain of provenance.
  • Diffs Instead of Snapshots: A Prolog prototype fell over past about 20 million triples. HDT's succinct data structures scaled far better and led to layered updates that, Git-like, track change but store diffs because data snapshots would be too large.
  • Features Cost Scalability: Early on, TerminusDB handled about a billion triples but required a full upload for any change. Adding transactions and Git-like features slowed it down, and the team is still winning that speed back.
  • Rust Replaced a C++ Pain: After segfaults and re-entrancy bugs in the C++ HDT library, an engineer's Rust proof of concept won Gavin over. The team now finds slow spots in its Prolog orchestration layer and pushes them down into Rust.
  • Commit Fully to Early Customers: The database wasn't ready for an early deployment, and the team split effort between that customer and the roadmap. Gavin says going all in would have surfaced and fixed industrial pain points sooner.

Frequently Asked Questions

Why was TerminusDB created?

Gavin Mendel-Gleason and his colleagues at Trinity College Dublin were researching long-range historical patterns and needed to store complex, interrelated data along with its sources. As Gavin put it, "that problem really sort of drove us to try to create a different kind of database" [03:15].

How does TerminusDB handle Git-like version control for data?

Gavin's idea was to handle updates by creating intermediate layers built with HDT-like succinct data structures, which resembled how Git stores history. Because full snapshots of data would be too large, he explained, "we'd store the diff between them" [05:45].

Why did TerminusDB move from C++ to Rust?

The team had been chasing segfaults and re-entrancy problems in the C++ HDT library when an engineer named Matthias wrote a Rust proof of concept. Gavin said Rust offered much greater safety along with "getting high speed, similar speeds to what we had in C++" [13:20].

What is a real-world use case for TerminusDB?

Gavin described CAMS, a critical assets management system that maps how assets depend on one another to help small developing nations deal with climate change impacts, including a project in Dominica. He is proud that "we could really feel comfortable deploying it for real use cases like this" [16:05].

What would Gavin Mendel-Gleason do differently if he started TerminusDB again?

Gavin said that at some points he would have grown more slowly, taken on capital more slowly and focused on consultancies that build the product. He believes this keeps feature decisions honest, noting that "it's often best just to be your own consumer" [19:45].

Media List 5000, Podcasts, Fall 2026