
数十億のAIエージェントがデータベースに押し寄せるとき(Andy Pavlo)
What Happens When Billions of AI Agents Hit Your Database? (Andy Pavlo)

数十億のAIエージェントがデータベースに押し寄せるとき(Andy Pavlo)
The MAD Podcast: How AI Gets Built — with Matt Turck
要約
カーネギーメロン大学のデータベース研究者で、現在はClickHouseのVP of Database ResearchであるAndy Pavloが、エージェント時代のデータベースについて語った回。ベクトルDBは「単なるインデックス」になったこと、エージェントによるブランチ作成や誤削除とガードレールの重要性、クエリ量が10〜100倍に増える可能性を論じる。さらにtext-to-SQLの精度向上、AIによるDB開発、自己運用DBの10年、ClickHouseやPostgres、グラフ/GPU DBへの見解を述べた。
この回のポイント
- ●ベクトルDBは「結局インデックス」であり、ほとんどのDBベンダーが数年で自前のベクトルインデックスを実装して標準機能になったと述べている。
- ●エージェントが作るDBの多くは開発・テスト用のブランチであり、本番DBの誤削除を防ぐには人間向けと同じ権限管理などのガードレールが必要だと主張した。
- ●エージェントによりクエリ量が10〜100倍に増える可能性を指摘しつつ、クエリの複雑さが人間より単純か複雑かはまだ分からないとしている。
- ●大手銀行の例では、text-to-SQLの精度が約60%から、セマンティックレイヤーへの多年の投資で99.5%に達したという話を紹介した。
- ●CMUの課題はOpus 4あたりからエージェントがほぼ完遂でき、オープンソースDBの6割超にエージェント由来のコミットがあるとDBDBの追跡で見ているという。
- ●LLMはDBチューニングで約85%の水準を15分で出せるが、DBAの役割は上位の業務(データモデリングなど)へ移ると見ている。
- ●ベクトル、グラフ、GPUのDBには懐疑的〜慎重な見方で、グラフDBは不要、GPU DBは未確定とした。
章立て
ベクトルDBとRAGからエージェントへ
ベクトルDBは早くから存在したが、堀は小さく今や標準機能になったという整理。
エージェントによるDB作成とブランチ
Neonの統計を例に、ブランチの意味と開発・テスト用途での使われ方を説明する。
誤削除とガードレール
本番DB削除の事故に対し、権限管理などの既存の仕組みを使うべきだと語る。
クエリ量10〜100倍とエージェントのメモリ
DB利用量増加の4つの時代と、ファイルかDBかというメモリ論争への見解。
MCP・text-to-SQL・AIによるDB開発
精度60%から99.5%への事例、MCPの評価、AIがDBを実装できる現状。
自己運用DBの10年と学ぶ意義
Peloton以来の自動チューニング研究とLLMの変化、DBを学ぶ価値。
ClickHouse Labsと各DBカテゴリの評価
研究所設立の動機、ClickHouseの強み、Postgres追加、ベクトル・グラフ・GPU DBの見解。
DB市場の展望
停滞ではなくAIが速すぎるだけで、リレーショナルモデルは残るという総括。
解説記事
カーネギーメロン大学(CMU)のデータベース教授で、今夏ClickHouseに移って研究部門ClickHouse Labsを立ち上げたAndy Pavloが、Matt Turckのポッドキャストに出演した。テーマは「数十億のAIエージェントがデータ層に押し寄せたとき何が変わるか」。2年前のRAG・ベクトルDBで止まっている議論をアップデートする内容で、Pavlo自身も「分からないことは分からない」と率直に語っている。
ベクトルDBは「ただのインデックス」
Pavloによれば、ベクトルDB自体は2016年頃から存在し、ChatGPTの登場で需要が顕在化した。ただし参入障壁は低く、「結局はインデックス」であるため、1年ほどでほぼ全てのDBベンダーが自前のベクトルインデックスを備え、標準機能になったという。専用システムが不要になったわけではなく、TurboPufferのようにコスト性能で突出する例は今後も残ると見ている。一方で、ベクトルDBがPostgresを倒すという予測は見たことがないと述べた。
エージェントがDBを作り、壊す
Neonに関する統計では、エージェントによるDB作成が増えた。Pavloはこれを、本番DBのコピーオンライト型スナップショットであるブランチ機能の利用と説明する。コーディングエージェントやPRのテストが、本番に影響しない砂場として使っている。
一方、エージェントが本番DBを削除する事故は毎月のように起きている。彼は、人間向けに長年存在する権限制御を使えば防げるのに、皆が車輪の再発明をして痛い目に遭うと指摘する。エージェントは「幼児」のようなもので、階段に柵を付けるようにガードレールが必要だという比喩も使った。同じパスワードをエージェントに渡すような怠慢も問題視している。商用の旧来DBは、こうした保護機構をすでに備えているとも述べた。
10〜100倍のクエリと、メモリはファイルかDBか
PavloはDBの負荷増を、メインフレーム時代、インターネット、モバイルに続く4番目の波と位置付ける。エージェントは24時間動き、読み書きが混在するため、クエリ量が10〜100倍になりうると見ており、業界の知人やClickHouseでも兆候があるという。ただしエージェントのクエリは人間のBIツールより単純(1〜2テーブル程度)かもしれず、パターンの違いはまだ研究中だとしている。
エージェントのメモリについては、ファイルシステムも結局はDBであり、入力は人間が読めるテキストなので形式は本質ではないと言う。ただし安全な書き込みや複数エージェント間の共有状態では、DBが保証を提供するため有利だという立場だ。AIモデルが勧めるDBは今やほぼPostgresで、2社から推薦してもらう方法を聞かれたが「モデル開発者に言ってくれ」と答えたという。グラフDBについても、SQL標準にプロパティグラフが入り、サーバ側でトラバーサルできるなら不要との意見を示した。
text-to-SQLとAIによるDB開発
text-to-SQLについては、Spiderなどのベンチマークはモデルが学習済みの可能性があり懐疑的だったとしつつ、ある大手銀行の事例を紹介した。市販ベースでは約60%だった精度が、数年と巨額投資でセマンティックレイヤーを整備して99.5%に達したという。ただしこれは潤沢な資金がある例で、一般の利用者がすぐ同水準を得られるわけではないと補足している。MCPは「RESTのようなもの」で非効率ではあるが十分で、セキュリティの考え方はJDBCなど従来の接続と同じだと評価した。
CMUのDB実装課題は、昨年Opus 4が出た頃からエージェントがほぼ解けるようになった。Pavloは、十分なトークンと指示があればDB全体を作れるとも述べる。自ら運営するDBDB(dbdb.io)では、オープンソースDBの6割超にエージェント由来のコミットがあるとのことだ。
自己運用DBの10年とClickHouseの位置づけ
Pelotonに始まる自己運用DB研究の課題は、本番に近い学習データの不足だった。LLMはブログやドキュメントを学習しているため、人間の専門的な調整の約85%を15分程度で出せるという。多くのユーザーがクラウドの初期設定のまま運用している実態があり、LLMでも改善の余地は大きいと語った。DBAの役割は自動化されるが、データモデリングなど上位の仕事に移ると見ている。
ClickHouseは2016年に登場した際、ベクトル化実行や圧縮などが揃っていたため、Pavloは当初「でき過ぎ」で実体がないのではと疑ったという。その設計はVectorWiseやSnowflakeの系譜にあり、今や標準的だが、周辺のUXや連携が重要だと述べた。OLTPとOLAPの統合については、分析側から始めてPostgresを足す順序が賢いと見る。GPU DBは、NVIDIAの買収など動きはあるが経済性は未確定だとした。
まとめ
Pavloの主張は、エージェント時代でもリレーショナルモデルやSQLは基盤であり続け、変わるのは量と運用の仕方だという点に尽きる。日本の開発者にとっては、エージェントに渡す権限設計、ブランチによる検証、セマンティックレイヤー整備が実務上の注目点だろう。DB市場は停滞ではなく、AIの速度が突出しているだけだという見方も印象的だ。なお本番組の運営側投資家はClickHouseの出資者であり、評価には留意が必要だ。
文字起こし(英語・自動生成)
What is the file system? It's a database, right? Everything is a database. Every month there's a story where someone lost their production database because the agent deleted something. It's the Wild West for people that don't know their history of databases. It's just like taking a cheetah, giving a bunch of cocaine, and putting it in a Ferrari. The amount of speed that people are developing these things is insane. That is Andy Pavlo. In the world of databases, Andy is about as close to a god as it gets, the Carnegie Mellon professor whose courses taught an entire generation of engineers about databases, and as it turns out, the AI models too. Andy recently made some waves by joining ClickHouse to found ClickHouse Labs. Now, not long ago, databases in AI meant vector search and rag. But today, agents create databases, write to them, and sometimes even delete them. Welcome to Databases in the Age of Agents. I'm Matt Turk, and this is the Matt Podcast. Andy, welcome. Hey, Matt. How are you doing, man? Good. I'm excited to talk about all things AI, agents, databases. Larry Ellison, we have two, and then Wu-Tang Clan.
We never know what Wu-Tang Clan. Do we have to about Larry Ellison? I mean, it's like a little early to come out of the gate. Although he is hilarious because he's like the supervillain with databases. It's like he owns a Hawaiian island. Well, that seems to be working out for him. All right. We can graduate to talking about Larry Ellison later in the conversation. I will say my contract with ClickHouse doesn't allow me to talk about Larry Ellison. I made sure that was in writing. Awesome. I want to take it from the top. So two years ago, the topic of databases and AI came up. There was a whole era of vector databases and this whole idea that you need to do RAG in connection with chatbot searches. That was kind of two years ago. I think a lot of people's mental models kind of like stopped there in terms of like this intersection of databases and AI. Clearly, we are in the age of agents now. How is that different? What does that change? I mean, the vector databases, although you're right that, like, the, in terms of being in the zeitgeist of AI and databases, you know, probably two years ago is when the RAG vector came into play.
But the vector databases themselves, like, a lot of them were around since, like, 2016. It's just now that, like, the use for them became obvious because you can use them to enhance and improve, you know, agents doing things. So I think the vector database market is interesting because they were early in the space, but they were really pushing the idea that you want to do this, you know, the approximate similarity search on vectors or embeddings instead of doing an exact search that database systems have traditionally done. And this helps, too, when you're dealing with natural languages, where the semantics of maybe what you're trying to look for or query against isn't, you can't precisely define. Like, find me all the albums from artists in New York City that talk about doing certain kind of activities. It's very hard to define exactly what that is, and the magic of approximate nearest neighbor search with these vector embedding searches in a vector database is that you can
look up things based on the semantics of the thing you're looking for and it works out that way, because you're not trying to do exact keyword searches. So when ChattoB blew up in 2024, 2023, and again, when everyone became aware that this is now a technology that exists, the vector databases were in the right position at the right time because they could augment and improve these chatbots. But the moat, if you will, wasn't that big. At the end of the day, it's just an index. And within a year, pretty much every single database vendor had their own vector index. And now it's become sort of standard table stakes. table stakes. Like every data system that everybody's using has their own vector index. Now, it doesn't say that the vector data system can't do certain things better than what the traditional data system could do. It's just now that everyone has that basic functionality. So I think that you still use vector searches to enhance and improve the chatbots or the agents now. It's just the, you don't need to have a specialized one data set that can only do that. And
agents now create databases, use databases, can make changes to databases. So maybe a year ago when Databricks acquired Neon, there was a stat that I believe said that the number or the percentage of agents creating Neon databases went from 30% to 80%. The data created by agents was larger than anything else. What does that mean, an agent creating a database? Why does an agent need to create a database in the first place? The creation of a database, and then there's branching of an existing database. And I think the database metric was about, like, the branches being created by agents. So what does branching mean? So branching is when you have a database, and you want to make a sort of copy-and-write snapshot of that database and have it look like two unique databases. and the reason why you want to do that is you could have your production database that's running your business, your application, like where all your
system of record, all your changes are going into, but then you want to have either a human developer or an agent be able to start trying out new things and make changes to the application and you want them to operate on the real database. Because oftentimes, traditionally, you would make copies of the database or have a smaller version of the database, like a sample would already exist there because it's just too expensive to copy things around. So you have like a staging or development database, and then you would then hopefully apply your changes to the production database, and you have things that once you go to a larger scale, everything works out. So what branching allows you to do is it allows you to make a snapshot of the real database, have all the changes that you make go to the snapshot and not affect the production database. And once you're okay with the changes you've made, maybe not necessarily the data, but usually it's like the schema or the application code. Once you know you've vetted it on the snapshot, then you can put it live in the production database. So now with these agents, people are spinning up these coding agents to write new features, write new parts of their application.
It's not something humans are doing anymore. And now you want to have these agents, you know, they want to vet their changes on a copy of the database so you can create branches on these things. It also just shows up when you're running testing as well. Like a lot of times the branches are created by, you know, PRs running and GitHub actions or testing things like that. So you want to run your tester code on a copy of the database rather than the live one. So it's mostly being this branching capability is used for development. So agents are, people are using agents to write a lot of new code. And so you want them to run in their own sandbox. You can make a snapshot of the database. So the branching capability is super useful for that. Yeah, even more sort of simpler level. An agent needs to create a database because agents take actions on the world. And if you ask an agent to create an application, an application at the end of the day, steal database. Yeah, so certainly, like if you say, like if you create a database from scratch, then yes, your coding agent, you give the prompt, so your daily application does this, then yes, it will create a database right away. But most of the branches or new databases, if you want to call it, that are being created are for this development.
But yes, the agent can now create databases. For better words, you can have a drop of databases. People often get in trouble with this because it's doing things that they shouldn't be doing. Yeah, there was last year as well. Every year there's somebody. There was some incident that was very interesting, and it got pretty widely publicized on X4. It's worse. Jason Lankin that was trying to build something with Replit, and I think the Replit agent went to the database and deleted a lot of files, which then subsequently Replit made the right adjustments. Obviously, all of this is the Wild West, and people are learning as they go, and mistakes will be made. But it's the Wild West for people that don't know the history of databases. Like, for years, we've had the capabilities to make sure people don't do things they shouldn't be doing, like stupid things like dropping a table or deleting records. Those controls exist. It's just everyone wants to reinvent the wheel. And people learn the hard way of just doing what's already been done in the past.
Let's expand on that point. So what does that mean? What needs to exist in the genetic world for databases that is not currently in place? Guardrails, right? It's like, you know, you wouldn't have a new child, a new toddler, and just, like, not put up the guardrails so they don't fall down the stairs or put their finger in the socket, right? It's the same kind of thing for these agents. think of them as like toddlers. I'm a little more sophisticated than that, but like you don't want them to run wild or do whatever they want on a database. Now, you could sit and babysit it and just say approve, approve, approve like in cloud code or whatever, but of course then you can't scale and have hundreds of agents trying to do things at the same time. So you want to set the right permissions and controls so that they can't go into the production database and drop tables that they shouldn't be. And likewise, you don't have to go read things they maybe necessarily wouldn't want to read as well. So if you have the right guardrails and you're branching or whatever means you want to create these sandboxes, you can avoid disasters.
Like every month there's a story where someone lost their production database because the agent deleted something or did something they shouldn't do. With the right guardrails in place, you can ensure that these things don't happen. People get lazy. They use the same password across an entire company, organization, and then they give the same password to the agent. And now I wonder why the agent started doing things they shouldn't do. Should those be the same card or else as what currently exists? Yeah, so maybe the larger question is, like, do agents now behave differently than humans? Other than just being going to run 24-7, I haven't seen anything that would suggest the fact that, like, they don't develop the same way, software the same way, they're inactive data the same way that humans do, right? At the end of the day, the data sort of exposes so much different capabilities. and that's the API that gets exposed to you. So as long as you can constrain those things for a human using those APIs, you can do the same thing for agents. But the level of sophistication of what those guardrails could be beyond just, like,
don't run delete or update on a table, the level of sophistication really matters on what sort of product you're using. And I will say this is something where, like, I like open source databases, but like the enterprise commercial legacy databases, if you will, they've already done all this, you know, for humans in the past. So they have a lot of the protection mechanisms you would want to expose that to agents as well. Understood. Is there anything that's fundamentally different compared to humans? I think you alluded to volume and scalability. Does that change everything, the fact that you have possibly billions of agents taking actions? And how they interact with databases? I'm going to be honest, I don't know the answer, right? Like, it's still early, as they say, and I get, I mean, the volume, of course, yeah, right, because agents are running 24-7 in a way that humans cannot. But we've seen similar patterns in databases before, where we've seen increase in volume. And I was trying to say there's been three eras, and we're now in the fourth one.
Like, the first one was, like, at the very beginning, just having a database in general. Like, you can now start putting in information and run transactions and store things for your organization in a way you couldn't before when it was all pencil and paper. So probably like 70s and 80s, there was an obvious increase in the volume of traffic you need to handle in a database. But in that era, it was mostly humans interacting with the database, but at their jobs, because no one would go home, and no one had a computer necessarily in the 80s, certainly not the level we had now. So that was sort of, say, one era we had an increase in volume. Then in the 1990s, early 2000s, the Internet comes along, and now everyone can interact with databases through websites and through the Internet at home. So you saw, you know, sort of spike in volume in that level. Then the next era would be mobile phones. Now everyone at any given time has, you know, various apps running. They can interact with websites and, you know, put things and read things from databases. So I would say that would be a theory. So now agents, I think, is the next chapter in the story where now it's every human not only has a cell phone,
But now they also can have maybe hundreds of agents interacting on their behalf that are then reading and writing data from a database. At the end of the day, when you have an application, it's always going to be backed by a database. So it's going to cause the application to read and write information, read and write data. So I don't think we're there yet because every human obviously doesn't have hundreds of agents running 24-7. But what's interesting about what could happen is the, when you think of a human interacting with their cell phone or their laptop on a website or an application, they're kind of really only doing it when they're awake, right? You can only do one thing at a time. Like, I can't sit with my one cell phone in one hand and a laptop in another hand, like, do things at the same time. It's kind of like only limited what the human can actually do. But you can imagine a world where these agents are just 24-7 always running and acting as if they were humans interacting with these things. The volume would increase quite significantly. And then furthermore, unlike a web app, they're usually going to be – you could argue how this agent is really different than IoT devices or cell phones now.
IoT devices, you're just streaming inserts of here's the measurements I'm getting. With cell phone apps, you're usually reading data, right? But you can imagine these agents do more complex operations where it is a combination of read and writes, and then that makes the traffic more interesting. So I think there's going to be potentially a 10 to 100x increase in volume and the number of queries that are going to hit up against databases. And I don't think we're not there at that level yet, but I definitely have heard from my friends at industry that they're seeing the sort of thing. We've seen the same thing at ClickHouse. What I don't know yet, though, is whether the sophistication of the interactions are more or less than what humans can currently do. I've seen some people say, well, the type of queries that the agent would generate, or SQL queries the agent would generate, is actually more shallow because it's trying to maybe read one or two tables at a time, try to figure out what's in there, versus if someone uses a dashboard or a BI tool like Tableau or MicroStrategy, they may be doing very complex joins across the different tables.
I don't know yet whether agents are at that level or whether they're just kind of going at it, trying to read data against the data in more simple terms. So, I mean, so your question is, like, are agents going to change things? I think yes. Right now, definitely in volume. And I think that's going to increase even further. And, of course, now when agents are running, they're generating their own telemetry. So you have to store that and make sense of that. And that's another challenge. But in terms of, like, whether the actual patterns of what they're doing, how different is that yet? That remains to be seen. This is something I'm trying to research as well. Yeah. Some fantastic stuff in there that I want to go back to in a minute. but there is a concept of agent memory that seems to be a little bit of a battleground right now with, on the one hand, file systems and, on the other hand, databases. What is your view? What is a file system? It's a database, right? Everything is a database, right? You have a directory, a bunch of Excel files. That's a database, right?
You have a notebook, a pencil and paper. That's a database. Like when my daughter was like three, we would, you know, we're trying to teach her the importance of databases, and I would make her write down, well, we'd do it together. We'd write down the temperature every day, you know, in a little line notebook, and she'd close and go commit to save the data. That's a database, right? It really comes down to what the form of the input of the context you want to provide to your agents are now. And as far as I know, it's all human readable text, right? So whether or not that human readable text comes from a bunch of JSON files, you have a new directory, or it's extracted from a database system that can then convert that into the correct input form. At the end of the day, like, it doesn't matter. I think that there's obviously advantages and safety guarantees you can get when you use a data-submitter system that can protect data. Like, SQLite is famous for this. why would you want to use a file system and try to manage whether you're
writing things correctly and safely and that you can multiple changes and commit this versus like just see the light just does it, right? So like at the end of the day, everybody should be putting everything in a database system. Even some file systems like WinFS underneath the covers, it's a database system, right? Yeah, there was a piece that also like went viral at some point. I think that was entitled, I recreated that database by accident, like talking about like file systems. Okay, interesting. Does the world of, like, multi-agents, sub-agents, agent swarms, does that require more of a database, meaning, like, this sounds, like, computationally very complex and therefore having something that's extremely heavy-duty on the other side seems to make sense? At the end of the day, if you need to share a state across multiple machines or instances of these agents, whether they're running on the sandbox or not, Like, again, a database management system provides that capability that you could have, you know, multiple readers reading the shared state, right?
I haven't seen anything where, like, agent, it's like part of its memory lookup is you're pushing down, like, filters and things like that into the database. Usually that's provided as part of the context. Again, just going back to the RAG or the vector-based stuff. Like, you provide the context based on what you've already looked up against the memory in the database files or the database itself. So, again, from my understanding is that the API for the input of the context is just human readable text. And whether that comes from a file system or a database system, it doesn't matter. But the database system provides certain guarantees and luxuries, if you will, that a file system can provide. And shared state is one of them across multiple agents. Have you seen the agent world converge towards a specific type of database? I mean, in terms of using it as for memory or having an agent choose one particular data system over another when they build an application? More the, actually both. So maybe the latter. The latter one, it's obviously they're fed on,
the models are trained on what people are writing about. And so, you know, if I say I'm building a new application, chances are it's probably going to recommend Postgres at this point. Because that's what's in the future. Yeah. And I will say, I can't say who. I've had two database companies ask me how to get their database to be recommended first by an agent over Postgres And I was like that not first of all that not what I do That not research And two like don talk to me Go talk to the guys doing the models because like that's clearly something that, you know, they could have sway in. It's basically like SEO. How do you get the agent to learn, like, hey, I should use my Davis X instead of Postgres. I would suspect that your writing is highly indexed by the search engines and, therefore, pitching you is aware of pitching the model. So this is very much a first-word problem, and I'm not trying to say, oh, like a humble brag, But, like, one problem I do have is when I ask questions about databases, it cites me back to myself. Because all my course materials. Which has to be someone to decide. Yeah.
Well, no, but it's like, no, because, like, say when I was teaching database courses, I would say, you know, show me. I will learn about data systems that do this version of it kind of index, like a B plus 3 or whatever. And I would say, so now I have to say, like, I already know which ones do do this. So show me the ones that don't do this. And then I'd say also don't cite Andy Pablo or any Carnegie Mellon. But the problem is that our course material. There's a mother replied, you know, I know you're Andy, right? Jack McGee knows, yeah. Jack McGee actually says, like, I know who you are. I've said something like that, but perplexity doesn't do this. But the problem is also, too, is like all our course material is open source, so anyone can just take and use it. So then it says, okay, well, you can't cite Carnegie Mellon University. Let me cite another university. but it's just my slides being used at another course. So I'm going to be very specific about what not to return back to me. So I think that, I mean, she reached a question, like, I think for OTP, I haven't tried this in a while, but usually it spits back, hey, we should use Postgres.
Unless you say something very specific, like, you know, I'm going to run on an embedded device, then it'll say use DuckDB or SQLite or something like that, or I only care about key values, I might come back and say, like, use RocksDB. But in terms of, for a DB, it almost always says use Postgres. And then you might recommend, like, do you want to host a version or not, right, if you have further chats. For OLAP, it'd be interesting to see if there's any kind of ranking on this. It's actually not a bad idea. Maybe somebody's already done this. But, like, that one, it definitely would come back and maybe you have to refine it further and say, like, my workload looks like this, my data looks like this, And then I think it can give a more nuanced answer. I haven't tried this for about a year or so, but I've definitely seen before, like, it's like, oh, you know, do you have any money? Yes. Okay, you could use Snowflake or Databricks. Do you have no money? Okay, you could use DuckDB, or, you know, do you want to run on-prem? You could use ClickHouse, things like that. So then your second question was about agents. Well, which one should they recommend? So that's the answer to which one they do recommend.
Which one should they recommend? Yeah, and where I'm going with this partly you know, this question of speed, and that's where, you know, ClickHouse shines, and we'll talk about ClickHouse more later. There's perhaps a concept of, you know, context layer ontology, which seems to be pushing towards the graph databases. Are they, you know, what makes sense? I mean, I have strong opinions about the graph databases. I don't think you need one. I think that can be, I have not seen any benchmarks that show graph databases, the native graph databases, outperforming relational databases systems. When the relationship systems have the right constructs in SQL or the API so that you can do graph traversal all on the server side and not go back and forth. The SQL standard in 2023 added support for property graph queries. Oracle supports it. Postgres was supposed to support it this year. It's coming out, Pistain 19, but I think it got delayed or rolled back. I don't know why. But anyway, that's beside the point.
No, I think that, I mean, the context layer, again, depending on the requirements of how many agents you have, whether you have shared state or not across multiple agents, Postgres often should be the first choice for many of these things. For OOTP, if you're doing analytics, that's a whole other story. Let's talk about NCP. Yes. So over the last year or so, it seems like every database provider added an MCP server to their offering. Talks on that, like pros and cons. And I'm coming from the, you know, a year or two ago, there was like this whole like tech to SQL kind of movement where everybody was trying to make LLMs work on top of databases, especially for analytical purposes. And that sort of didn't work. Are we there now? text is equal. It's like natural language is equal. So this is something people have been trying to do since the 70s, right? And every so often there's maybe a, there's some kind
of breakthrough in natural language processing. People say, okay, now finally it can happen, right? It hasn't happened. Except for LLMs. I think the, I've been skeptical of the academic literature and recent publications on various frameworks to do text is equal because oftentimes the benchmarks that are showing, Spider and a couple other ones, these are well-known benchmarks that you know the models are trained on. So of course, it's going to recurgitate the correct answer. I actually was talking to somebody from a very large bank yesterday who said they now have a text-to-SQL interface, but in the initial implementation of it, they were doing something off the shelf and they further refined it a little bit further in-house, but it was about 60% accuracy, meaning that the LLM or the agent could produce the right SQL query, produce the right answer 60% of the time. And that's roughly what I think I've seen before in some other reporting. But they said through this providing a more rich semantic layer, a context layer,
over multiple years and millions and millions of dollars to make this work, they were able to get it up to like 99.5%, which is insane. I think that is a viable thing now if you invest the time to have the right semantic layer and the context information you need. So the model is – the agent has enough information to derive the right SQL word from the question you're asking. I think, again, that's a large bank with infinite money that they can pull this off. I think if we just download something now, a random person will find that these existing tools are not going to be at that level of proficiency. an accuracy. But it doesn't mean we can't get there, right? So now in terms of the MCP, the model context protocol, like, I get why they did it. I think this came out of Anthropic and then everyone sort of quickly adopted it as the standard. And every time, every so often there's a hacker just saying like, MCP's dead or whatever. I don't think it's going away. It's basically a REST interface, right? A standard way to specify what you want
the request would be from the agent to whatever data system you have. And then that data system that receives the MCP request, it's their job to convert it into whatever the correct API calls is, get the data you need. And in the case of database systems, it's going to get it and writing the SQL query to go get the data you need. But usually it's either, you know, oftentimes it's a strict translation of what being passed to you and not like trying to derive the semantic meaning of the MCP request because MCP request has to be somewhat well-defined. I have no problem in SAP. I think that, like, it's not this magic bullet that solves all the world's problems. It's just a digital interface, right, that you can now interpose or interoperate these different agents of different systems to collect data you need. So I'm all for it because you're using the data that's more rather than some homegrown thing. So, yeah, fantastic. It's great. Could it be improved? I mean, like, I think it's inefficient because you're sending human-readable text over the network to go retrieve data. There's obviously better ways
to do this with binary protocols, but at the end of the day, it's good enough. And it seems to be the standard everyone's using. Should it be that security layer that you were alluding to earlier? Yeah, but it's no different than if the request came from SQL, from a traditional application client using JDBC or ADPC, the network protocols, the terminals for these depredations. It's no different if it comes from that versus, you know, a REST request with MCP. At the end of the day, like, okay, I got those requests. I need to understand who's asking you for it, what are they asking you to do, and should they be allowed to do it? So the guardrails we were talking about before, they're the same if it's coming in a SQL versus the same as coming in MCP. Okay, so that's one part of the conversation, that's databases as a memory layer or execution layer for agents. Let's flip the discussion into what AI can do for databases.
So clearly we live in a world where AI can code just about anything. Is that true of databases as well? Yes. So to give one anecdote, I teach a course on data management systems at Carnegie Mellon University. a year ago the agents couldn't do our entire project so the projects would be like we give you a scaffolding with database system and you have to implement the indexes the query engine and things like that they could do some of it not all of it I think it was Opus 4 whatever Anthropic put out last year then that just opened the floodgate the agent basically do all our assignments right without very little prompting and because there is a lot of training data for it because all our projects are open source they're all on GitHub, not just students at Carnegie Mellon University, but also students outside the university, we let them use it. So there's a lot of training data for them to implement things. And so I think agents basically could implement anything you would want to build a database system now. Obviously, you have to prompt it the right way and hold its hand and make sure you generate the right design
or produce the implementation based on the design that you want. At the end of the day, I think the agents are very capable to be able to do this. So they could build an entire database. So my experience of building databases as a venture investor is that it's a 10-year journey of pain where nothing much happened for three years, and you have some of the smartest people in the world getting together to solve what seems each time like insurmountable problems. So we're now saying that you can build the whole thing? Yeah, the old adage from data systems is that it takes 10 years, but it takes 10 years. You can build the first 90% in three years, and then the remaining 10% takes the next seven years. So, yeah, I think that the agents are very capable with enough tokens, of course, and then with enough guidance, people can even build VibeCode entire data in that system. And there's certainly companies that are doing this now. And pretty much every single company is using agents to help develop things. So one of my, I love databases, one of my side projects is the database of databases, dvdb.io.
and one of the things we do now is we keep track of every single data system that I know about and for the open source ones every single night we pull down all the latest commits on GitHub and then we track to see which ones are actually being co-signed by flawed or codecs and things like that and obviously people turn that feature off you don't know whether it's actually being generated an agent but most people don't do that and at this point I think like 60% over 60% of the open source database systems are being, have commits from coming from agents. And so does that, beyond the writing, also apply to the running of it? So going to that self-driving database concept, that's something that was a big project of yours 10 years ago, I believe. Roughly, yeah. Peloton. Yeah. Yes. So walk us through that journey. What was not possible then that has become possible today? Yeah, so when I started at Carnegie Mellon University, one of the things I did was my first year is I would go visit companies
and sort of see what sort of challenges they were facing with databases. And the overarching theme I saw over and over again was like just, you know, running these systems, maintaining them, and optimizing them was a huge struggle. And this is not a huge revelation for me. Like people have been trying to do this for decades. I mean, since the creation of the relational model and relational databases in the 1970s, People have been trying to do auto-tuning for indexes, partitioning keys, sharding keys, and tuning knobs and so forth. Microsoft Research did a lot of work in the early 2000s in this auto-admin project. They had a bunch of tools allowed to manage and optimize data systems automatically. And for context, it's because there's thousands and thousands of possible configuration of the database. Right. So there's like, what indexes should I have on my table to speed up queries? And obviously, if you have too many indexes, the writes go slower and you run out of disk space. Those are the various knobs that control the runtime behavior of the system. how much memory to use for, you know, one memory pool versus for indexes and so forth, right? This is beyond the capabilities of any one human to reason about.
And then if you start looking at, you know, if you have thousands of databases, you can't have, you know, it's just not possible for anybody to manage these things. So we spent some time looking how to build automated tools using machine learning and then what you may be able to call AI now, but using automated methods, machine learning techniques to automate this. And we sort of had two research tracks. We had one where we sort of took an opaque box view of the database system where we said we can't change the internals. What can we do just with what the APIs that the system exposed? So basically have you optimize automatically existing databases, MySQL, Postgres, Oracle, and so forth. And then another track of research was if you build the data from scratch, assuming it's going to be controlled by machine learning, you know, tools, or now what we call agents, how would you design the system slightly different? And a lot of things we learn from trying to optimize MySQL process, we end up building in our own system.
So the challenge always was then for these automation tools was just having enough training data of, like, production databases and being able to take the things you learn optimizing maybe one deployment and apply it to another. Like, as I was saying before, most people will have in, you know, they have a staging or development environment and then they have the production database. So you obviously don't want to try random things on the production database that may cause you to slow down and degree performance while you're trying to figure out how to tune it. So you would vet things on the on the production, sorry, the staging database and then try to apply to the production one. But oftentimes, like, it's never the same hardware, never the same workload. So that was a big challenge we were always facing, just getting enough training data to feed into the models that you can then make good decisions on the production databases. And then the LLMs show up, and that really changed how you can approach the problem because they are basically trained on blog articles, documentation, best practice guides that are all available on the Internet of how to tune these databases.
And so on the research side, what we found is the LLMs can get you maybe 85% of the way there in tuning certain things. And obviously there's weird corner cases. Bespoke algorithms can handle those. But, like, our models oftentimes would take hours and hours to train, assuming you had enough training data, to produce, like, you know, the pristine, optimal configuration. But the LLMs can come in just, like, in 15 minutes, produce something that was good enough. And that's good enough for most people. So are we there yet? Are we in a world where database can largely be sort of self-tuned, self-optimized? I mean, the answer is yes, because it depends on how much improvement you actually want. Like I'm saying, like, the LLMs can get you 85% of the way there. Is there always more performance to squeak out? Yes. And some people are always going to care about the things, and then, therefore, the automated methods we've built in the past would matter a lot more. But for most people, actually, one of the things I was surprised so much was, like, when we had the startup and trying to do this auto-tuning stuff for Pesco and MySQL,
is how many people were running with the out-of-the-box configuration from Amazon or Google and the cloud platforms. And they would tell us, oh, we thought Amazon was tuning this for us. I'm like, no, they're not. So there's enough people that are maybe running with a DOL configuration, which that thing is just terrible, don't do that, where an LLM could come and take care of some low-hanging fruit and provide some meaningful improvements for people in a short amount of time. So in the rest of the software world, we've seen the nature of the job of a developer profoundly change. If you're a student at CMU today and you're super excited about the world of databases, so yes, we can work for the ClickHouse or CockroachDBs of the world. But outside of that, what is the job today that requires deep knowledge of databases if we're in a world where agents are going to be calling them, managing them, and then the database themselves will be self-driving. So I would say, like, so what I would tell my students always was, like, for my courses, like, even if you're not going to go off
and become a database system engineer, like go work on the internals of ClickHouse or Cockroach or Postgres, at the end of the day, everyone's going to interact with the database system. And if you understand the internals of them, how they're implemented, what the data system is trying to do or not do for you for your given queries, you're just going to be in a better position to understand what's going on in the world, in tech stacks. Now, do you need my course to figure that out? No, I'd be naive to think so, that like the ages, you know, they've sucked all my stuff in so they can regurgitate everything I would teach anyway. So, but at the end of the day, again, whether you're learning it from a traditional university course or self-taught or having an alum teach you things, if you understand what a new system is trying to do, then it just sort of removes lots of mysteries and it helps you understand, like, what's going on in your application, why are queries running slow or not running slow. You're in a better position to understand what's going on. And so, you know, if you pursue a computer science degree or engineering degree
and focus on data-driven systems, I don't think – I think the era of, like, you're going to write your system from scratch by yourself, I think that – I'd be naive to think that's still going to be around. But at the end of the day, the database companies are still hiring people to work on these things because you need somebody to understand what the agents are actually doing. It makes sense to that. But to fully ask the question, like we're in an era where there's going to be just no humans in the loop in the way databases are managed and deployed. I would say the traditional role of a DBA, as we've known in the past, I think that's going to be relegated, and a lot of that can be automated. It doesn't necessarily mean those roles go away. they just now get to pursue more higher-minded activities. Like data modeling is always important. And again, agents can do a lot of that too, but you still need someone to understand, like, yes, does this data model capture what our organization or business is trying to represent in database? All those things are super important still Just like does someone need to be like tuning the knobs or picking exact indexes for tables I think that should say how do you don H can do all that
Great. To switch to topics, a lot of people in the database world, I assume pretty much anyone, is very familiar with your work. But, like, for people who are not, so you have been a tenured professor at CMU. You have had very popular classes. I think part of the one beautiful thing that you did is that you took a lot of CMU courses that you were teaching and then you put them online for free. When I started at Carnegie Mellon, I was the only data system professor there. There was another professor there, but he did more like graph mining, data mining stuff. And so when I started in 2013, I was like, okay, well, I got to figure out how to get tenure. And competition is not the right word, but I'm competing against MIT, Stanford, and Berkeley, and I'm the only data person there. So, like, all right, well, just put everything for free on the Internet and, you know, help promote our research we're trying to do. It also had the side effect of, like, I would end up being more prepared for classes because I would – not that I was a good fun at home anyway.
Like, I was like, we should have my stuff together because I knew it was going to be recorded and watched because I didn't want to say the wrong thing. And I would be more professional. I would say less crazy things, which people are, like, shocked when I say this. Like, my course even now is considered watered down. Like, for them, that's bizarre. So, you know, like it was, and like obviously the benefit is like not everyone can go to Carnegie Mellon University. It's not cheap. It's a private school. Not everyone can get in. But like why should that education not be held back from other people? So it doesn't cost me anything. I just put it on YouTube and make everything available to everyone else. And we were joking about Wu-Tang Clan at the beginning of this conversation. I think I heard or read somewhere that you had a DJ spinning at the beginning of class, what is that story? It started in 2019, I was like alright, well, let's have fun with this and when you set up the cameras and things like that for your lectures there's obviously time to set things up, the wires, we had to set all
this up too, right, there's time, so I'm like alright there's an awkward silence where the students are coming in and they're staring at you, there's nothing really going on there's nobody saying anything, so let me get a DJ to sit next to me and just play beats and make me play music next to me the whole time. Right. And then like, you know, then you start talking to them a while during the lecture and you find out like, you know, they live pretty interesting lives. Like one guy, you know, was had a bunch of ex-girlfriends trying to hook up with him. One guy was loaned a bunch of money to people he shouldn't be loaned into. So it was like, we just talk about it in the class. Plus database. As one does. As one does. Yes. And then I think one year we had, um, I did a little joke where, uh, oftentimes the top database conferences are always at the beginning of the semester, at the end of the semester, so I have to travel. So, like, the first week of classes, I'll be traveling to go to a conference. So you don't want to cancel class because it's super important for students to know what the course is going to be out the first week because they're trying to figure out classes they want to take. So I would film it remotely. So one year, I was in L.A. for a conference, and then at the very end of the lecture, because I filmed it, I was like,
oh, by the way, the most important thing is you need to know about databases, and I just listed all the members of the Wu-Tang Clan on the first album, plus Capadonna, who was in jail at the time. And I said, this is the most important thing you have to know about the databases. And then when it came at the end of the semester, the final exam, the very first question was, list all the members of the Wuchang clan on their 36 chambers plus who was in jail, and you have to get your exact spelling. And if they got that question right, they would have got 100% correct on the exam. Yeah, not killer, but killer. Yes, right. If someone got that wrong, they missed the H when they should have had it. So no one actually has ever got that. And I would say I can't do it again because students are expecting it. Okay. Amazing. All right. So that takes us in some way to ClickHouse and ClickHouse Labs. You joined ClickHouse recently to start ClickHouse Labs. Yes. So why start a lab in a commercial company versus doing that in academia? I mean, without going into politics, the nature of research in universities is kind of tough right now.
because the funding in the United States is not what it used to be. There's also a larger question of, like, what does it mean now to have a PhD student when an agent can kind of do a lot of things, right? Do you need to have as many PhD students working on stuff when, like, an agent can produce things and work with me as the professor to write the average, and things like that? So, I mean, there's certainly value to educating students, and I like doing that. But it wasn't clear to me, like, how would I raise money to have many students that I would want. So I had some companies reach out to me about, like, you know, hey, can you go and leave and do some interesting things with us. But it was always a bit more like, hey, you want to come be an engineer with us or like kind of water down versions of what I wanted to do on the research side. and then when I talked to the ClickHouse people it almost seemed too good to be true because I was like hey you know they're like hey come
do research with us I'm like okay but this is what research is you understand this they're like yeah yeah go do this I'm like okay you understand like things might not always pan out correctly because there's research I don't know like yeah great do this and it's insane because they're as you know they're you know they're not an early stage startup but they're a startup They're not a public company, and normally you only see companies, at least in the data list world, set up research labs when they already get established, right? And for them to take, you know, this kind of risk or to have the luxury of having someone like me come in to do peer research is amazing, and they're very serious about it. So, like, the opportunity almost seemed too good to be true, and so far, you know, I'm two months into this, and it seems to be working out. I'm sort of in this observation period now where I'm going through and understanding the stuff that they've built so far because they haven't really published or written about what they've done. They have some blog articles which are super interesting. They've done some amazing work
that I think, you know, I certainly can't take credit for doing, but they've done some amazing work and my job right now is sort of helping them turn those into publications we can disseminate and put out into the world as well as start ramping up longer term more exploratory things. To be very clear, Like, even when I was at the university, you know, in database systems, my work is very much applied. So it's not like I'm doing theory work that has no one, you know, only 10 people in the world can understand. It's not directly related to anything that's going on. The ClickHouse, the kind of stuff I want to do is directly relevant to what ClickHouse wants to do. Not just on the ClickHouse system itself, but also now they have a Postgres offering. There's a bunch of stuff we've done in the past on Postgres, and now we can start looking at real data, trying to put some of these things in production workloads and help people put things out there. So to me, that's super exciting to have direct impact of, like, instead of me writing the paper and then hoping someone comes along and takes it and adopts what we're doing,
we can do the research and evaluate whether it's a good idea or not on real workloads, on real production systems. And if it does make sense, then we can push it out in a short amount of time. So that part is super, super seductive to me that I had this opportunity. Okay, fantastic. Well, let's talk about ClickHouse a little bit in which for disclosure, we are very proud investors here at FirstMark. I think I read somewhere that in 2016, you were concerned that ClickHouse was possibly vaporware because it was a little too good to be true. Yeah. Can you unpack that for us? Yeah, so as you know, like I mentioned, my database is my job, I think, as a researcher is trying to understand what else is out there. Because database is a really interesting research area because not only am I, again, using the term competing loosely, I don't mean that in a majority sense, but you are in competition with other researchers trying to get ideas out and publish.
So not only am I competing with other researchers at other universities, you're also competing against the big tech companies, the Microsofts, the Googles, and Amazon of the world. Plus there's all these startups that have their own data systems. There's not a lot of operating system startups. There's a lot of data system startups, as you know, as an investor. So my job is trying to figure out when a new system gets announced to see, like, what are they doing differently than my own research? What are they doing better? What can I learn from how they approach the problems that they're trying to solve? And so when the announcement of or the release, the unveiling of ClickAlice in 2016 came out, I was like, I know how hard it is about a data system. And for this thing to appear from nowhere, out of nowhere, and we have like have all these capabilities, like the vectorized execution, the kilometer stuff, the compression things, the compression stuff, it almost seemed too good to be true. Or it's a fork of something that already exists. But at the time, in 2016, there wasn't an OLAP engine that was open source
that would have all these capabilities, right? So that threw me for a loop. So I just assumed it was fake. And then, sure enough, it's real, obviously. It has a lot of benefit. So what are some of those benefits? In particular, it's very fast, right? It's very real-time. Why is that possible? Why do databases typically struggle with that, especially analytical databases? and why are they able to do that? So I would say the architecture of ClickHouse, the core fundamentals is by 2026 standards is not novel. By 2016, it certainly was. The nature of, like, you can store data in a columnar layout, so it's storing all the attributes, all the data for a single column together contiguously versus, like, in a row store, you store all the values for all the columns of a single tuple contiguously. Like storing things in that manner, using vectorized instructions and CPUs to process multiple pieces of
data at the same time within one single instruction versus having to do four loops and run things less efficiently. The built-in compression mechanisms, the way they do a log structure storage where you're appending a bunch of changes and then you want to ingest as fast as possible, then eventually in the background you'll compact it and store it in a more efficient manner. A lot of those ideas of the core architecture come from the work done at Snowflake. Prior to Snowflake, there was another system called VectorWise or X100. Sorry, no need to be X100, which then became commercialized as VectorWise from CWI, which is the same school where DuckDB was built. So a lot of the ideas that people have been developed for these column store systems and analytical systems and real-time analytical systems have been sort of floating around, but nothing was open source in 2016, at least as far as I know, that did all these things. So when ClickHouse came out of the gate, like, hey, we have all this stuff
based on all this research that people have done before, it was amazing. And since then, DuckDB has something similar, pullers from the guys in Amsterdam, Firebolt started off as a fork at ClickHouse and they rewrote a bunch of stuff inside, and now they have all these things like Databricks has their own version. So everyone has this sort of this architecture that is predicated or based upon the work done from Snowflake and VectorWise. But now, but in 2016, that was super novel. Now it's sort of table stakes. And one of the things I think ClickHouse has done really well over the years is just keep improving the performance even further and expanding what workloads they can actually can support. And what use cases are you seeing for ClickHouse from the inside? What do you see customers do? I think the, going back to the agent stuff, the agent stuff seems really interesting, too, that, like, people are using this to observe the information, the telemetry that these agents are generating and be able to react to them in real time and ask questions about them.
There's a bunch of stuff done on the financial markets as well, the fraud detection. Again, anything where you want to be able to ingest data very quickly and then ask questions about it, complex questions about it very, very quickly and get back things in milliseconds rather than seconds. Like that, I mean, the combination of doing those two things is put ClickHouse in a unique position. And ClickHouse has been on a journey to expand its product off-rack, right? So it started with this very powerful OLAP analytical real-time database, and now it does. It bought length fuse for LLM observability, about other things? How do you, from the inside, understand this evolution? Does it all fit together? Somebody asked me, why did I join ClickHouse? Again, I'm only two months into this. It's kind of like asking, you just got married, and somebody asked you, why did you choose your wife or husband? I'm like, oh, because they chose me. It's a bit more than that. No, honestly, before I decided to join ClickHouse,
they were doing things at the business level. like so this is the ClickHouse Incorporated not ClickHouse system. They were doing things at the business level that I would have done if I was running a database startup like they were. Like having a postcast offering not just a single OLAP engine that's really good not starting in the O2P space. Having the monitoring, the visualization, the observability stack not just for traditional BI or traditional data but also now the agents and the LLMs. Like they're doing all the things to expand out different verticals to build on their platform. Like all that, to me, they all make sense in tracks. Maybe segue into the state of the database market in 20th grade. We've alluded to a bunch of this already, but I'd like to put it all together. So one thing that ClickHouse has done, as you mentioned, was adding a Postgres service, managed Postgres service. It seems that it's a clear trend.
So Databricks bought Neon, Snowflake made an acquisition. Punchy last year. That convergence of analytical databases and transactional databases, is that the future? Is that driven by commercial and business reasons? So you can sell more to the same customer? Or is there an industrial sort of product logic to it? But there's two things. Should a database company offer both a OTP transactional operational data system and a OLAP system, or at least whether or not they're separate systems or not, that's up for larger discussion. Should you do that? Yes. I mean, going back to what agents like to do, like, obviously maintaining these things is still a challenge, but the bar of entry of deploying a Postgres offering has certainly been reduced. Another conjecture I have in my mind is, like, is it better for an analytical company, a startup that starts with an analytical database to then later on add an OLAP offering
versus an OLAP company then later add an OLAP offering? I think the I realize I'm saying this and I'm biased but you look at what Databricks did you look at what what Clickhouse has done to me that appears that's the right path to do this if you want to start a new data startup start doing analytics first get traction there then you can then add the O2P offering but I can't prove why from the business perspective it seems that's the the smarter play. Now the question is like, okay, should you have a single API, single interface, a view, a single logical endpoint that allows people to run transactions and analytics on what is perceived as a single database instance, or should you have sort of these separate services? Clickhouse right now is separate services. But they have a fast path to get the data out of the OLGP side from Postgres into ClickHouse.
What Databricks announced this year was their LTAP engine or LTAP story for their LakeBase, where you can run your transactions on Postgres or LakeBase or Neon and then have the OLAP engine be able to read that data directly so that you don't have to make two copies of it in the way ClickHouse does or other systems do. So that idea is not new to have this sort of two engines but one copy of the data. There was a previous startup in the 2010s called Splice Machine, which actually I was an advisor for because the guy, the founder was a senior alumni, and he asked me to be an advisor for them. Because they were running HBase plus Spark SQL, but they had a single copy of the data that was a row store. people have been wanting these HDAP systems, these hybrid systems since the very beginning the challenge has always been how do you
reconcile the fact that some of the data might be still in the ROST servers to the column store and the major commercial vendors like Oracle SQL Server they'll store two copies, one in the ROST store and the column store it's called Fractured Mirror Approach and they have an internal mechanism to synchronize these things But the challenge has always been why this sort of hybrid approach has never taken off is because the stakeholders at organizations or companies for these two different sort of categories of workloads have always wanted their own best thing. Like the ultimate team, the people running the application, the operational side, they don't want something that kind of does okay at operations and can do okay at analytics. They want the best operational data system. And for better or worse, that's Postgres now, right? and best if not always in terms of performance could be a variety of reasons why it's considered the best. The same thing for analytics. You don't want a system that kind of does okay in analytics and does okay on operational workloads.
I want the best analytical system. And so that's always been the business challenge, the go-to-market challenge for these hybrid systems. I think, though, Databricks might be in a good position, because they already have that sort of market from the analytical side, and machine learning side and the data warehouse side, and now you're just adding in this OTP side. So ClickHouse could potentially produce the same thing. That's getting kind of the weeds of data system architectures, but I think everybody always wanted this The challenge though often isn just isn always just pure engineering There might be organizational reasons or human reasons why you can achieve this Yeah super interesting So, to play it back, you could abstract away the complexity to the user, meaning that you could have, presumably, an NLM that translates your query. Like a router, yeah. Yeah, into exactly a router. However, from a fundamental architecture perspective, it's very hard to combine.
And from an organizational perspective, it may not make sense because people want the best of breed. But Postgres is the best of breed now in many cases. So, like, betting on your front end is a Postgres deployment that is compatible with Postgres. That might overcome that issue. So to talk about other parts of the database market, we're talking about vector databases. So, like, is that thumbs up or thumbs down? What is thumbs up, thumbs down? Like, in terms of, like, is that a good business to get invested in? I think it'll be around now that, you know, everybody else and their brother has a Victor search capability. One of the things that would happen before when I was a professor is, like, I would always get, you always hear rumors about who's doing well, not doing well, through a combination of, like, either the investors or, like, former employees or students that maybe go to internships or whatever, or, like, maybe interview some places and they come back. So you get sort of bits of information from everyone. You kind of piece together what the data landscape looks like. probably now we can click out is now I see everything.
As an investor, you see everything too. The one vector database company that I know is doing very well is TurboPuffer. And they are hyper-specialized in doing vector search at a cost-performance ratio that's much better than everyone else. So I don't think that the vector database is going to go away. I think that they'll evolve in two ways. They'll have to become either a sort of general purpose system, like a Postgres, like a MySQL, where they become the system of record, where you're storing the original tuples plus the embeddings of the vectors for them. Or they become like an elastic search where there's like a separate system where they have a copy of the data that's being pulled from the operational side. and in that case they can live comfortably as being this additional thing you add on and if you want the raw best performance of vector search
some cases you may have to go to one of these specialized systems so I don't think that's going to go away I just don't think I've seen predictions of like oh press press is going to die at the hands of a vector database, that's not happening that's not happening pretty much the opposite graph databases we mentioned at the beginning so you know not to pick on them but like Neo4j has been around for 20 years now. Sure, yes. And this was supposed to be the moment, right, for graph databases. I have. So what's happening there? I say I have an outstanding bet with somebody on Hacker News where they said that by the year 2030, the graph database market was going to be, was going to overcome the larger relational database market. And if this becomes true, then I will wear a shirt that says I love graph databases, and I will use that as my driver's license, my university ID. I'll put on my website to the day I die, right? I'm pretty comfortable. It's 2026. We got four years to go. This is not happening. No, it's always been a niche market, and I think that my perspective on the research side,
the research shows that if you do certain things in implementing the engine, which ClickHouse does do, DuckDB does some of this as well, there's things you can do that allow you to do the traversals of grass, which essentially just joins, self-joins on the table, you can implement those things very, very efficiently, and you can easily outperform Neo4j, and that's kind of a kicking... That's like... Like Neo4j is like saying you're faster than Neo4j is like saying I'm faster than somebody maybe like... That's in a wheelchair, right? You can run fast. It's a low blow. But I'm just saying, all the graph databases, I think, even the best ones, you're just not going to... So there's a system that has a bunch of these optimizations that are in the research and actually appearing in some of these systems now. You're going to lose. What you will lose against a graph database if you're doing a graph traversal with the client side and the server side, meaning like, you know, I've got to figure out what the next node I want to go look at, go back to the client, and that side is the next node to go traverse. If you're doing that back and forth, yeah, they'll beat you guys.
But like I said, the SQL standard now supports property graph queries. Oracle has this. They were a big pusher of this extension of SQL. allows you to do that traversal on the server side. So, like, graph databases, I think, are a horrible idea. There's no reason why anyone would actually want to use them. GPU databases? Yes. I know you have a special interest there. There was a cycle when a generation appeared, then went away. There seems to be a renewal. What is a GPU database, and what is your prediction? So, GPU database is a data center system where the execution end for queries is all floated to GPU running on PCIe or running in the same box or another box. So, I mean, the history of people trying to build accelerators for data systems goes back to the beginning of data systems. In the 1970s, they were called data machines. So people would build specialized hardware to run sorting and query execution operators. And that obviously died out in the early 1980s because by the time it would take you to design and fab new specialized hardware
Intel or Motorola would put out the next CPU or the hardware got better and just the gains you were getting went away. So hardware accelerators for databases basically died out in the 1980s. There wasn't a lot of activity in the 90s. 2000s, you saw sort of the rise of people trying to do FPGAs for databases and every so often that comes back now. Some of the cloud vendors do a little bit of these things, but usually like to filter things on the NIC on the network side of things coming in. And so for GPU databases, again, there was a bunch of systems in the 2010s that were trying this. We did a seminar series at the university. We invited all the GPU databases guys to come and give talks about, you know, what they were doing, how they were, you know, why they were faster than existing systems. And the big challenge at the time was, like, with those systems, you had to put the entire database inside the memory of the GPU. Because if you had to go back up through PCIe, it was just way too slow. and a bunch of those startups sort of fizzled out some of them are still around but they're sort of specialized for
doing visualizations and then there was in the last year or so NVIDIA has basically gobbled up a bunch of these GPU database companies that were kind of like struggling along and I was an advisor for one of them called Voltron but they also picked up HeavyDB and so NVIDIA is all going all in on this now. So it remains to be seen whether the idea that you're going to build a CPU only data system like long term whether that's going to still hold I've heard in mixed reports like this is public Microsoft has their, they have offerings now in the cloud that can be accelerated, data system can be accelerated by GPUs for analytics Another major data company that can't say who they are, they looked at the economics of GPUs and decided it wasn't worth it. So one of my former students now is a professor at University of Wisconsin.
They're now on leave at NVIDIA. They have a project called SeriousDB, which is not necessarily a new data system, but it's a layer in between an existing system. And so they support taking DuckDB queries and running that down on the GPU. I think they can do this in Doris or StarRocks and Data Fusion. And so at ClickHouse, we've been potentially looking at this as well. But it's research. I don't like it's interesting to see whether how much you have to do translation between how ClickHouse expects things and how CUDA wants things to be the data layout and so forth. How do you organize memory or share memory between these different components? TVA remains to be seen whether this actually makes sense. But certainly, there's a lot of research energy behind this. And I'm publicly agitated. It's like, NVIDIA is obviously pushing this because it'll sell more GPUs, right? Of course, you know, it's hard enough to get new CPUs. Everyone's compute bound or memory is hard to get. I said, the computing hardware is very expensive. It's hard to get now. And GPUs, of all the things, are the most expensive hardware to get.
And now you can say your time is going to run off a GPU. I don't know if that makes sense, at least in the short term. But if the performance improvements are quite significant, some of the researchers that it is, maybe it makes sense. Is there an emerging category or maybe a niche somewhere within a category that people don't talk about enough yet? Of databases? Yeah. I mean, you can always build new databases for new hardware, but my track record on this is terrible in terms of, like, we've done a bunch of research on experimental hardware, and it always gets canceled. It's even not that experimental. It's like, you know, Intel had this Optane persistent memory stuff. We did a bunch of research on building systems for that. Because, like, if you assume now your DRAM is persistent, you know, like you pull the plug and you don't lose anything, that changes how you fundamentally build a data system. We did a bunch of work on that, and then Intel killed that product line. We were doing another research on processing and memory hardware. So think of, like, DRAM sticks with, like, CPU cores directly on the DIM.
so the data system now can say okay instead of pulling things from memory printing to my cpu caches and then I can compute things on them I'll just send the query down to the DIMM itself and run it there we were doing a bunch of work on this on this thing called opmem that got bought by Qualcomm and got killed last year so that didn't work out so there's always a bunch of work you can do on data systems or new hardware I would say that actually I don't know the answer right this is one of the things I'm trying to figure out and we talked about this in the very beginning are agentic workloads significantly different than what humans or what existing applications do now and if so why or how and how would you change the development of a data system to take a better advantage of this that remains to be seen how that works I think there's always a bunch of problems with query optimization I think they're interesting that remains the hardest part about data systems Incremental mobility is used, another big challenge.
But these are not, like, things that no one else has thought of. People have been trying to do these things for decades. So I think the Agenic stuff is probably the most interesting and relevant thing to me right now is, like, what changes with these workloads? What changes in the system architecture? And to be honest, I don't know the answer. I just haven't seen it yet. I'm asking because it generally feels like the database market is a specific moment in its history, meaning that there was an explosion of activity in the 2010s. There was, you know, SQL versus NoSQL, that whole evolution. Then there was the emergence of Databricks, Snowflake, now ClickHouse. But it seems that things have slowed down a little bit in terms of explosion. I guess, you know. Stagnant. Yeah, but we've been to this trend before, right? There was a lot of activity in relation to databases, 1970s, 1980s. And in the 1990s, again, people sort of, you know,
the market sort of solidified around these major enterprises, the Oracles, the IBMs, Teradatas. And then if your only viewpoint of databases were from those kind of companies, then, yeah, it looked like it was been stagnant for years. But as you said, a lot of activity in 2000, 2010s, I mean, relative to AI, then everything looks stagnant. Because in the history of computer science, there's been nothing like that before. It's just like taking a cheetah, giving it much cocaine, and putting it in a Ferrari. The amount of speed people are developing these things is insane. So everything looks slow or dead or stagnant to that. But at the end of the day, I think the volume is going to matter a lot. I think that one issue question is, to your point of cost and efficiency, Like, squeaking out the best you can, the best performance you can get for the hardware that you have, trying to reduce that cost, that's always an interesting challenge that, you know, could pursue.
But, like, at the end of the day, I don't think there's going to be a massive change in what data looks like that requires us to throw everything away that we've known about data uses. In the same way, like, you wouldn't come up with a new notion of arithmetic or mathematics to replace one plus one equals two. The relational model itself is the foundation of how you want to represent data. And it's just you can vary the implementations of that. And so there's certainly a lot of work to make that these systems more efficient for this. But I don't think you're going to throw everything away. The age is needs some kind of data system that you've never even conceived of now. At the end of the day, it doesn't make sense. so I don't think that part changes I think like I said always new hardware I think there's certainly improvements that we've done for SQL there's always going to be people trying to replace SQL I think that might be a lost cause although SQL could end up being like how in the same way that like
people don't write assembly anymore SQL might end up being like that because Texas SQL works so well I think the agenda stuff is super interesting and I think getting better performance is always going to be, at least from my perspective, a fun challenge. It's the things we can pursue. You can imagine a crazy world where you say, I don't need a general purpose data system anymore. For every single application, I want to vibe code exactly a data system that does this for this one thing. It can then be hyper-specialized. You kind of do this now with code generation, just time compilation for some aspects of queries. Some systems do that. Like Alice, Postgres, Umbra from the Germans. But, like, hyper-specialization and making that be sustainable might be a bigger research question going forward. So it's this, I don't know if it's a paradoxical kind of situation, but on the one hand, it's a bit of a stagnant industry right now in terms of evolution. At the same time, as we've hopefully established through the conversation, the layer itself is as important as ever, which is one of the reasons why your friend Larry Ellison is the…
He owns the Hawaiian Island, right? Always close to the richest man in the world, or was it? He was. As I say, he's back on the eighth. I mean, Oracle is, you know, a lot more than just a database company, but he's still the corporate. I mean, headquarters is in shape of a database. Yes, yes. Yes, yes, yes. But, like, if nothing else, that shows, like, the fundamental importance of databases in the... I would say, like, no one is trying to make a serious attempt to replace Linux, right? I mean, yes, there's niche operating systems for different environments, different hardware and things like that. But, like, no one's trying to build in a significant scale a replacement for Linux entirely. Like, for USB, that predates the BSD area from Berkeley that predates Linux, so that's why it's still around. But, like, for databases, there's always new ideas where people think they can do things better than others. So, like, I wouldn't say it's stagnant. I would just say that, like, a lot of the energy is going to be focused on postgres in the short term. And there are certain things we do to improve it.
But meanwhile, I still think there will be these sort of specialized engines. And I don't know what the next workload is. Again, it's not clear to me agentic workloads are significantly different, right, because they're modeling things that are how human design applications. Like the vector lookups, that's significantly different than what was in the past. You needed additional operators. You didn't need additional indexes to do those things. It's not clear whether – I don't know what the next thing is. But there will be something. There always is. So maybe to finish on that So the next five years So we don't know What that looks like But so in the meantime Does it mean the current company The ClickHouse of the world Just keep getting better and established Because the fundamental need exists And there's not a new wave Of smaller startups So when you say better though There's two notions about it It's like Can an existing query run faster Yes, ClickHouse has room for a permit We can improve that Other stuff is going to do the same thing But like I said the architecture, the high level of what ClickHouse is doing is similar to what Snowflake did in 2013.
Databricks is basically copying some of the existing ideas as well. Like everyone is kind of doing the same thing at least for analytics. And what really matters, and one of the things that Snowflake did right was part of the success, is like, it's the stuff around the data system. Like the user interface, developer experience, like building to ingest data, interoperate with other things. That part, they did really well. So it's almost like the things around the scaffolding of the foundational of a data management system, that actually matters a lot. And one of the things that ClickOuts is actually, you know, to me it's not research, but this is one of the things they are doing better over time. It helps expand the reach of what you can use the system for. So the core kernels of the system, like that certainly improved, but the fundamentals of what ClickOuts is doing versus other systems, the smallest level, they're pretty similar. But the stuff around it matters a lot. And I think ClickAuth does some things well, things can do better. Snowflake does some things well, can do things better. Same with Databricks and the other guys. Well, thanks for spending
time with us. Congrats on the new job that you also described in a rap analogy, right? What was it? It's like, when you look around the jewels of taking LP and Killer Mike, those guys were established on their own, you put them together, you know, it's like people putting peanut butter and jelly together for the first time, right? So, like, I like to think me and ClickHouse getting together is like that. Okay. Well, this is now, obviously, on the record, the most hip-hop reference-heavy episode of the Mad Podcast. I'm glad you found that in there, in the blog article. That was my... It wasn't a test. That was my... Because, you know, I wrote the blog article. I was floating it out there to see what ClickHouse would be okay with. I was going to even talk about Larry Ellison in there, but, like, you know, I want to see, like, hey, you know, like, if you get Andy, you're also getting other baggage. All right, Andy, this was fantastic. Thank you so much. Yes, thanks, Matt. Have a good time. Hi, it's Matt Turk again. Thanks for listening to this episode of the Mad Podcast.
If you enjoyed it, we'd be very grateful if you would consider subscribing if you haven't already or leaving a positive review or comment on whichever platform you're watching this or listening to this episode from. This really helps us build a podcast and get great guests. Thanks and see you on the next episode.
番組の概要欄(原文)
<p>AI agents are becoming the biggest users of databases: creating them, querying them, and sometimes deleting them. Andy Pavlo, Carnegie Mellon's database professor and now VP of Database Research at ClickHouse, explains what changes when billions of agents hit the data layer, and why most of the AI world's mental model of databases stopped at vector databases and RAG.</p><p><br /></p><p>Andy's CMU courses taught a generation of engineers (and, it turns out, the AI models); he writes the year-in-review on databases the whole industry reads; and this summer he joined ClickHouse to found ClickHouse Labs. We cover why vector databases were "just an index," what it means for an agent to create a database, why agents could mean 10 to 100x more queries, whether files or databases should hold an agent's memory, how text-to-SQL went from 60% to 99.5% accuracy, why 60% of open-source databases now have commits from coding agents, and what ten years of self-driving database research taught him. Plus ClickHouse, Postgres, the vector/graph/GPU database verdicts, Larry Ellison, and the Wu-Tang Clan.</p><p><br /></p><p>Disclosure: FirstMark, where Matt is a General Partner, is an investor in ClickHouse.</p><p><br /></p><p>(00:00) Cold open & Intro</p><p>(01:21) From vector databases and RAG to the age of agents</p><p>(04:09) Neon's stat: agents create 80% of databases?</p><p>(07:25) Why agents keep deleting production databases</p><p>(08:19) Guardrails: the toddler-and-stairs rule</p><p>(10:51) The four eras of database volume: 10–100x more queries</p><p>(15:10) Agent memory: files vs. databases ("everything is a database")</p><p>(18:24) Which database do AI models recommend? The new SEO</p><p>(19:25) "It cites me back to myself"</p><p>(23:14) MCP for databases, and text-to-SQL from 60% to 99.5%</p><p>(27:09) Trust an agent the way you'd trust a junior developer</p><p>(27:47) Can AI build an entire database? Opus 4 and the CMU projects</p><p>(29:57) 60% of open-source databases now have AI commits</p><p>(30:43) Ten years of self-driving databases, Peloton to today</p><p>(33:52) What LLMs changed: 85% of the tuning in 15 minutes</p><p>(35:42) Should anyone still study databases?</p><p>(38:27) Free CMU courses, the DJ, and the Wu-Tang final exam</p><p>(42:09) Why start a research lab inside ClickHouse?</p><p>(45:53) Why ClickHouse looked like vaporware in 2016</p><p>(47:46) What makes ClickHouse fast: columns, vectors, Snowflake's lineage</p><p>(52:22) Why Databricks, Snowflake and ClickHouse all added Postgres</p><p>(58:15) Vector, graph and GPU databases: thumbs up or down?</p><p>(1:08:34) Is the database market stagnant? "A cheetah on cocaine in a Ferrari"</p><p>(1:10:14) The relational model is arithmetic; SQL as the new assembly</p><p>(1:11:59) Larry Ellison, Linux, and why databases still matter</p>
出典・この記事について
- 番組
- The MAD Podcast: How AI Gets Built — with Matt Turck(Matt Turck)
- 元の回
- What Happens When Billions of AI Agents Hit Your Database? (Andy Pavlo)
- 配信日
- 要約作成日
- 公式サイト
- firstmark.com/events/data-driven
この要約・解説記事は、元の音声を文字起こしした内容をもとに AI(Claude)が日本語で作成したものです。 固有名詞や数値に誤りを含む場合があるため、正確な内容は元の音声でご確認ください。制作方法について
関連エピソード

Microsoft AI戦略の内側:GitHub、Copilot、Azure幹部3人に聞く(Ignite 2026)
The Neuron: AI Explained

Hugging Face事件が示すAIエージェント・スウォームの脅威(Connor Leahy氏)
Future of Life Institute Podcast

AIを戦略的優位に変えるには:Tempo Software CEO Vic Chynoweth の見解
AI Today Podcast

Warp、ソフトウェアファクトリーに賭ける(Changelog Interviews #693)
Changelog Master Feed

AIセキュリティに透明性が欠かせない理由 ― Red Hat CTO Chris Wright が語るオープンソースとエージェント保護
NVIDIA AI Podcast

NVIDIA Kumo:表形式データの基盤モデル――スタンフォード大学 Jure Leskovec 教授が語る
Super Data Science: ML & AI Podcast with Jon Krohn