Latest / Talk Python To Me / #562: DuckLake: The Lakehouse That's Just SQL and Parquet
Transcript
- 0:00Michael Kennedy: How many files does your query read before it reads any data?
- 0:03Michael Kennedy: On some data lakes, you go through JSON and metadata files first,
- 0:07Michael Kennedy: just to learn which Parquet files actually matter.
- 0:10Michael Kennedy: Duck Lake asks one SQL question instead.
- 0:13Michael Kennedy: The metadata lives in a real database.
- 0:15Michael Kennedy: The data stays in plain Parquet.
- 0:17Michael Kennedy: That's the entire format.
- 0:19Michael Kennedy: Pedro Holanda joined DuckDB in 2018,
- 0:23Michael Kennedy: and it was still a research prototype at CWI.
- 0:26Michael Kennedy: He's the lead Duck Lake developer.
- 0:28Michael Kennedy: And Guillermo Sanchez-Doinas works on DuckLake and the new Quack protocol.
- 0:33Michael Kennedy: With Quack as the catalog, DuckLake handles 200 transactions per second under heavy contention.
- 0:39Michael Kennedy: No other open table format even comes close.
- 0:42Michael Kennedy: This is Talk Python To Me, episode 562, recorded August 31st, 2026.
- 1:06Michael Kennedy: Welcome to Talk Python To Me, the number one Python podcast for developers and data scientists.
- 1:11Michael Kennedy: This is your host, Michael Kennedy. I'm a PSF fellow who's been coding for over 25 years.
- 1:17Michael Kennedy: Let's connect on social media.
- 1:18Michael Kennedy: You'll find me and Talk Python on Mastodon, Bluesky, and X.
- 1:22Michael Kennedy: The social links are all in your show notes.
- 1:24Michael Kennedy: You can find over 10 years of past episodes at talkpython.fm.
- 1:28Michael Kennedy: And if you want to be part of the show, you can join our recording live streams.
- 1:32Michael Kennedy: That's right.
- 1:32Michael Kennedy: We live stream the raw uncut version of each episode on YouTube.
- 1:36Michael Kennedy: Just visit talkpython.fm/youtube to see the schedule of upcoming events.
- 1:41Michael Kennedy: Be sure to subscribe there and press the bell so you'll get notified anytime we're recording.
- 1:45Michael Kennedy: This episode is brought to you by Six Feet Up, the Python and AI experts who solve hard
- 1:51Michael Kennedy: software problems.
- 1:52Michael Kennedy: Whether it's scaling an application, deriving insights from data, or getting results from
- 1:57Michael Kennedy: AI, Six Feet Up helps you move forward faster.
- 2:01Michael Kennedy: See what's possible with Six Feet Up.
- 2:03Michael Kennedy: Visit talkpython.fm/sixfeetup.
- 2:06Michael Kennedy: And it's brought to you by us.
- 2:08Michael Kennedy: Talk Python and Python Bytes both now have MCP servers.
- 2:12Michael Kennedy: Point your AI at 10 plus years of Python episodes, transcripts, and show notes.
- 2:17Michael Kennedy: Free.
- 2:17Michael Kennedy: Click MCP in the nav at talkpython.fm and at Python Bytes.
- 2:22Michael Kennedy: Guys, welcome to the show.
- 2:24Michael Kennedy: Awesome to have you here.
- 2:25Pedro Holanda: Yeah, awesome to be here.
- 2:27Pedro Holanda: Absolutely a pleasure.
- 2:28Michael Kennedy: It is a pleasure.
- 2:30Michael Kennedy: I'm a big fan of databases.
- 2:31Michael Kennedy: I think databases unlock so much potential for software and also data science, especially,
- 2:39Michael Kennedy: you know, talking DuckDB side of things.
- 2:41Michael Kennedy: But once you really get good with databases, you can just answer questions so well, so quickly.
- 2:47Michael Kennedy: And honestly, it kind of makes the other side of programming easy.
- 2:51Michael Kennedy: So I'm interested to see what you all are doing with Duck Lake, do some refreshers on DuckDB and all of these things.
- 2:59Michael Kennedy: Let's roll.
- 3:00Michael Kennedy: Let's do it.
- 3:01Michael Kennedy: Let's roll.
- 3:02Michael Kennedy: All right.
- 3:02Michael Kennedy: Well, Pedro, let's have you kick us off.
- 3:05Michael Kennedy: Before we get into that, just to give everyone a bit about your background, introduce yourself.
- 3:09Pedro Holanda: All right.
- 3:10Pedro Holanda: So, well, my name is Pedro.
- 3:13Pedro Holanda: I came to the Netherlands, I think, about nine years ago
- 3:17Pedro Holanda: to do my PhD in the Database Architectures Group at CWI.
- 3:22Pedro Holanda: This is also where I met both Hannes and Mark,
- 3:24Pedro Holanda: who are the co-creators of DuckDB.
- 3:27Pedro Holanda: I actually used to live together with Mark,
- 3:30Pedro Holanda: and Hannes was also my co-supervisor,
- 3:34Pedro Holanda: so the connection has been there pre-DuckDB, in a way.
- 3:38Pedro Holanda: And yeah, I did my PhD at CWI and towards the end of my PhD, I had already finished it.
- 3:45Pedro Holanda: The book was already being printed.
- 3:47Pedro Holanda: I still have six or nine months to go.
- 3:49Pedro Holanda: So I just came to market and was like, hey, you guys have this cool research prototype.
- 3:54Pedro Holanda: Can I do something in it?
- 3:56Pedro Holanda: And basically start nerding out about it and be having tons of fun since then.
- 4:03Pedro Holanda: Funny enough, one of the first things I did in DuckDB, I think this is 2018, maybe, like literally the first month that I was in was the CSV reader.
- 4:12Pedro Holanda: And I came back to it a few years later.
- 4:15Pedro Holanda: And I'm actually currently working on something that's CSV reader as well.
- 4:18Pedro Holanda: So it's my true passion, I guess.
- 4:21Michael Kennedy: You were born to work on CSV.
- 4:24Pedro Holanda: It seems.
- 4:26Pedro Holanda: It's also known as the unsexiest database problem.
- 4:29Pedro Holanda: But what can I say?
- 4:31Michael Kennedy: Well, I think it's a subset of the unsexiest data science problem, but also the biggest is the data wrangling, plant cleaning, all that kind of stuff.
- 4:41Michael Kennedy: And CSV is a fairly raw format that doesn't actually communicate a lot of stuff about what types it actually intends that column to be and so on.
- 4:49Pedro Holanda: The challenge, of course, not only being efficient about it, but also it's a pretty crazy lens.
- 4:55Pedro Holanda: I call it like the Wild West of data formats.
- 4:58Pedro Holanda: So being able to actually read these things, it's challenging.
- 5:02Pedro Holanda: And I guess, well, also the main reason I've been invited to here
- 5:07Pedro Holanda: is because I've also been working in Duck Lake for the past year.
- 5:11Pedro Holanda: Oh, yeah, that.
- 5:13Pedro Holanda: I'll dare to say that I'm currently the main Duck Lake developer
- 5:17Pedro Holanda: from our team as well for the past year.
- 5:19Pedro Holanda: So I might know a little bit about it.
- 5:22Michael Kennedy: Yeah, that is actually why I invited you.
- 5:24Michael Kennedy: I mean, CSPs are interesting, don't get me wrong.
- 5:27Pedro Holanda: I have a plan of having CSV files replacing parquet in Duck Lake, and then that's a big comeback, you know?
- 5:33Michael Kennedy: Oh, yeah.
- 5:34Michael Kennedy: Just zipped up compressed CSV.
- 5:39Michael Kennedy: Just give it a new extension.
- 5:40Michael Kennedy: Nobody will know.
- 5:41Pedro Holanda: Yeah, exactly.
- 5:42Pedro Holanda: Exactly.
- 5:43Michael Kennedy: So it sounds like you were there from early, early days with DuckDB.
- 5:48Michael Kennedy: Did it come out of the university there, or was it a project after?
- 5:54Pedro Holanda: So it came out from CWI.
- 5:56Pedro Holanda: CWA is not actually a university.
- 5:58Pedro Holanda: It's, in fact, a research center.
- 6:01Pedro Holanda: So this is also kind of a fun thing.
- 6:02Pedro Holanda: If you're doing a PhD there,
- 6:04Pedro Holanda: you need to also be affiliated to a university to get a diploma.
- 6:07Pedro Holanda: But you don't really step on the university.
- 6:08Pedro Holanda: You just stay at the research center.
- 6:10Pedro Holanda: But the story goes that we had a bunch of projects
- 6:15Pedro Holanda: with different companies as well during our PhD.
- 6:17Pedro Holanda: So I was working with Honda.
- 6:19Pedro Holanda: Mark was working with Dottis too.
- 6:20Pedro Holanda: And these were more like data science-y projects.
- 6:23Pedro Holanda: And one thing that was very clear to us,
- 6:25Pedro Holanda: And Hundes also had a lot of influence in the R community.
- 6:29Pedro Holanda: And I think that one thing that was clear to everyone
- 6:31Pedro Holanda: was that everyone was trying to run away
- 6:34Pedro Holanda: from database systems, right?
- 6:35Pedro Holanda: Like you would see people using data wrangling tools,
- 6:38Pedro Holanda: data frame tools, things like that,
- 6:40Pedro Holanda: but no one wanted to use a Postgres
- 6:42Pedro Holanda: or things like similar to that.
- 6:44Pedro Holanda: So I think like Mark and Hundes noticed that gap,
- 6:47Pedro Holanda: noticed that like,
- 6:47Pedro Holanda: why are people not using database systems
- 6:50Pedro Holanda: and started talking to these data scientists
- 6:52Pedro Holanda: and quickly realized there was a lot of frustration
- 6:54Pedro Holanda: in setting things up, running queries.
- 6:56Pedro Holanda: Like I remember that during my PhD,
- 7:00Pedro Holanda: anything that I wanted to do with like MonitDB
- 7:01Pedro Holanda: or Postgres would take me just like a day
- 7:03Pedro Holanda: to build things from the sources
- 7:06Pedro Holanda: and set up a database system.
- 7:07Pedro Holanda: And we might take it for granted nowadays
- 7:09Pedro Holanda: that you can just like bootstuckDB up in half a second
- 7:13Pedro Holanda: and in one line you are querying something.
- 7:15Pedro Holanda: But yeah, like 10 years ago or nine years ago,
- 7:19Pedro Holanda: this was very much not the reality.
- 7:21Pedro Holanda: So they realized the gap
- 7:22Pedro Holanda: and started doing this research database system,
- 7:25Pedro Holanda: let's say, more of like, yeah, towards academia.
- 7:29Pedro Holanda: And I think at some point they had the realization
- 7:31Pedro Holanda: that a lot of people were taking it quite seriously.
- 7:34Pedro Holanda: And a lot of people were already trying it.
- 7:38Pedro Holanda: This is also the funny thing.
- 7:40Pedro Holanda: People try things in production,
- 7:41Pedro Holanda: even though it's not yet to release.
- 7:44Pedro Holanda: Same thing with DuckLake.
- 7:45Pedro Holanda: We had people use it in production
- 7:47Pedro Holanda: before DuckLake 1.0.
- 7:48Pedro Holanda: And I was always like, cool, cool, cool.
- 7:51Pedro Holanda: What could go wrong?
- 7:53Pedro Holanda: So they basically realized...
- 7:54Michael Kennedy: Yeah, but when you see things that are exciting,
- 7:56Michael Kennedy: you're like, this is going to solve our problem, right?
- 7:59Michael Kennedy: It's a good sign you're onto something.
- 8:01Pedro Holanda: No, no, absolutely.
- 8:02Pedro Holanda: I think they were super excited about it
- 8:06Pedro Holanda: when having this realization.
- 8:08Pedro Holanda: And same thing for us with Duck Lake.
- 8:10Pedro Holanda: It was like, okay, people are taking this seriously enough
- 8:13Pedro Holanda: that they're starting to bet their company on it.
- 8:15Pedro Holanda: So that's cool, definitely.
- 8:18Pedro Holanda: Always a little bit scary, but cool.
- 8:20Pedro Holanda: And yeah, from that on, I think it just took off.
- 8:23Pedro Holanda: Initially, I think it was just the three of us, like Mark and Hannes as the creators.
- 8:28Pedro Holanda: And I was kind of like the first person to be hired.
- 8:30Pedro Holanda: But then it quickly expanded.
- 8:32Pedro Holanda: I think in the first year, we're like six people.
- 8:35Pedro Holanda: We're now, I think, 35 maybe.
- 8:39Pedro Holanda: So yeah, it has been quite a journey.
- 8:41Michael Kennedy: Very exciting.
- 8:42Michael Kennedy: It's cool to see it gaining traction.
- 8:44Michael Kennedy: Now, quickly here, you also worked on progressive indexes.
- 8:49Michael Kennedy: Is this for your dissertation?
- 8:51Pedro Holanda: If I'm being honest, my plan was to actually work on CSV files during my P2D,
- 8:56Pedro Holanda: but I was told that was a solved problem.
- 8:59Pedro Holanda: So I went something else, which was progressive indexes.
- 9:04Pedro Holanda: The basic gist of progressive indexes is that you can create an index while
- 9:08Pedro Holanda: curing the data instead of creating up front and having the downtime and whatnot.
- 9:14Pedro Holanda: But it's actually quite difficult to implement it in practice in the database system.
- 9:19Pedro Holanda: So in my thesis, I even have a chapter called The Elephants in the Room, where I basically
- 9:23Pedro Holanda: diss all my work.
- 9:25Pedro Holanda: Now, I point out why it's complicated to implement in production and things that I would personally
- 9:30Pedro Holanda: look into if I wanted to still continue in that direction.
- 9:34Pedro Holanda: But it was also quite a fun journey.
- 9:36Pedro Holanda: And then you have the image of the website, and there's my little cover.
- 9:41Pedro Holanda: And my little cover is like a tree eating all these database systems and growing from
- 9:45Pedro Holanda: a little tree to a bigger tree.
- 9:48Michael Kennedy: It is, isn't it?
- 9:49Michael Kennedy: Very cool.
- 9:51Michael Kennedy: Guillermo, how about you?
- 9:52Michael Kennedy: Welcome to the show.
- 9:53Guillermo Sanchez Dionis: Yes.
- 9:54Guillermo Sanchez Dionis: Thanks, Michael.
- 9:55Guillermo Sanchez Dionis: My background is a little bit different from Pedro.
- 9:57Guillermo Sanchez Dionis: I actually was working as a software and data engineer for quite a while before I joined
- 10:02Guillermo Sanchez Dionis: Activity.
- 10:03Guillermo Sanchez Dionis: And actually, I come from the experience of running some of these beefy systems.
- 10:09Guillermo Sanchez Dionis: I think Pedro mentioned the Monet TV or Postgres, but also the BigQuery, Statorix, Snowflakes,
- 10:15Guillermo Sanchez Dionis: which is like, let's say, a second generation kind of system
- 10:18Guillermo Sanchez Dionis: where the experience is quite good, but the cost is quite expensive.
- 10:23Guillermo Sanchez Dionis: And, I mean, one of the things actually that prompted me to join MDD
- 10:29Guillermo Sanchez Dionis: was that Tag Lake was released, actually.
- 10:31Guillermo Sanchez Dionis: And I listened to this podcast that announced Tag Lake with Hannes and Mark.
- 10:39Guillermo Sanchez Dionis: And, yeah, just a lot of it really resonated with what I thought was maybe
- 10:45Guillermo Sanchez Dionis: slightly wrong from other OpenTable formats.
- 10:50Guillermo Sanchez Dionis: I just really like the simplicity of it.
- 10:51Guillermo Sanchez Dionis: I was a fan of DuckDB for quite a while now
- 10:54Guillermo Sanchez Dionis: because if you're interested in reducing the cost of your stack,
- 10:57Guillermo Sanchez Dionis: it was probably the best tool out there by far.
- 11:00Guillermo Sanchez Dionis: So then I actually wrote an email to Hannes and Mark directly,
- 11:04Guillermo Sanchez Dionis: saying like, hey, I want to work with you guys.
- 11:07Guillermo Sanchez Dionis: Yeah, I initially joined as a DevRel, actually,
- 11:10Guillermo Sanchez Dionis: and then got ready to work in DuckLake together with Pedro.
- 11:14Guillermo Sanchez Dionis: But then as time evolved, I became like this kind of like hybrid role where I was a bit of like doing product management things.
- 11:21Guillermo Sanchez Dionis: And also I contribute to Daclex sometimes and also to Quack, which is our new client server protocol.
- 11:26Guillermo Sanchez Dionis: So we're not only embedded anymore.
- 11:29Guillermo Sanchez Dionis: But yeah, so that's kind of the history of how I got to Daclabs.
- 11:34Michael Kennedy: Yeah. If someone reaches out to you and says, I heard you talk about this and I believe in your mission.
- 11:38Michael Kennedy: Yeah, that's a pretty big endorsement.
- 11:40Michael Kennedy: So I can see why they're like, yeah, you have to come work for us.
- 11:42Guillermo Sanchez Dionis: Yeah, for sure.
- 11:43Guillermo Sanchez Dionis: I mean, I literally told them, like, I'm quitting my job.
- 11:47Guillermo Sanchez Dionis: I want to work with you, you know?
- 11:48Guillermo Sanchez Dionis: I think it's actually pretty cool what you're doing.
- 11:51Michael Kennedy: Hadoop, it's done to me.
- 11:52Michael Kennedy: Spark, never.
- 11:54Guillermo Sanchez Dionis: No, I was already kind of, I think, done with those technologies.
- 11:58Guillermo Sanchez Dionis: Because the things that, for example, if you have Databricks as a platform, right?
- 12:04Guillermo Sanchez Dionis: Like, it's such a large thing that, for sure, they give you, like, a lot of, like, nice services.
- 12:09Guillermo Sanchez Dionis: Like, you don't have to worry about things.
- 12:11Guillermo Sanchez Dionis: And it's serverless.
- 12:12Guillermo Sanchez Dionis: but it's also so expensive.
- 12:13Guillermo Sanchez Dionis: And I was thinking like,
- 12:14Guillermo Sanchez Dionis: there's so much better things out there
- 12:17Guillermo Sanchez Dionis: that you can do,
- 12:18Guillermo Sanchez Dionis: that you can run yourself, right?
- 12:20Guillermo Sanchez Dionis: Like if you're interested in this,
- 12:21Guillermo Sanchez Dionis: this is like DacLig and DacDB feel like
- 12:23Guillermo Sanchez Dionis: foundational things that you can run any software on.
- 12:27Guillermo Sanchez Dionis: And I think this got me really excited.
- 12:29Michael Kennedy: You know, in software and deploying systems
- 12:32Michael Kennedy: and database,
- 12:33Michael Kennedy: there's these things that just layer and layer
- 12:35Michael Kennedy: until they just get so complicated.
- 12:38Michael Kennedy: And then there's always this alternative,
- 12:39Michael Kennedy: like, well, what if we just did a simple thing?
- 12:41Michael Kennedy: You know, if we could just make it not so complicated, would it still be working?
- 12:45Michael Kennedy: If it did, how amazing would that be?
- 12:47Michael Kennedy: So when you say cost, are we talking like operational costs, licensing costs?
- 12:52Michael Kennedy: You know, do I need a large cluster of machines so there's always a quorum to vote on different things for durability?
- 13:00Michael Kennedy: Or what do you mean by cost?
- 13:02Guillermo Sanchez Dionis: I mean, cost is actually, let's say, the service cost that, for example, platforms like Databricks or Snowflake, you know, charge you to use infrastructure that they run, right?
- 13:14Guillermo Sanchez Dionis: Because obviously Snowflake and Databricks, they run on AWS or Google Cloud, depending.
- 13:18Guillermo Sanchez Dionis: You can even choose your deployment type.
- 13:20Guillermo Sanchez Dionis: But obviously, because they provide the service, but they still have to pay for the infrastructure.
- 13:24Guillermo Sanchez Dionis: The service is basically something on top of that infrastructure.
- 13:27Guillermo Sanchez Dionis: And they decide how much it is, basically.
- 13:30Guillermo Sanchez Dionis: And because they're pretty much the bigger players in the market together with existing cloud vendors like GCP, AWS and Azure, they charge quite steep.
- 13:41Guillermo Sanchez Dionis: And I mean, of course, like the service is nice.
- 13:44Guillermo Sanchez Dionis: Like you don't have to worry about things, right?
- 13:46Guillermo Sanchez Dionis: You don't have to worry about downtime and all these things.
- 13:48Guillermo Sanchez Dionis: And for sure, they handle the replication and everything that you need.
- 13:52Guillermo Sanchez Dionis: But still, though, yeah, if you want control over your stack, this is like a very high level of abstraction that they are offering.
- 14:01Michael Kennedy: Yeah.
- 14:02Michael Kennedy: You also mentioned open table formats, and that's going to become relevant to our Duck Lake side of things.
- 14:09Michael Kennedy: More generally, what are open table formats?
- 14:11Guillermo Sanchez Dionis: Yeah.
- 14:12Guillermo Sanchez Dionis: So, I mean, they used to be called open table formats.
- 14:15Guillermo Sanchez Dionis: And then I think people are leaning more towards this lake house format name, which I'm not sure why.
- 14:23Guillermo Sanchez Dionis: I think it's actually maybe because of data rigs, because I think they started calling it the lake house.
- 14:28Guillermo Sanchez Dionis: And then everybody's like, yeah, the lake house.
- 14:31Guillermo Sanchez Dionis: But yeah, OpenTable formats are basically, I think Pedro correct me if I'm wrong,
- 14:36Guillermo Sanchez Dionis: but it's basically just some metadata on some parquet files that you can query in a transactional manner.
- 14:45Guillermo Sanchez Dionis: And you can do operations also, atomic operations on this data as well.
- 14:50Guillermo Sanchez Dionis: In the most basic case, it's just basically a pointer,
- 14:55Guillermo Sanchez Dionis: sorry, a metadata file with a pointer to a list of files
- 14:59Guillermo Sanchez Dionis: that all of those files form part of a table.
- 15:03Guillermo Sanchez Dionis: And you can also have things like a schema to it,
- 15:06Guillermo Sanchez Dionis: like what data types do you expect from this table?
- 15:09Guillermo Sanchez Dionis: And you can add more complex things like statistics,
- 15:11Guillermo Sanchez Dionis: like, you know, which files contain which data.
- 15:16Guillermo Sanchez Dionis: And it can get obviously a lot more complex than that,
- 15:18Guillermo Sanchez Dionis: but that's sort of the basics, I think.
- 15:20Pedro Holanda: Yeah, and I think like the interesting thing
- 15:23Pedro Holanda: of the OpenTable formats is, of course,
- 15:26Pedro Holanda: the openness part of it, right?
- 15:27Pedro Holanda: So they have a specification,
- 15:29Pedro Holanda: the file formats where your data is stored,
- 15:31Pedro Holanda: they also have a specification.
- 15:33Pedro Holanda: So by just reading the specification,
- 15:35Pedro Holanda: anyone should be able to implement a reader
- 15:38Pedro Holanda: and writer to that format, right?
- 15:39Pedro Holanda: So the whole idea of this, or maybe the beauty of this,
- 15:43Pedro Holanda: is that it should be able to solve the problem
- 15:46Pedro Holanda: where you're locked in into a certain system, right?
- 15:49Pedro Holanda: So you suddenly don't need,
- 15:51Pedro Holanda: like if you start off your database from Oracle, for example,
- 15:54Pedro Holanda: you're kind of locked in.
- 15:56Pedro Holanda: Like doing an Oracle migration is known to be painful,
- 15:59Pedro Holanda: to be costly, so you're going to be using,
- 16:01Pedro Holanda: you're going to be giving Larry Edson a second island in Hawaii
- 16:04Pedro Holanda: in the next few years, that's fine.
- 16:07Pedro Holanda: But then if you actually use an open table formats, you kind of solve that problem, right?
- 16:11Pedro Holanda: It's like you can literally switch from different engines and different providers.
- 16:15Pedro Holanda: And if you're tired of Databricks and now you want to use NoFlake or now you want to use your own solution based on DuckDB, you can theoretically quickly jump from these, right?
- 16:25Pedro Holanda: And it's also super scalable because if you're just dealing with file formats or like a catalog as well, but your data is in parquet files, you can easily distribute your reads on it.
- 16:38Pedro Holanda: So there's quite some cleverness behind it.
- 16:43Michael Kennedy: This portion of Talk Python To Me is brought to you by Six Feet Up.
- 16:46Michael Kennedy: Let me ask you a question.
- 16:48Michael Kennedy: What's stopping you?
- 16:49Michael Kennedy: Maybe it's an application that won't scale or an AI initiative that just isn't delivering.
- 16:54Michael Kennedy: That's where Six Feet Up comes in.
- 16:56Michael Kennedy: With deep expertise in Python and AI, they solve hard software problems,
- 17:02Michael Kennedy: modernize platforms, and get teams to market faster.
- 17:05Michael Kennedy: These folks have been doing Python since version one.
- 17:07Michael Kennedy: They know the frameworks and ecosystems like the back of their hands.
- 17:11Michael Kennedy: Six Feet Up's impact speaks for itself.
- 17:14Michael Kennedy: Automated healthcare pipelines for hospitals, helping NASA explore Pluto,
- 17:18Michael Kennedy: building severe weather prediction tools,
- 17:20Michael Kennedy: and applying AI to connect farmers with vital crop data.
- 17:24Michael Kennedy: When the stakes are high and the problems are hard,
- 17:26Michael Kennedy: Six Feet Up is the partner that delivers.
- 17:29Michael Kennedy: See what's possible with Six Feet Up.
- 17:31Michael Kennedy: Visit talkpython.fm/sixfeetup.
- 17:34Michael Kennedy: The link is on the episode page and in your podcast player's show notes.
- 17:37Michael Kennedy: Thanks to Six Feet Up for sponsoring the show.
- 17:40Michael Kennedy: The examples I've seen are like a whole bunch of Parquet files
- 17:44Michael Kennedy: on S3 or Azure Blob Storage or something like that.
- 17:47Michael Kennedy: And then some other file may be also stored there.
- 17:50Michael Kennedy: that you can say, well, let's read the metadata file
- 17:53Michael Kennedy: that describes what files are here.
- 17:55Michael Kennedy: But I mean, your dream could be back.
- 17:57Michael Kennedy: It could be zipped up CSV files stored up there
- 18:00Michael Kennedy: with some metadata, right?
- 18:02Pedro Holanda: So of course in Duck Lake,
- 18:04Pedro Holanda: so maybe one quick thing is that Iceberg,
- 18:07Pedro Holanda: which is, I guess, the other main open table formats,
- 18:10Pedro Holanda: it uses files all over, right?
- 18:12Pedro Holanda: So you have your files in the metadata
- 18:15Pedro Holanda: and then your files that actually store the data.
- 18:18Pedro Holanda: In Duck Lake, we'll talk a bit more about this.
- 18:20Pedro Holanda: but the metadata is actually a database system
- 18:23Pedro Holanda: and your files are still parquet files.
- 18:25Pedro Holanda: So there's nothing stopping us from a technical point of view
- 18:28Pedro Holanda: to actually replacing these files with CSV files.
- 18:31Pedro Holanda: From the Duck Lake spec, that's actually already allowed
- 18:34Pedro Holanda: because we can store in the catalog that these are CSV files
- 18:38Pedro Holanda: and we could theoretically bring the stats necessary.
- 18:41Pedro Holanda: So it is an achievable dream.
- 18:44Michael Kennedy: Exactly. The dream of the CSVs are still alive.
- 18:48Michael Kennedy: All right, really quickly.
- 18:49Michael Kennedy: I don't know I'm on the CSV kick, but what's the largest CSV you've ever parsed?
- 18:54Pedro Holanda: Oof.
- 18:55Pedro Holanda: Personally, I think I've reached close to a terabytes on benchmarks.
- 19:02Pedro Holanda: But I've seen people, like, you know, people, they, there were many times in CSV land there
- 19:07Pedro Holanda: was like, yeah, this sounds like a rather reasonable limitation.
- 19:11Pedro Holanda: No one's ever going to do something.
- 19:13Pedro Holanda: I think I had a limitation, for example, that no one would ever have a line in a CSV file
- 19:17Pedro Holanda: that was over 32 megabytes.
- 19:19Pedro Holanda: And that was kind of nice for me to be able to do parallelism.
- 19:22Pedro Holanda: And then, of course, some guy,
- 19:24Pedro Holanda: hey, this CSV is throwing an error for me now,
- 19:28Pedro Holanda: saying that my line is over 32 megabytes.
- 19:30Pedro Holanda: I'm like, Jesus Christ, man.
- 19:32Michael Kennedy: What are they storing in there?
- 19:33Michael Kennedy: Like a book per line?
- 19:36Pedro Holanda: Yeah.
- 19:37Pedro Holanda: So if I've done a terabyte,
- 19:40Pedro Holanda: I think some people have gone a bit crazier.
- 19:43Michael Kennedy: Let's jump into our topic here a bit.
- 19:45Michael Kennedy: And I want to work our way, sort of do a little bit of talking about DuckDB.
- 19:50Michael Kennedy: And you talked about Quack.
- 19:54Michael Kennedy: In the early days, DuckDB was an embedded database.
- 19:58Michael Kennedy: You know, the most common one of these is SQLite.
- 20:01Michael Kennedy: And Postgres is all the rage, obviously.
- 20:04Michael Kennedy: Others as well.
- 20:04Michael Kennedy: But Postgres certainly seems to be taking over a lot of the database side of things.
- 20:09Michael Kennedy: But I think there's still a bit of a resurgence of embedded databases.
- 20:13Michael Kennedy: And I think DuckDB is an example of that interest, right?
- 20:17Michael Kennedy: So maybe just you guys give me your thoughts on SQLite
- 20:21Michael Kennedy: and some of these other embedded database ideas.
- 20:23Guillermo Sanchez Dionis: I just wanted to mention that I think Pedro can give more research background on this,
- 20:30Guillermo Sanchez Dionis: but I think from a user perspective,
- 20:31Guillermo Sanchez Dionis: I think the idea of having your database within your application system
- 20:35Guillermo Sanchez Dionis: was always very attractive to me, right?
- 20:37Guillermo Sanchez Dionis: I think Pedro mentioned this at the beginning.
- 20:39Guillermo Sanchez Dionis: It's very nice to not have to provision a Postgres database.
- 20:43Guillermo Sanchez Dionis: or any other type of database on a separate server to run your application.
- 20:48Guillermo Sanchez Dionis: And I think SQL lights off this wonderfully.
- 20:50Guillermo Sanchez Dionis: And of course, when DuckDB came by,
- 20:53Guillermo Sanchez Dionis: it was also with the idea to solve this from an analytical database perspective.
- 20:57Guillermo Sanchez Dionis: But of course, DuckDB can also do transactions, right?
- 20:59Guillermo Sanchez Dionis: Pedro can talk about it if he wants.
- 21:01Guillermo Sanchez Dionis: But this is also very nice, right?
- 21:03Guillermo Sanchez Dionis: But you can still run transactions in DuckDB.
- 21:05Guillermo Sanchez Dionis: But overall, I would just be very happy with the idea
- 21:09Guillermo Sanchez Dionis: of being able to embed your database system wherever your application is.
- 21:12Guillermo Sanchez Dionis: because I think there's a lot of use cases where this is just good enough.
- 21:15Guillermo Sanchez Dionis: And actually, one of the coolest use cases I think that DuckDB brings to the table
- 21:20Guillermo Sanchez Dionis: is the fact that you can use a Wasm client in the browser
- 21:23Guillermo Sanchez Dionis: and serve your database over S3,
- 21:27Guillermo Sanchez Dionis: and literally there's no server,
- 21:28Guillermo Sanchez Dionis: and you have an application that can query data from your browser.
- 21:32Guillermo Sanchez Dionis: And I think that's amazing, right?
- 21:33Guillermo Sanchez Dionis: It reduces the costs completely,
- 21:36Guillermo Sanchez Dionis: because S3 storage is very, very cheap.
- 21:38Michael Kennedy: That's really incredible.
- 21:40Michael Kennedy: There's just so much operational simplicity if you can make these things work, right?
- 21:45Michael Kennedy: If you make these embedded databases work, right?
- 21:47Michael Kennedy: It's just like, wow, there's nothing to go down.
- 21:50Michael Kennedy: There's no like, oh, this server needs that security.
- 21:55Michael Kennedy: But then, you know, it's all those things to juggle, right?
- 21:58Michael Kennedy: Just it's a file.
- 22:00Pedro Holanda: It's in process.
- 22:01Pedro Holanda: You end up eliminating like a lot of this complexity of keeping a server for sure.
- 22:06Pedro Holanda: And there are other beauties to it as well, right?
- 22:09Pedro Holanda: because you suddenly have your database running within your application.
- 22:14Pedro Holanda: So it also can share the same memory space of your application.
- 22:18Pedro Holanda: So you can do a bunch of tricks to avoid copying memory all over.
- 22:23Pedro Holanda: So this is especially interesting for data science projects
- 22:26Pedro Holanda: because if you're using something like Pandas or NumPy,
- 22:30Pedro Holanda: what is a NumPy array?
- 22:31Pedro Holanda: It's literally a C array with some makeup on top.
- 22:34Pedro Holanda: What is a DuckDB vector is literally an array with some makeup on top.
- 22:39Pedro Holanda: So you can just change the makeup and then you can suddenly access the same data with constant cost, right?
- 22:45Pedro Holanda: You don't have to transform actual data.
- 22:46Michael Kennedy: Oh, that's interesting.
- 22:47Michael Kennedy: So when you do a query, you may be able to just return a piece of the in-memory WDB chunk instead of going,
- 22:55Michael Kennedy: okay, ours looks like this, but then we're going to copy a million floats over to this thing in this column and then send it back, right?
- 23:01Pedro Holanda: So this is what was also like one of the things that was one of the realizations that database protocols, right?
- 23:08Pedro Holanda: So the way you transfer data from the server to the clients, they're actually quite slow.
- 23:13Pedro Holanda: So this is one of the main frustrations we had seen with the data scientists.
- 23:17Pedro Holanda: It's not only like, oh, it's clumsy to set it up and you'd like to start a server and create schemas and whatnot,
- 23:23Pedro Holanda: but it's also just to get your data from your NumPy or TensorFlow or Pandas or whatever you're running into the database system and back and forth was super slow.
- 23:33Pedro Holanda: So you completely remove that boundary.
- 23:38Pedro Holanda: And yeah, like you gain all these benefits, which is inspired and very similar to what
- 23:42Pedro Holanda: SQLite already had.
- 23:44Pedro Holanda: But of course, with the difference that there's a huge focus on analytics.
- 23:48Pedro Holanda: So it's a color format instead of a row format.
- 23:51Pedro Holanda: There's a lot of emphasis in compression and vectorized execution and so on.
- 23:55Michael Kennedy: I think probably people out there listening, they're like, wait a minute, columnar, row
- 23:59Michael Kennedy: format, what does this mean?
- 24:01Michael Kennedy: Yeah.
- 24:02Michael Kennedy: Give us a bit more detail there.
- 24:03Pedro Holanda: Absolutely.
- 24:04Pedro Holanda: So, well, there's basically two ways that you can store there, right?
- 24:08Pedro Holanda: So your data is a table.
- 24:10Pedro Holanda: Say that is a, I don't know, a table that sells products, right?
- 24:13Pedro Holanda: So you have products, quantity in your shop and price.
- 24:17Pedro Holanda: One of the ways you can store exactly in your memory is contiguous row by row, right?
- 24:22Pedro Holanda: So you store first the first row, then the second row, so on and so forth.
- 24:26Pedro Holanda: However, analytical queries, they're usually of the type of, give me the average price of all your products.
- 24:33Pedro Holanda: So in practice, even though you have three columns, you only really want to access one column, right?
- 24:38Pedro Holanda: So on the color formats, you actually store both in memory and on your storage, the columns first contiguously.
- 24:46Pedro Holanda: So if you want to access one column, you don't have to read basically all your table,
- 24:50Pedro Holanda: but you know exactly from your memory or your disk
- 24:53Pedro Holanda: where you have to read just to access that column.
- 24:57Pedro Holanda: And the other nice benefits from that
- 24:59Pedro Holanda: is that lightweight compression is heavily dependent
- 25:02Pedro Holanda: on the proximity of your data, right?
- 25:05Pedro Holanda: So it's much easier, for example,
- 25:06Pedro Holanda: to compress one column of dates.
- 25:09Pedro Holanda: You can maybe do like delta compression quite easily
- 25:11Pedro Holanda: because dates tend to be the same for a long time
- 25:13Pedro Holanda: and then they just change one by one.
- 25:15Pedro Holanda: They have to do that if it's in a row, right?
- 25:17Pedro Holanda: Because the next value of a row is not going to be a date.
- 25:20Pedro Holanda: it's going to be a double or it's going to be a string or whatever it is.
- 25:24Pedro Holanda: So this change in formats allows you to access your data much faster
- 25:29Pedro Holanda: with the disadvantage that if you want to update one of your rows,
- 25:34Pedro Holanda: it's a bit more expensive, right?
- 25:36Pedro Holanda: Because again, if you have the row formats
- 25:37Pedro Holanda: and you want to now update the price of your Volkswagen cars or whatever,
- 25:43Pedro Holanda: you just need to fetch that one tuple and you immediately can update that.
- 25:47Pedro Holanda: So it's one random accessing kind of done.
- 25:50Pedro Holanda: If you are on a color format, you're first going to have to check that one whole column to figure out where are your Volkswagen cars and then go to another part of your data to figure out where the price is and update that value.
- 26:02Pedro Holanda: So it's a bit more costly.
- 26:04Pedro Holanda: And that's why people say that SQLite is good for transactions and transactions in the sense that it updates one row every now and then.
- 26:10Pedro Holanda: And DuckDB is great for analytics, which is, again, this type of query that reads huge checks of your data, but like fewer columns instead of lots of columns.
- 26:21Michael Kennedy: That's a really good explanation.
- 26:22Michael Kennedy: Yeah, I can just see if you want to query, you know, take the average of all of the prices.
- 26:29Michael Kennedy: You've got these rows.
- 26:29Michael Kennedy: You basically got to seek over every row through the entire database to get those things.
- 26:35Michael Kennedy: And if you have a varchar sort of thing, then it's even harder because you're not even skipping known links.
- 26:41Michael Kennedy: You've got to compute, well, okay, where is the price in this particular row?
- 26:46Michael Kennedy: And it's just very different.
- 26:47Pedro Holanda: And maybe just to add, the color format also allows you to do vectorized query execution.
- 26:54Pedro Holanda: The basic idea of vectorized query execution is that you can actually have batches of your data going through your query plan in one go, right?
- 27:04Pedro Holanda: unless you have a pipeline breaker,
- 27:06Pedro Holanda: like a join or something like this.
- 27:07Pedro Holanda: But usually you can go through the whole query in one go.
- 27:10Pedro Holanda: And because you have these batches are sufficiently small,
- 27:13Pedro Holanda: they just get cached on your CPU
- 27:15Pedro Holanda: and then you don't have to constantly go through memory
- 27:18Pedro Holanda: to fetch the data anymore.
- 27:19Pedro Holanda: While in a tuple-wise execution,
- 27:22Pedro Holanda: which is like what SQLite does,
- 27:24Pedro Holanda: and it was created more like when memory was small,
- 27:26Pedro Holanda: so you wanted to just have a little bit of your data in memory,
- 27:29Pedro Holanda: like from the 90s.
- 27:31Pedro Holanda: You just go and execute through the query plan,
- 27:34Pedro Holanda: tuple by tuple, right?
- 27:35Pedro Holanda: So this caused a bunch of cache misses.
- 27:37Pedro Holanda: You frequently have to go to memory
- 27:38Pedro Holanda: to fetch the next tuple and so on.
- 27:40Pedro Holanda: So that also allows that extra step
- 27:42Pedro Holanda: that makes a huge difference
- 27:44Pedro Holanda: in analytical performance.
- 27:46Michael Kennedy: It's funny.
- 27:47Michael Kennedy: It used to be things were optimized
- 27:49Michael Kennedy: because memory was expensive
- 27:51Michael Kennedy: in terms of it was scarce, right?
- 27:53Michael Kennedy: It was hard to get enough memory
- 27:55Michael Kennedy: to handle all the data
- 27:56Michael Kennedy: that you're working with in the 90s.
- 27:58Michael Kennedy: And people have heard of like third normal form
- 28:01Michael Kennedy: and normalization.
- 28:01Michael Kennedy: all of this is we must not waste the memory, right?
- 28:06Michael Kennedy: I mean, other reasons as well,
- 28:07Michael Kennedy: but still we must not waste the memory.
- 28:09Michael Kennedy: And then it got kind of cheap.
- 28:10Michael Kennedy: We were able to use it.
- 28:11Michael Kennedy: And now with AI, we're back to memory is scarce again.
- 28:14Michael Kennedy: How about that?
- 28:16Pedro Holanda: It's actually for databases,
- 28:17Pedro Holanda: the cycle has started a bit earlier
- 28:20Pedro Holanda: because I think like in the mid 2000s,
- 28:22Pedro Holanda: there was like, oh, we don't need disk.
- 28:24Pedro Holanda: We can have our database.
- 28:26Pedro Holanda: It was the in-memory database systems, right?
- 28:27Pedro Holanda: Just everything in memory and it's all good.
- 28:30Pedro Holanda: And then you can map,
- 28:31Pedro Holanda: Like just let the OS handle whatever needs to go to disk every now and then.
- 28:34Pedro Holanda: But it's going to be good.
- 28:36Pedro Holanda: And the reality is that in this, memory has increased drastically.
- 28:40Pedro Holanda: But there's still lots of limitations.
- 28:42Pedro Holanda: Maybe you want to run things on your phone or like in an Arduino or something like this.
- 28:47Pedro Holanda: And that's also inductive view.
- 28:48Pedro Holanda: We put a lot of emphasis in having proper buffer managers.
- 28:51Pedro Holanda: And like all our operators built to disk as well.
- 28:54Pedro Holanda: So even in scenarios that you still have memory constraints, the tool will just work.
- 28:59Pedro Holanda: Like it's not going to crash.
- 29:00Pedro Holanda: They'd be like, oh yeah, there's no memory buy.
- 29:02Pedro Holanda: Because that's also a little bit frustrating.
- 29:04Michael Kennedy: It definitely is.
- 29:05Michael Kennedy: And just the problems people are trying to solve.
- 29:07Michael Kennedy: It's like, yeah, we have 10 terabytes of data.
- 29:10Michael Kennedy: Oh, we didn't used to have that much data typically.
- 29:13Guillermo Sanchez Dionis: That actually one of the parts that I love the most about our website is we have like
- 29:18Guillermo Sanchez Dionis: this series of blog posts that run on exotic hardware.
- 29:22Guillermo Sanchez Dionis: And basically, you know, this can be a Raspberry Pi, but it can also be an iPhone, right?
- 29:26Guillermo Sanchez Dionis: And we try to push it to see where's the limit.
- 29:29Guillermo Sanchez Dionis: there's this very nice image of an iPhone cooling down in a block of ice
- 29:34Guillermo Sanchez Dionis: because we're running the scale factor.
- 29:36Guillermo Sanchez Dionis: I don't know if it's 100 or even one terabyte on an iPhone 15.
- 29:40Guillermo Sanchez Dionis: Yeah, so I think that's also a very cool thing about DacTV,
- 29:43Guillermo Sanchez Dionis: that it truly can run anywhere
- 29:45Guillermo Sanchez Dionis: and that it doesn't matter what constraints it has,
- 29:47Guillermo Sanchez Dionis: it can still run queries with this out-of-core processing
- 29:51Guillermo Sanchez Dionis: that it has and the ability to spill to these.
- 29:54Michael Kennedy: This portion of Talk Python To Me is brought to you by our AI tools.
- 29:57Michael Kennedy: You know that thing where you ask an AI something about Python and it confidently tells you
- 30:02Michael Kennedy: about a library version from 18 months ago?
- 30:05Michael Kennedy: Well, we fixed that, at least for our shows.
- 30:07Michael Kennedy: Talk Python and Python Bytes both have MCP servers now.
- 30:11Michael Kennedy: Connect Talk Python and your AI can search over 550 episodes, full transcripts,
- 30:17Michael Kennedy: every guest in the entire course catalog.
- 30:19Michael Kennedy: Connect Python Bytes and you get almost 500 episodes of Python news going back to 2026,
- 30:25Michael Kennedy: including every link we've ever put in the show notes.
- 30:28Michael Kennedy: That means you can say things like,
- 30:30Michael Kennedy: ask Talk Python what astral joining OpenAI means for uv,
- 30:34Michael Kennedy: or what has Python Bytes said about uv?
- 30:37Michael Kennedy: And get real answers with real links, not hallucination.
- 30:40Michael Kennedy: Name the show in your prompt,
- 30:41Michael Kennedy: and your AI knows exactly where to look.
- 30:44Michael Kennedy: And if you live in the terminal,
- 30:46Michael Kennedy: Talk Python also has a CLI too.
- 30:48Michael Kennedy: One line, uvtoolinstalltalk-python-cli,
- 30:53Michael Kennedy: and then search episodes, transcripts, guests, and courses without ever opening a browser.
- 30:58Michael Kennedy: It's open source, and it outputs text, JSON, and Markdown,
- 31:01Michael Kennedy: so it feeds the AI tools that don't speak MCP yet.
- 31:05Michael Kennedy: And here's the real reason I built it.
- 31:07Michael Kennedy: Both shows cover around 10 years of Python history.
- 31:10Michael Kennedy: The people, the decisions, the packages that took over, and the ones that quietly didn't.
- 31:16Michael Kennedy: This enhanced access is free.
- 31:18Michael Kennedy: No account, no API key, nothing to buy.
- 31:21Michael Kennedy: This history should belong to all of us.
- 31:24Michael Kennedy: Visit talkpython.fm and Python Bytes
- 31:27Michael Kennedy: and click the MCP link in the nav bar.
- 31:29Michael Kennedy: Connect them right now to your agents
- 31:31Michael Kennedy: so that they'll be accessible anytime you need them in the future.
- 31:35Michael Kennedy: There's also some stuff that's been happening
- 31:37Michael Kennedy: to make running these as real backends for apps better.
- 31:42Michael Kennedy: On the SQLite side, we've got the wall or the write-ahead log
- 31:46Michael Kennedy: that allows you to have a lot less locking.
- 31:49Michael Kennedy: We've got Lightstream, which will basically build on top of that and stream constant replication to an S3 bucket.
- 31:57Michael Kennedy: What's the story with DuckDB on that kind of stuff?
- 31:59Michael Kennedy: I mean, you talked about Quack.
- 32:01Michael Kennedy: That sort of DuckDB gets to be a little bit more grown up and distributed, right?
- 32:05Guillermo Sanchez Dionis: Yeah, I mean, for sure.
- 32:08Guillermo Sanchez Dionis: I think the DuckDB experience was always very nice to run on a laptop, right?
- 32:13Guillermo Sanchez Dionis: or to basically if you wanted to run an ETL pipeline,
- 32:17Guillermo Sanchez Dionis: let's say, on an EC2 machine,
- 32:20Guillermo Sanchez Dionis: DacDB was a great tool.
- 32:22Guillermo Sanchez Dionis: But I think at least with the original DacDB file formats,
- 32:27Guillermo Sanchez Dionis: there was this sort of limitation around, you know,
- 32:31Guillermo Sanchez Dionis: one writer grabbing the log over the file
- 32:33Guillermo Sanchez Dionis: and then no readers can connect to it.
- 32:36Guillermo Sanchez Dionis: And I think that is not a limitation, of course,
- 32:39Guillermo Sanchez Dionis: if you're running DacDB in your laptop,
- 32:41Guillermo Sanchez Dionis: But it is a limitation if you want to share a DAGDB storage with a broader audience.
- 32:48Guillermo Sanchez Dionis: Quack, indeed, is something that solves this problem, right?
- 32:53Guillermo Sanchez Dionis: But then that means, of course, that you go into the client server kind of architecture.
- 32:57Guillermo Sanchez Dionis: I think SQLite does this a little bit different, where even on a single machine with a single file,
- 33:04Guillermo Sanchez Dionis: you can still have writers and readers at the same time.
- 33:08Guillermo Sanchez Dionis: But correct me if I'm wrong, I'm not sure about this.
- 33:11Guillermo Sanchez Dionis: putting you on the spot.
- 33:13Guillermo Sanchez Dionis: You're not a SQLite expert.
- 33:16Michael Kennedy: I think so with the
- 33:17Michael Kennedy: I think with the writer headlock, it does
- 33:19Michael Kennedy: log rather. I think it does
- 33:21Michael Kennedy: allow multiple writers
- 33:23Michael Kennedy: to different parts of the database,
- 33:25Michael Kennedy: but there's still some locking.
- 33:27Guillermo Sanchez Dionis: We have the same. We also have a writer headlock,
- 33:29Guillermo Sanchez Dionis: but probably they have a different mechanism
- 33:31Guillermo Sanchez Dionis: that allows for multiple writers at the same time.
- 33:34Guillermo Sanchez Dionis: I mean, DictDB does have like these
- 33:36Guillermo Sanchez Dionis: you know, within one
- 33:37Guillermo Sanchez Dionis: single process
- 33:39Guillermo Sanchez Dionis: you can still have multiple child connections
- 33:43Guillermo Sanchez Dionis: right into the same database as well.
- 33:44Guillermo Sanchez Dionis: I think the problem is if you try to access that G from a different process,
- 33:48Guillermo Sanchez Dionis: then that's where the lock-in mechanism triggers.
- 33:51Guillermo Sanchez Dionis: But yeah, indeed, Quack is a good solution for this,
- 33:55Guillermo Sanchez Dionis: but it goes more into this client-server recipe again.
- 33:59Michael Kennedy: So if I'm using Quack, do I host my backend with you all at Mother Duck
- 34:04Michael Kennedy: in some sort of cloud situation?
- 34:06Michael Kennedy: Do I self-host some backend piece to make this possible?
- 34:10Michael Kennedy: What's the story?
- 34:10Guillermo Sanchez Dionis: You can host it anywhere you like, actually.
- 34:13Guillermo Sanchez Dionis: I mean, also the nice thing about it being DuckDV is it's extremely simple to use, right?
- 34:17Guillermo Sanchez Dionis: So if you want to try it out, you'd go to a terminal, you basically type install quack, load quack.
- 34:25Guillermo Sanchez Dionis: And then the next thing that you do is you call a function called quack serve.
- 34:29Guillermo Sanchez Dionis: And that will already spin up a server for you, right?
- 34:31Guillermo Sanchez Dionis: And then from another terminal client, you could just go in, connect to this specific address in your local host, and then you already have a client-server protocol working.
- 34:41Guillermo Sanchez Dionis: Which, if you compare it to, again, traditional systems like Postgres, it's extremely simple.
- 34:47Guillermo Sanchez Dionis: And obviously, in a more production-grade scenario, you host this on EC2, and then maybe you need something like a load balancer on top of that.
- 34:55Guillermo Sanchez Dionis: Because also the nice thing about Quack is it runs on modern HTTPS.
- 35:01Guillermo Sanchez Dionis: So it's also very nice.
- 35:02Guillermo Sanchez Dionis: You don't need to reinvent a protocol yourself on top of TCP.
- 35:06Guillermo Sanchez Dionis: It's just plain old HTTP.
- 35:08Guillermo Sanchez Dionis: So yeah, I think it's relatively simple to still get something up and running on the cloud and get it to work.
- 35:16Guillermo Sanchez Dionis: Yeah, it's a very nice foundation, I think, for a client-server architecture.
- 35:20Michael Kennedy: I like how you all keep it playful as well, you know, with quack and ducks.
- 35:23Michael Kennedy: And, you know, it could be now you're going to create a database provider factory,
- 35:29Michael Kennedy: and the factory is going to get the provider.
- 35:31Michael Kennedy: then the provider is going to, you know, just like, you know, I don't know.
- 35:34Guillermo Sanchez Dionis: Yeah, actually, very funny story about this, now that you bring this up,
- 35:37Guillermo Sanchez Dionis: is that it was called Quack at the beginning, right?
- 35:39Guillermo Sanchez Dionis: This was Hannes' idea.
- 35:41Guillermo Sanchez Dionis: And then someone within the company mentioned like,
- 35:44Guillermo Sanchez Dionis: oh, shouldn't we call this a little bit more of a straightforward name,
- 35:48Guillermo Sanchez Dionis: like, you know, RPC protocol or something like that?
- 35:53Guillermo Sanchez Dionis: And then both me and Gabor, which is the main dev world in the team,
- 35:58Guillermo Sanchez Dionis: we said like, no, no, no way.
- 35:59Guillermo Sanchez Dionis: It has to be called Quack.
- 36:01Guillermo Sanchez Dionis: Quack is too good to pass on.
- 36:02Guillermo Sanchez Dionis: We cannot pass on these names so good.
- 36:04Michael Kennedy: I mean, the branding is great.
- 36:05Michael Kennedy: You hear Quack, you're like, oh, that's got to be DuckDB, right?
- 36:08Michael Kennedy: Like no one else is going to take the Quack protocol and get away with it.
- 36:13Michael Kennedy: All right.
- 36:14Michael Kennedy: Let's talk about Duck Lake.
- 36:20Michael Kennedy: So, yeah, let's talk Duck Lake.
- 36:21Michael Kennedy: I think it's a really interesting project.
- 36:25Michael Kennedy: It's not a direct follow-on.
- 36:27Michael Kennedy: It's not just a more distributed DuckDB, right?
- 36:30Michael Kennedy: This is a bigger idea.
- 36:32Pedro Holanda: Yeah.
- 36:33Pedro Holanda: So the basic gist of Duck Lake is that I think Mark and Hannah were already looking at data lakes for a while because we had been getting lots of requests for support for Iceberg.
- 36:46Pedro Holanda: And I think they were already seeing that having the metadata in files was just not as efficient, right?
- 36:55Pedro Holanda: Like you suddenly have to do so many hoops on these files to get to your data.
- 36:59Pedro Holanda: the more snapshots you have,
- 37:01Pedro Holanda: because maybe researching tons of small files,
- 37:04Pedro Holanda: there's a small file problem, right?
- 37:05Pedro Holanda: Like we all have heard about this.
- 37:07Pedro Holanda: If you've been around data lakes,
- 37:09Pedro Holanda: it's that basically if you have lots of small insertions,
- 37:12Pedro Holanda: like in a streaming fashion, for example,
- 37:14Pedro Holanda: you create so much of these metadata files
- 37:16Pedro Holanda: that it's hard to get to your actual data.
- 37:19Pedro Holanda: So I don't know, I guess as database researchers and engineers,
- 37:25Pedro Holanda: they were like, well, why is this not just a database?
- 37:28Pedro Holanda: So I actually have it somewhere here.
- 37:30Pedro Holanda: Oh, easy to pick this time.
- 37:32Pedro Holanda: This was the initial idea they had.
- 37:34Pedro Holanda: So here you can see like all the files, right?
- 37:37Pedro Holanda: So they're like, why can't it just be like a database?
- 37:39Pedro Holanda: And there's already like a database here on the top
- 37:42Pedro Holanda: because in the end, they needed like a database
- 37:43Pedro Holanda: to get a pointer for the latest metadata file.
- 37:46Pedro Holanda: So what if we just put this all in the database
- 37:49Pedro Holanda: and then I made them sign for me
- 37:51Pedro Holanda: in case this was a very successful idea.
- 37:53Pedro Holanda: So if anyone wants to buy this, it's for sale
- 37:56Pedro Holanda: or for the rights price.
- 37:58Pedro Holanda: so that was the basic gist right because having this whole metadata in the database you can just
- 38:03Pedro Holanda: query with sql anyone can easily see a schema and write sql over it so just specify the schema of
- 38:12Pedro Holanda: these tables that hold all this information the metadata and you could you could then have
- 38:16Pedro Holanda: something that's more efficient and simpler right because i think for iceberg you have json you have
- 38:23Pedro Holanda: Avro, you might have
- 38:25Pedro Holanda: some other file formats
- 38:28Pedro Holanda: that I'm not, just to store
- 38:29Pedro Holanda: like the metadata, so just to
- 38:31Pedro Holanda: be able to read this format, you need
- 38:33Pedro Holanda: like three or four different file
- 38:36Pedro Holanda: format readers, and then you need to hoop
- 38:37Pedro Holanda: through all of these, and with Duck Lake
- 38:39Pedro Holanda: it's simply like, okay, go to
- 38:41Pedro Holanda: the catalog, ask the catalog, which files
- 38:43Pedro Holanda: do I have to read to read my table at a certain
- 38:45Pedro Holanda: snapshots, you have the list of files and
- 38:47Pedro Holanda: you read them, so there's
- 38:49Pedro Holanda: the simplicity factor. Nice, I think
- 38:51Michael Kennedy: maybe the place, the way to make this clear to folks is let's maybe talk through the architecture
- 38:59Michael Kennedy: of these data lakes in general, but also the duck lake specific version, you know, and I know a lot
- 39:05Michael Kennedy: of people haven't worked with these necessarily worked with databases, they've worked with APIs,
- 39:09Michael Kennedy: and they've worked with storage like S3. But the general idea, I guess maybe the iceberg
- 39:16Michael Kennedy: original idea was, well, what if we could just use all of S3 for scaling? Like think how scalable
- 39:22Michael Kennedy: that is. And we just put a bunch of files all over the place, like a bunch of parquet files.
- 39:26Michael Kennedy: Well, you need something to gather them together if you can do a query across them. So we'll put a
- 39:30Michael Kennedy: metadata file up there as well. But then the problem is, well, I'm going to do a query. So it's a
- 39:35Michael Kennedy: S3 request to the metadata. And then you parse that. Maybe you got to get some more metadata.
- 39:40Michael Kennedy: Then you go to the file. It's just a lot of back and forth. And Pedro, that's what you're talking
- 39:43Michael Kennedy: about where you're like, well, what if a lot of that back and forth could just be in a database?
- 39:48Pedro Holanda: And then you finally get to the data, right? Exactly. And I think, sure, there's something
- 39:53Pedro Holanda: to be said that if you just have your files on S3, you can theoretically scale this indefinitely,
- 39:58Pedro Holanda: right? Because you could have bazillion readers reading at the same time, that's fine. But with
- 40:04Pedro Holanda: database systems, well, I would say that the point you have to scale is much lower. A database like
- 40:11Pedro Holanda: DuckDB can make use of a small piece of hardware quite drastically,
- 40:16Pedro Holanda: but it's also you have distributed database systems, right?
- 40:19Pedro Holanda: So the only restrictions for the catalog is that I think it needs to have
- 40:26Pedro Holanda: timestamp, varchar, and integer types and use primary keys.
- 40:30Pedro Holanda: So any system that has this for can theoretically be a catalog for DuckLake.
- 40:35Pedro Holanda: So I do believe that there's also potential for hyperscading there
- 40:40Pedro Holanda: or the case where your metadata is really that big.
- 40:43Pedro Holanda: And again, this is not about the size of your data, right?
- 40:45Pedro Holanda: It's the size of your metadata.
- 40:47Michael Kennedy: Right, just here are the tables,
- 40:50Michael Kennedy: here's the elements, here are the stored.
- 40:51Michael Kennedy: You know, it's worth maybe emphasizing
- 40:54Michael Kennedy: that scalability, something that's highly scalable,
- 40:57Michael Kennedy: doesn't mean it's fast.
- 40:59Michael Kennedy: It just means as you add many, many more users
- 41:02Michael Kennedy: or amounts of data to it, it doesn't get slower.
- 41:05Michael Kennedy: But it could have been kind of slow from the start.
- 41:07Michael Kennedy: You know what I mean?
- 41:08Michael Kennedy: Like 12 back and forths across S3s,
- 41:11Michael Kennedy: even for one query,
- 41:12Michael Kennedy: is still slow if you don't have a ton of data,
- 41:14Michael Kennedy: but maybe it's consistent
- 41:16Michael Kennedy: as you add a million more, right?
- 41:19Michael Kennedy: So there's that worth considering.
- 41:20Michael Kennedy: It's like performance for one thing versus scale.
- 41:24Pedro Holanda: Absolutely.
- 41:25Pedro Holanda: But as you think, again,
- 41:27Pedro Holanda: that from the catalog side,
- 41:28Pedro Holanda: the scalability of Duck Lake
- 41:31Pedro Holanda: doesn't necessarily have to suffer.
- 41:33Pedro Holanda: Like you have options.
- 41:33Pedro Holanda: No, no, no, no.
- 41:34Pedro Holanda: Yeah, absolutely.
- 41:35Michael Kennedy: I'm not suggesting it does.
- 41:37Michael Kennedy: I'm just saying like,
- 41:37Michael Kennedy: Okay, I built a scalable system, like, great, but it was slow from the start.
- 41:41Michael Kennedy: So, like, it doesn't...
- 41:41Michael Kennedy: Yeah, yeah, absolutely.
- 41:42Michael Kennedy: You know what I mean?
- 41:43Michael Kennedy: All right, so basically the architecture looks like this.
- 41:45Michael Kennedy: There's three core elements.
- 41:47Michael Kennedy: There's storage, there's catalog services, and there's compute.
- 41:52Michael Kennedy: Who wants to break that down for people?
- 41:54Guillermo Sanchez Dionis: Yeah, so, I mean, basically the storage can be, as you mentioned before, anything that is object storage, like S3 or Blob of Storage.
- 42:04Guillermo Sanchez Dionis: Usually, you know, people go for options that are cloud hosted, of course, like S3, GCS, or Azure Blob Storage.
- 42:13Guillermo Sanchez Dionis: And that's where the parquet files lead in the case of DuckLake and nothing else because we don't have any metadata files.
- 42:22Guillermo Sanchez Dionis: Then you have the catalog service, which you can theoretically run in anything that is BigSQL.
- 42:27Guillermo Sanchez Dionis: Well, the DuckDB extension of DuckLake, right, which is basically our implementation of a reader and a writer for DuckLake, can speak to MySQL, Postgres, SQLite, and of course, DuckDB and Quack.
- 42:43Guillermo Sanchez Dionis: Because they're not exactly the same, right?
- 42:45Guillermo Sanchez Dionis: One lives next to you, the other one lives in any remote server that you want it to be.
- 42:50Guillermo Sanchez Dionis: And this catalog service is what contains all of the metadata regarding these parquet files that leave in object storage.
- 42:57Guillermo Sanchez Dionis: so basically then the third component which in this case is the compute right and indeed it can
- 43:02Guillermo Sanchez Dionis: be anything it can be spark or it can be dactdb and of course any anything that supports this
- 43:09Guillermo Sanchez Dionis: format and then the only thing that they need to do in order to query for example some tables right
- 43:14Guillermo Sanchez Dionis: is they they make some sql queries against the catalog service right and the catalog service
- 43:20Guillermo Sanchez Dionis: returns something like a list of files for example and some statistics regarding those files so that
- 43:26Guillermo Sanchez Dionis: the reader knows what it needs to read, basically.
- 43:30Guillermo Sanchez Dionis: And I think this is very nice, actually, because you just need one query, actually, in order
- 43:36Guillermo Sanchez Dionis: to retrieve all of the information that you need to query these parquet files.
- 43:40Guillermo Sanchez Dionis: And I think this is the big, powerful thing about Tag Lake is that we designed it with
- 43:46Guillermo Sanchez Dionis: pretty much Iceberg and Delta in our heads, right?
- 43:48Guillermo Sanchez Dionis: Where usually there's more than one roundtrip, taking more than one file just to figure out
- 43:53Guillermo Sanchez Dionis: which parquet files you need to read.
- 43:54Guillermo Sanchez Dionis: In our case, it's just one SQL query.
- 43:56Guillermo Sanchez Dionis: I think that that is basically what collapses the complexity quite a bit for engines that are trying to read this format or write to this format.
- 44:05Michael Kennedy: Yeah, you can do database things like join or something if you need to, right?
- 44:09Guillermo Sanchez Dionis: Yeah, I mean, indeed, actually, like one of the things that is very interesting about Iceberg and Delta is that because they grew backwards, they started to think about operations in a different way, right?
- 44:20Guillermo Sanchez Dionis: Like you were mentioning, for example, you know, at the beginning, it was just writing some parquet files and some metadata that points to them.
- 44:26Guillermo Sanchez Dionis: But then at some point, they wanted to do acid operations on this data, right?
- 44:32Guillermo Sanchez Dionis: And then you need to give some sort of guarantees.
- 44:34Guillermo Sanchez Dionis: And to give those guarantees, they built this very complex structure of metadata files and manifest lists and manifest files.
- 44:42Guillermo Sanchez Dionis: When for us at Obesity is just basically, you know, if you're writing to a table, right?
- 44:47Guillermo Sanchez Dionis: And then, yeah, you're basically raising another transaction.
- 44:51Guillermo Sanchez Dionis: You can just see whether the other transaction succeeded or not, right?
- 44:54Guillermo Sanchez Dionis: It's just something that is built into your catalog service.
- 44:58Guillermo Sanchez Dionis: So for us, we didn't have to build any ACID.
- 45:01Guillermo Sanchez Dionis: It was built into the design, basically, because the catalog service is a SQL database that already supports ACID transactions.
- 45:07Guillermo Sanchez Dionis: So, yeah, I think that was also an extremely nice thing about DuckLake from the get-go.
- 45:12Michael Kennedy: Yeah, absolutely.
- 45:13Michael Kennedy: Now, whoever wants to take this, give us a sense of the size of these parquet files.
- 45:19Michael Kennedy: I know when I created Datalake, I've got a bunch of different parquet files.
- 45:23Michael Kennedy: I've got a database catalog that will tell me, okay, if I have this type of query, go look at these three.
- 45:27Michael Kennedy: But are these five kilobytes, five megabytes, five gigabytes?
- 45:31Michael Kennedy: What are we talking?
- 45:32Guillermo Sanchez Dionis: Well, you decide the size, basically, right?
- 45:35Guillermo Sanchez Dionis: You can say that the target file size is something like 512 megabytes.
- 45:40Guillermo Sanchez Dionis: And if you're doing batch operations on your data, so batch writing, like Taglic will respect that you write 512 megabytes files with certain row group sites.
- 45:52Guillermo Sanchez Dionis: Of course, if you do very small operations on your data where you do very small writes, then you may have, if you don't have data inlining on, which is a feature that maybe we will discuss later, you will have very small files.
- 46:04Guillermo Sanchez Dionis: And then what happens usually in Lakehouse or OpenTable formats is that you have some sort of compaction functions that the engine offers that allow you to compact these very small files into bigger files so that, you know, engines can scale reading better, right?
- 46:21Guillermo Sanchez Dionis: Because engines don't like to read 1,000 5-kilobyte files.
- 46:25Guillermo Sanchez Dionis: They prefer to read, you know, half a gigabyte file that you can still parallelize, by the way.
- 46:30Michael Kennedy: Yeah, okay.
- 46:30Michael Kennedy: That makes a lot of sense, I guess.
- 46:32Michael Kennedy: The smaller they get, the more you're paying the cost of the latency round trip than the actual reading.
- 46:39Michael Kennedy: Now, operationally, transferring data is fast on S3 and friends, but it can start to get expensive if you have too much traffic there.
- 46:47Michael Kennedy: Do you recommend running this maybe inside of a data center where you have within the data center traffic to your data storage?
- 46:57Michael Kennedy: Or what does that look like?
- 46:58Guillermo Sanchez Dionis: I think Pedro is the expert on reading from object storage.
- 47:02Guillermo Sanchez Dionis: He has a ton of that in the last one.
- 47:05Pedro Holanda: I think the typical setup is that people use like an S3 EC2 kind of instance, right?
- 47:11Pedro Holanda: So you have an RBS.
- 47:14Pedro Holanda: So in the end, you can definitely have this separate.
- 47:20Pedro Holanda: I think that's the usual way that people run.
- 47:23Michael Kennedy: Yeah, that's what I would imagine.
- 47:24Michael Kennedy: or DigitalOcean servers with spaces or anything.
- 47:29Michael Kennedy: It could probably talk to anything that talks S3,
- 47:31Michael Kennedy: I would imagine, right?
- 47:32Michael Kennedy: Yes, absolutely.
- 47:34Michael Kennedy: Yeah.
- 47:34Michael Kennedy: Okay.
- 47:35Michael Kennedy: Now, I'm back.
- 47:36Michael Kennedy: We've got different ways to set this up.
- 47:40Michael Kennedy: Oh, sorry.
- 47:40Michael Kennedy: Before we move on, there was a third piece.
- 47:43Michael Kennedy: There's storage, there's the catalog,
- 47:45Michael Kennedy: and then there's compute.
- 47:46Michael Kennedy: What's the story with compute?
- 47:48Michael Kennedy: Like, what kind of stuff am I computing, right?
- 47:50Pedro Holanda: Yeah, absolutely.
- 47:52Pedro Holanda: theoretically, you can use anything that reads Parquet files to perform the computation, right?
- 47:59Pedro Holanda: As Guillermo says, in the end, if you have your catalog running, you just have to issue the
- 48:03Pedro Holanda: correct queries. The queries will basically tell you, read these files to answer the query you want
- 48:08Pedro Holanda: to answer. And you can use any kind of tool that is capable of reading these files. I think that
- 48:15Pedro Holanda: most people just use DeckDB. And there's also like a Data Fusion extension that's quite
- 48:22Pedro Holanda: evolves already.
- 48:24Pedro Holanda: But I'm not sure if there's like a Spark
- 48:26Pedro Holanda: proper implementation of
- 48:29Pedro Holanda: the Spark. Maybe Guillermo knows.
- 48:31Guillermo Sanchez Dionis: There is a
- 48:33Guillermo Sanchez Dionis: Spark writer, I think
- 48:34Guillermo Sanchez Dionis: specifically, that was
- 48:36Guillermo Sanchez Dionis: developed by MotherDuck because
- 48:38Guillermo Sanchez Dionis: some of their customers were using Spark for ETL
- 48:41Guillermo Sanchez Dionis: so they thought that it would make sense
- 48:42Guillermo Sanchez Dionis: to have a Spark writer
- 48:44Guillermo Sanchez Dionis: into Duck Lake. I see.
- 48:46Pedro Holanda: So the basic gist is that you can
- 48:49Pedro Holanda: actually use any engine
- 48:50Pedro Holanda: you want as long as you have like these pieces properly built.
- 48:55Michael Kennedy: Nice.
- 48:55Michael Kennedy: And then you've got some Python code or whatever code that talks to that.
- 49:00Michael Kennedy: I have this question.
- 49:01Michael Kennedy: Go figure it out.
- 49:02Michael Kennedy: Yeah, exactly.
- 49:03Michael Kennedy: Okay.
- 49:03Michael Kennedy: Now, there's different setups here.
- 49:05Michael Kennedy: I would imagine the most common setup is probably Postgres as your catalog and storage as Parquet
- 49:12Michael Kennedy: files, though.
- 49:13Michael Kennedy: Hat tip to compress CSVs.
- 49:16Michael Kennedy: Postgres and Parquet somewhere.
- 49:19Michael Kennedy: But you can also do, it's partly why I jumped on this, you can do SQLite as your catalog,
- 49:24Michael Kennedy: or you could, which is in-process, and same with the in-process DuckDB,
- 49:28Michael Kennedy: or even Wermos quack backend that's distributed, right?
- 49:32Michael Kennedy: Like maybe talk about these different options.
- 49:35Michael Kennedy: When do you recommend which?
- 49:36Pedro Holanda: So I would say that a lot of people also use DuckDB as an in-process solution
- 49:41Pedro Holanda: to either develop their own data lake on their own machine,
- 49:45Pedro Holanda: but I think also a lot of people have been using with their favorites,
- 49:48Pedro Holanda: clanker just to store the data also in the local lake house formats.
- 49:53Pedro Holanda: But if you're using DuckDB specifically, it also means that as DuckDB works, like Guillermo
- 49:59Pedro Holanda: said before, is that you can only have one writer connected at a time, right?
- 50:03Pedro Holanda: So you cannot have multiple people connected to the data lake and writing if the DuckDB
- 50:08Pedro Holanda: is your catalog.
- 50:09Pedro Holanda: So I would say in production, what I've seen is that indeed most people use Postgres because
- 50:15Pedro Holanda: it takes that limitation away.
- 50:18Pedro Holanda: So you suddenly can operate with it
- 50:20Pedro Holanda: in a way that people are more accustomed to using.
- 50:25Pedro Holanda: And of course, Quack is still experimental.
- 50:28Pedro Holanda: I think we're going to have the first stable release
- 50:31Pedro Holanda: with DuckDB 2.0, like in a month and a half.
- 50:34Pedro Holanda: But Quack already works with DuckLake as well,
- 50:37Pedro Holanda: but don't run that in production right now, people.
- 50:40Pedro Holanda: Wait a little bit longer.
- 50:42Pedro Holanda: But it's also quite cool
- 50:43Pedro Holanda: because, for example, when using Postgres,
- 50:47Pedro Holanda: one of the problems that we face
- 50:48Pedro Holanda: is that if there is a conflict on your snapshot ID,
- 50:51Pedro Holanda: like you're doing multiple transactions on the same table,
- 50:53Pedro Holanda: every time you have the conflicts,
- 50:54Pedro Holanda: you have to return to the application from the database
- 50:57Pedro Holanda: and say, hey, there's a conflict,
- 50:59Pedro Holanda: recalculate your snapshot ID, some other things,
- 51:01Pedro Holanda: and send the queries to me again.
- 51:03Pedro Holanda: So you have this round tripping
- 51:05Pedro Holanda: and that actually creates quite a big cost on retrials.
- 51:09Pedro Holanda: But with Quack, because it's just DuckDB,
- 51:12Pedro Holanda: what we can do is that we load DuckLake on the Quark server,
- 51:16Pedro Holanda: and then we can immediately do the retrials in the server,
- 51:19Pedro Holanda: avoiding this process, right?
- 51:21Pedro Holanda: So to give you an idea, if you have Postgres as your catalog,
- 51:25Pedro Holanda: I think in a very contentious environment with, I don't know,
- 51:29Pedro Holanda: like 20 writers, you have something like five transactions a second
- 51:33Pedro Holanda: because of this retrial cost.
- 51:35Pedro Holanda: But if you're using DuckDB and Quark, it's like 200 transactions a second
- 51:39Pedro Holanda: because the retrials are now running on the server.
- 51:42Pedro Holanda: So, yeah, my expectation is that as time goes on, Quark will be the de facto catalog for Dark Lake.
- 51:50Guillermo Sanchez Dionis: Maybe something to add to that is that, you know, I think Lakehouse formats, they were never designed for transactional workloads in the first place, right?
- 51:59Guillermo Sanchez Dionis: But something that we realized quite early together with Pedro is that, you know, actually we should flag that Tag Lake is actually better at doing these transactional workloads because it's one of the selling points, right?
- 52:12Guillermo Sanchez Dionis: And already with the Postgres setup, we were doing quite okay in transactional workloads versus, you know, TagDB also doing transactional workloads against Iceberg.
- 52:25Guillermo Sanchez Dionis: And with what Pedro implemented, server-side retrials in Quack, which could theoretically also be done in a way in Postgres.
- 52:32Guillermo Sanchez Dionis: We will see if that happens or not.
- 52:35Guillermo Sanchez Dionis: It's actually very, very powerful to the point where 200 transactions per second in a high-contention environment is almost unheard of for any other open table format.
- 52:46Guillermo Sanchez Dionis: Because these open table formats are designed for batch processing.
- 52:49Guillermo Sanchez Dionis: right? It's just you write once to a table, very large chunk of data, but they're not really
- 52:55Pedro Holanda: thought for like transactional loads or streaming data, things like that. I think the joke was that
- 53:01Pedro Holanda: if you wanted to buy something, use your Bitcoin, right? It took like 30 seconds because it could
- 53:05Pedro Holanda: only do two transactions and then iceberg was even slower than that, right? So yeah, it is a bit
- 53:12Pedro Holanda: heard of and uh just maybe to compliment uh what guillermo said it's indeed uh possible to have
- 53:19Pedro Holanda: something similar to postgres the main reason i haven't done it yet is because of course we cannot
- 53:23Pedro Holanda: do this trick of loading duck lake uh in a postgres server however we could theoretically do stored
- 53:29Pedro Holanda: procedures but i haven't done a stored procedure since college so that's why i've been uh going
- 53:35Michael Kennedy: It's really hard to do a stored procedure in a CSV.
- 53:40Michael Kennedy: No, I honestly, for all the benefits that stored procedures have, it's just, you know, in general, you have so much more flexibility if you just do SQL and all that on your own.
- 53:52Michael Kennedy: But yeah, that makes a lot of sense.
- 53:53Michael Kennedy: If you could just package it up and go, you just call this and the database handles it and process.
- 53:58Michael Kennedy: Yeah.
- 53:58Michael Kennedy: So multiple clients works locally or in the cloud.
- 54:01Michael Kennedy: I guess for the non-hosted ones,
- 54:06Michael Kennedy: what's the scenario here?
- 54:07Michael Kennedy: Like either DuckDB in process or SQLite.
- 54:10Michael Kennedy: Is this, I'm working on my machine
- 54:12Michael Kennedy: and I know that the data is out there
- 54:15Michael Kennedy: or how do I share this?
- 54:16Michael Kennedy: How do I like replicate?
- 54:17Michael Kennedy: Because you've got the S3 storage
- 54:19Michael Kennedy: with all the stuff that could be shared,
- 54:20Michael Kennedy: but then you've got the local SQL or DuckDB file.
- 54:24Guillermo Sanchez Dionis: Yeah, there's a very cool use case for this,
- 54:26Guillermo Sanchez Dionis: particularly with DuckDB in process,
- 54:29Guillermo Sanchez Dionis: which people started calling the frozen DuckLite.
- 54:32Guillermo Sanchez Dionis: and the thing is that to update a DAG Lake
- 54:38Guillermo Sanchez Dionis: backed by an in-process DAGDB catalog,
- 54:41Guillermo Sanchez Dionis: you do need to pull the DAGDB file locally, right?
- 54:44Guillermo Sanchez Dionis: You can still talk to the catalog file locally
- 54:48Guillermo Sanchez Dionis: and then do the updates there,
- 54:50Guillermo Sanchez Dionis: write your data to actually S3 directly
- 54:53Guillermo Sanchez Dionis: and then once you've done this,
- 54:55Guillermo Sanchez Dionis: for example, writing process, right?
- 54:56Guillermo Sanchez Dionis: Which let's say happens once a day,
- 54:58Guillermo Sanchez Dionis: it's like a batch workload,
- 54:59Guillermo Sanchez Dionis: Then you upload the DACDB file to S3 storage,
- 55:05Guillermo Sanchez Dionis: and then you can have any amount of read-only connections
- 55:09Guillermo Sanchez Dionis: to S3 storage backed by a DACDB file as a catalog,
- 55:14Guillermo Sanchez Dionis: which means that basically you can have a data lake almost for free, right?
- 55:18Guillermo Sanchez Dionis: Because your catalog database is just a file in S3,
- 55:21Guillermo Sanchez Dionis: which is very powerful.
- 55:22Guillermo Sanchez Dionis: So this works very well if you're doing, let's say, one update per day,
- 55:26Guillermo Sanchez Dionis: or you just batch load a bunch of data,
- 55:28Guillermo Sanchez Dionis: And then you can have an arbitrary amount of read-only connections to this frozen duck lake.
- 55:33Michael Kennedy: Yeah, this frozen duck lake.
- 55:34Michael Kennedy: That's an interesting idea.
- 55:36Michael Kennedy: That way, it just operationally is easier, right?
- 55:38Michael Kennedy: Like, just it runs overnight in the morning.
- 55:41Michael Kennedy: Download the DuckDB file.
- 55:43Michael Kennedy: Ask all the questions you want.
- 55:44Guillermo Sanchez Dionis: Yeah, I mean, it's also like the very nice thing, right?
- 55:47Guillermo Sanchez Dionis: Like, you can literally have anyone asking questions without a server catalog running, right?
- 55:53Guillermo Sanchez Dionis: So you don't need to pay for a Postgres to be running or for a Quack to be running.
- 55:57Guillermo Sanchez Dionis: You could just literally have a DuckDV file in S3 storage
- 56:00Guillermo Sanchez Dionis: and then read all of the DuckLake from your laptop.
- 56:03Michael Kennedy: Yeah, and operationally, it's so much easier.
- 56:05Michael Kennedy: Yeah, so much easier indeed.
- 56:07Michael Kennedy: So another interesting optimization, Pedro, that you wrote about is data inlining
- 56:13Michael Kennedy: instead of sending every little request all the way back to the object storage.
- 56:18Pedro Holanda: Yeah, the basic just here is, again, to try to mitigate the small file problem, right?
- 56:25Pedro Holanda: So the small file problem, again, is if you have a bunch of little insertions, you generate a bunch of little files.
- 56:30Pedro Holanda: And in Niceberg, you're also going to generate a bunch of metadata files.
- 56:33Pedro Holanda: I think it's four files per insertion, if I remember correctly, but I'm far from being a Niceberg specialist.
- 56:41Pedro Holanda: And that basically means that if you want to get the information of that one snapshot, you have to request all these files.
- 56:47Pedro Holanda: And although they're small, as you said, there's latency playing around and it just adds up and you end up paying quite a big cost on retrieving your data.
- 56:56Pedro Holanda: Duck Lake would still have that problem to a smaller scale, right?
- 57:00Pedro Holanda: Without inline.
- 57:01Pedro Holanda: So basically, you'd still have a bunch of small data files, but you would solve the catalog part.
- 57:07Pedro Holanda: So the idea here is like, well, we are using a database management system.
- 57:13Pedro Holanda: They can store tables.
- 57:14Pedro Holanda: What if we stored the same table as our data, but in our catalog,
- 57:20Pedro Holanda: and then stored the inline, and then stored the actual data
- 57:23Pedro Holanda: that would go to the file in this inline table?
- 57:26Pedro Holanda: So that's basically what it is.
- 57:27Pedro Holanda: So imagine we would have a parquet file with, like, dates and value,
- 57:32Pedro Holanda: two columns.
- 57:33Pedro Holanda: You're going to, instead of creating that parquet file,
- 57:35Pedro Holanda: you have, if you're using DuckDB as your catalog,
- 57:37Pedro Holanda: you're going to have a table in your DuckDB
- 57:39Pedro Holanda: be called something like underscore duck lake, underscore data table.
- 57:44Pedro Holanda: And then you're going to have these two columns plus some extra columns we need to actually
- 57:49Pedro Holanda: run the query.
- 57:49Pedro Holanda: So like the snapshots ID where that value was asserted, the end snapshots if that value
- 57:57Pedro Holanda: ended up being deleted while it has not been created to a fire yet.
- 58:01Pedro Holanda: And I think we have a third column, but I don't remember by heart now.
- 58:05Pedro Holanda: But that's the basic gist.
- 58:06Pedro Holanda: And then, of course, at some points, if your data grows enough,
- 58:09Pedro Holanda: so the idea here is that your insertions are kind of small, right?
- 58:12Pedro Holanda: Like 100 tuples, 10 tuples, maybe 1,000 tuples,
- 58:15Pedro Holanda: but it's not really that big.
- 58:17Pedro Holanda: And if at some point your table is too big,
- 58:18Pedro Holanda: you can just flush it to disk.
- 58:21Pedro Holanda: So you remove the data from your inline table
- 58:23Pedro Holanda: and you create the actual file.
- 58:25Pedro Holanda: And then it avoids this mid situation
- 58:27Pedro Holanda: where you have a bunch of small files.
- 58:29Pedro Holanda: And then Iceberg tries to solve this issue,
- 58:33Pedro Holanda: I think, with some streaming tools.
- 58:35Pedro Holanda: Guillermo is probably more aware of these things than me.
- 58:40Pedro Holanda: But this will again force you to have another tool.
- 58:43Pedro Holanda: I think it also gets in the way of transactionality
- 58:47Pedro Holanda: or having your snapshots per data file at least
- 58:50Pedro Holanda: because you're going to have to start batching your data
- 58:52Pedro Holanda: and try to do it in one go.
- 58:54Pedro Holanda: And with Duck Lake, you still preserve all of these.
- 58:57Pedro Holanda: And yeah, like I have some numbers in this blog post,
- 59:00Pedro Holanda: but of course we're just comparing raw Iceberg with raw Duck Lake.
- 59:04Pedro Holanda: Yeah, so the numbers is like we got basically a thousand times faster.
- 59:08Michael Kennedy: It's a little bit of a performance improvement.
- 59:10Pedro Holanda: Yes, exactly.
- 59:11Pedro Holanda: So it is like a really cool feature in my opinion.
- 59:14Michael Kennedy: It is.
- 59:14Michael Kennedy: And once you've got this data, this local database in place, you can use it for things like that, right?
- 59:20Michael Kennedy: You need the database anyway to have a consistent data lake.
- 59:24Michael Kennedy: Yes, exactly.
- 59:25Michael Kennedy: Yeah, might as well.
- 59:26Michael Kennedy: And then, I mean, when you say with open some file in Python, you get buffering.
- 59:32Michael Kennedy: not every single byte you write instantly goes to the file because that's a lot slower and it just
- 59:38Michael Kennedy: seems like a much more scaled out way which is even more important right because the latency of
- 59:44Michael Kennedy: talking to object storage far away absolutely nice all right let's we got a time for a couple more
- 59:48Michael Kennedy: things let's talk about duck lake data frame what is this i know so uh while doing that project
- 59:56Pedro Holanda: with the i had to of course set an iceberg instance to compare uh with that could be
- 1:00:01Pedro Holanda: I thought it was a bit frustrating, the experience.
- 1:00:03Pedro Holanda: It took me like a while.
- 1:00:05Pedro Holanda: And then I just had my clanker going over it
- 1:00:07Pedro Holanda: and I went to do something else.
- 1:00:09Pedro Holanda: And it still took my clanker like a while.
- 1:00:10Pedro Holanda: So I started like wondering,
- 1:00:12Pedro Holanda: oh, maybe it would be easier to have my clanker implemented
- 1:00:14Pedro Holanda: new clank implementation
- 1:00:16Pedro Holanda: than to actually get Iceberg to work or find Iceberg
- 1:00:19Pedro Holanda: on this machine of like some glue,
- 1:00:21Pedro Holanda: not glue, sorry, some, the Iceberg catalog,
- 1:00:25Pedro Holanda: I forgot the name now, working.
- 1:00:26Pedro Holanda: And then the whole idea of this experiment is just like,
- 1:00:29Pedro Holanda: This was a few months ago, so the Clanker was not as smart as it is now.
- 1:00:33Pedro Holanda: And I just let it go, and I just allowed it to write it.
- 1:00:36Pedro Holanda: And it came up with something that worked quite well.
- 1:00:41Pedro Holanda: I didn't really review the code, but it had nice numbers.
- 1:00:44Pedro Holanda: And I checked the test over, looks good enough.
- 1:00:48Pedro Holanda: But I also made some fun benchmarks that was like,
- 1:00:50Pedro Holanda: oh, what if we just change our scheme off the table a million times?
- 1:00:55Pedro Holanda: How much faster is this in Epsburg?
- 1:00:57Pedro Holanda: And I thought it was just funny.
- 1:00:59Guillermo Sanchez Dionis: I mean, actually, it's funny, but it's also like one of the craziest things that the DuckLake improves over Iceberg, right?
- 1:01:05Guillermo Sanchez Dionis: Because every time you change schema in Iceberg, you need to write files as well, right?
- 1:01:09Guillermo Sanchez Dionis: And I think that's also the crazy thing about DuckLake is that, well, it's not crazy, actually.
- 1:01:13Guillermo Sanchez Dionis: It makes a lot of sense.
- 1:01:14Guillermo Sanchez Dionis: But we just do basically a SQL operation.
- 1:01:17Guillermo Sanchez Dionis: And this is just...
- 1:01:18Guillermo Sanchez Dionis: So over time, like, if you have, like, all of these different operations that are, you know, like alter table commands, for example, or stuff like that, which actually are not changing data, but are growing the metadata.
- 1:01:28Guillermo Sanchez Dionis: that, then your read performance will
- 1:01:30Guillermo Sanchez Dionis: decrease because of that.
- 1:01:32Guillermo Sanchez Dionis: And of course, I changed it one million times.
- 1:01:34Guillermo Sanchez Dionis: The schema probably is not a real
- 1:01:37Guillermo Sanchez Dionis: case scenario, but
- 1:01:38Guillermo Sanchez Dionis: anyway, it's quite interesting.
- 1:01:40Pedro Holanda: Is this one the schema evolution rename?
- 1:01:42Pedro Holanda: I was just like, okay, I have no idea
- 1:01:44Pedro Holanda: how CloudFont is an interesting
- 1:01:46Pedro Holanda: metric, but okay.
- 1:01:49Pedro Holanda: That's a fair point, I think.
- 1:01:50Michael Kennedy: Yeah, what are the things we can do with it?
- 1:01:52Michael Kennedy: Very cool. But maybe the more interesting
- 1:01:55Pedro Holanda: part of this,
- 1:01:56Pedro Holanda: what I want to show, or at least
- 1:01:58Pedro Holanda: experiment myself is I do believe that compared to the iceberg open table formats, DuckLake
- 1:02:05Pedro Holanda: is much easier to implement.
- 1:02:06Pedro Holanda: That was the idea behind these experiments.
- 1:02:08Pedro Holanda: And since then, we've seen some people doing actual implementations.
- 1:02:13Pedro Holanda: There are, I think, closed source implementations from FireBot, I think.
- 1:02:16Pedro Holanda: But there's also the people from HotData that have done the one from DataFusion.
- 1:02:20Pedro Holanda: There is another implementation that's actually more official than mine from a board chat,
- 1:02:25Pedro Holanda: I think, that does the actual DataFrame, DuckLake.
- 1:02:28Pedro Holanda: So again, it was also to show that despite the name,
- 1:02:32Pedro Holanda: Duck Lake is not only entangled to DuckDB.
- 1:02:34Pedro Holanda: It's an open table format.
- 1:02:36Pedro Holanda: We want people to also to write their own readers and writers
- 1:02:41Pedro Holanda: and to use our own implementation as a reference,
- 1:02:44Pedro Holanda: but also our website has like the spec description.
- 1:02:47Pedro Holanda: So the idea of that experiment was also in line with that position.
- 1:02:50Michael Kennedy: Sure, that makes a lot of sense.
- 1:02:51Michael Kennedy: When I first saw Duck Lake,
- 1:02:53Michael Kennedy: oh, this is DuckDB, but for data lakes.
- 1:02:56Michael Kennedy: How does that work?
- 1:02:56Michael Kennedy: And then looking more into it,
- 1:02:58Michael Kennedy: realize what it was now said don't use this in production when when can you what's what's the
- 1:03:04Michael Kennedy: path to 1.0 ready for production all these things yeah so i'll say the main like we actually took a
- 1:03:11Pedro Holanda: a bunch of time uh to from duck lake 0.4 i think to 1.0 where we decided we're not gonna add any
- 1:03:17Pedro Holanda: new features we're just gonna focus on fixing bugs and we're only gonna do schema changes
- 1:03:23Pedro Holanda: if they are fixing bugs.
- 1:03:25Pedro Holanda: And I believe that since April,
- 1:03:28Pedro Holanda: it should be production ready.
- 1:03:31Pedro Holanda: Of course, as software is,
- 1:03:33Pedro Holanda: there are still issues
- 1:03:34Pedro Holanda: and we still have bug reports
- 1:03:36Pedro Holanda: and we're still fixing them.
- 1:03:37Pedro Holanda: And we're going to be releasing
- 1:03:39Pedro Holanda: Duck Lake 1.1 soon,
- 1:03:41Pedro Holanda: I believe most likely
- 1:03:43Pedro Holanda: in the month and a half
- 1:03:43Pedro Holanda: with Duck Lake 2.0.
- 1:03:44Pedro Holanda: Again, almost on the same perspective
- 1:03:47Pedro Holanda: that it will have some smaller features
- 1:03:50Pedro Holanda: or smaller optimizations,
- 1:03:51Pedro Holanda: but it's mostly focused also
- 1:03:53Pedro Holanda: on bug fixing.
- 1:03:55Pedro Holanda: So this is really the direction we're going now.
- 1:03:58Pedro Holanda: It's trying to make it more solid
- 1:04:00Pedro Holanda: and more compatible with Iceberg.
- 1:04:03Pedro Holanda: So we can also read from and export to Iceberg.
- 1:04:06Pedro Holanda: So in the sense of being an open table format,
- 1:04:09Pedro Holanda: we also don't want people to be locked in
- 1:04:11Pedro Holanda: in our own table formats, if that makes sense.
- 1:04:13Pedro Holanda: Yeah.
- 1:04:14Guillermo Sanchez Dionis: Yeah.
- 1:04:14Guillermo Sanchez Dionis: And one thing that is interesting about what Pedro said
- 1:04:16Guillermo Sanchez Dionis: is that because we have the specification,
- 1:04:19Guillermo Sanchez Dionis: but also the DAC leak implementation of DACDB, right?
- 1:04:22Guillermo Sanchez Dionis: I think the specification, we tried to sort of like freeze it as much as possible and
- 1:04:27Guillermo Sanchez Dionis: make sure that we only do like new releases of the specification if it's really necessary.
- 1:04:31Guillermo Sanchez Dionis: There's like a breaking change in the, yeah, in the catalog schema.
- 1:04:37Guillermo Sanchez Dionis: But the extension itself can have like not only back features, but also like performance
- 1:04:42Guillermo Sanchez Dionis: improvements, for example, right?
- 1:04:43Guillermo Sanchez Dionis: Like I think we've recently seen like some improvements in like the way we calculate
- 1:04:49Guillermo Sanchez Dionis: the statistics.
- 1:04:50Guillermo Sanchez Dionis: And I think there's a bunch of others.
- 1:04:52Guillermo Sanchez Dionis: So basically the extension can still get better, right?
- 1:04:55Guillermo Sanchez Dionis: Like the engine can be faster and do things better anyway.
- 1:04:59Guillermo Sanchez Dionis: So it doesn't mean that Duck Lake is not evolving.
- 1:05:02Guillermo Sanchez Dionis: I think it's like the specification evolves slower, right?
- 1:05:05Guillermo Sanchez Dionis: As it should be in our opinion.
- 1:05:07Guillermo Sanchez Dionis: And the extension can still get better and better over time.
- 1:05:10Michael Kennedy: Now, let me just put this out directly.
- 1:05:13Michael Kennedy: It sounds like maybe it is ready for production.
- 1:05:15Michael Kennedy: What's the readiness state of Duck Lake?
- 1:05:17Pedro Holanda: Yeah, so I think one of the main things we wanted to achieve for 1.0 before, besides all the bug fixing and whatnot, is that one of the main aspects when you run a data lake over a long period of time is that you get more data in it, right?
- 1:05:32Pedro Holanda: So we needed all the checkpointing functionality.
- 1:05:36Pedro Holanda: And with checkpointing is compaction, is rewriting data files by adding their deletions, is removing orphan files, it's removing old files, all these things completely ready and easy to use.
- 1:05:50Pedro Holanda: So I think that's also one of the main things we ended up spending a lot of time in this production readiness state to be sure that people can just run it and not be completely stationary because their data grew too much.
- 1:06:05Pedro Holanda: So that was also one of the main concepts behind this.
- 1:06:08Pedro Holanda: So it is production ready.
- 1:06:09Guillermo Sanchez Dionis: I mean, for sure, there's already a lot of companies that are running this openly and they even base their software on it.
- 1:06:16Guillermo Sanchez Dionis: I think BossHawk is a good example.
- 1:06:19Guillermo Sanchez Dionis: AlterTable is a good example.
- 1:06:20Guillermo Sanchez Dionis: I think Firebolt also reworks their story changing to use DuckLake as well.
- 1:06:25Guillermo Sanchez Dionis: So there's a bunch of companies that already trust DuckLake as a thing to trust your software on, which for me is the biggest testament of something working.
- 1:06:36Michael Kennedy: Yeah, when people just start diving into it.
- 1:06:38Michael Kennedy: That's right.
- 1:06:39Michael Kennedy: To keep the lake analogy going.
- 1:06:41Michael Kennedy: All right.
- 1:06:42Michael Kennedy: Let's wrap it up with Final Call to Action for people.
- 1:06:46Michael Kennedy: they want to get started with the lake,
- 1:06:48Michael Kennedy: you've convinced them that this is awesome,
- 1:06:50Michael Kennedy: they should be doing it.
- 1:06:51Michael Kennedy: What do you tell them?
- 1:06:52Pedro Holanda: I mean, if you want to get started,
- 1:06:54Pedro Holanda: I think the main way of doing it
- 1:06:57Pedro Holanda: is going to the Duck Lake website.
- 1:06:58Pedro Holanda: There's going to be examples.
- 1:07:00Pedro Holanda: I think we have a couple of tutorials as well.
- 1:07:02Pedro Holanda: Otherwise, the clankers are also pretty good these days
- 1:07:05Pedro Holanda: and it's really easy.
- 1:07:06Pedro Holanda: It's literally like one line
- 1:07:08Pedro Holanda: and you have a data lake working.
- 1:07:10Pedro Holanda: In one line, you can also have a Duck Lake
- 1:07:13Pedro Holanda: with Quok working.
- 1:07:15Pedro Holanda: To me, it's always a bit mind-blowing.
- 1:07:18Pedro Holanda: Just check the website.
- 1:07:19Pedro Holanda: That's the best way.
- 1:07:20Pedro Holanda: If you find any issues,
- 1:07:22Pedro Holanda: it's always super helpful to us
- 1:07:24Pedro Holanda: if you open an issue on a GitHub,
- 1:07:26Pedro Holanda: especially with very reproducible steps,
- 1:07:29Pedro Holanda: like full-on scripts on how to generate the data,
- 1:07:32Pedro Holanda: what exactly was the problem.
- 1:07:34Pedro Holanda: As easier as it is for us to reproduce,
- 1:07:36Pedro Holanda: it's easier for us to fix as well.
- 1:07:39Pedro Holanda: And we got people covered.
- 1:07:41Pedro Holanda: We go through issues.
- 1:07:42Pedro Holanda: We have a way of...
- 1:07:45Pedro Holanda: going through all of them and prioritizing them within our team as well.
- 1:07:49Guillermo Sanchez Dionis: Yeah, I mean, I agree with Pedro.
- 1:07:51Guillermo Sanchez Dionis: I think the most important thing is that you try it out for yourself, right?
- 1:07:54Guillermo Sanchez Dionis: And you see whether it works or not for you.
- 1:07:56Guillermo Sanchez Dionis: I think TagLik can work in multiple different ways, right?
- 1:08:01Guillermo Sanchez Dionis: Like you can see it as like your pet project to store all of your data,
- 1:08:05Guillermo Sanchez Dionis: which is a very comfortable way of running it.
- 1:08:07Guillermo Sanchez Dionis: Or it can be even the backbone of your software service, right?
- 1:08:10Guillermo Sanchez Dionis: Which is also where many companies are betting on.
- 1:08:14Guillermo Sanchez Dionis: So yeah, just try it out and let us know what you think, right?
- 1:08:17Guillermo Sanchez Dionis: We will be there in the public issue trackers.
- 1:08:20Pedro Holanda: And with DuckDB 2.0 coming, things are also going to get much faster.
- 1:08:26Guillermo Sanchez Dionis: Much faster, that is true.
- 1:08:29Pedro Holanda: We now have an async.io implemented
- 1:08:32Pedro Holanda: and that will make a huge difference for reading S3 files
- 1:08:36Pedro Holanda: because it will basically unclog your processing.
- 1:08:40Pedro Holanda: So yeah, I mean, I think this is one of the most exciting times
- 1:08:43Pedro Holanda: to be diving into Duck Lake.
- 1:08:45Michael Kennedy: Awesome.
- 1:08:46Michael Kennedy: Now, finally,
- 1:08:47Michael Kennedy: there's all these different ways
- 1:08:48Michael Kennedy: you can run it with Postgres,
- 1:08:49Michael Kennedy: with SQLite,
- 1:08:50Michael Kennedy: with DuckDB in process,
- 1:08:52Michael Kennedy: or Quack.
- 1:08:52Michael Kennedy: Do you recommend people
- 1:08:54Michael Kennedy: start in one of these?
- 1:08:55Michael Kennedy: I'd start with DuckDB.
- 1:08:56Michael Kennedy: Yeah.
- 1:08:57Guillermo Sanchez Dionis: DuckDB in process, right?
- 1:08:58Guillermo Sanchez Dionis: Yeah, DuckDB in process.
- 1:08:59Guillermo Sanchez Dionis: That's the easiest.
- 1:09:00Guillermo Sanchez Dionis: Okay.
- 1:09:00Pedro Holanda: Because with Postgres,
- 1:09:02Pedro Holanda: you still have to set up the server
- 1:09:03Pedro Holanda: because that's, of course,
- 1:09:04Pedro Holanda: a little bit apart.
- 1:09:05Pedro Holanda: If DuckDB is literally online
- 1:09:06Pedro Holanda: and you're ready to go.
- 1:09:07Michael Kennedy: Yeah, it's got all the extensions
- 1:09:08Michael Kennedy: and it just knows, right?
- 1:09:09Michael Kennedy: Exactly.
- 1:09:11Michael Kennedy: All right, you guys.
- 1:09:11Michael Kennedy: Thanks for being on the show.
- 1:09:13Michael Kennedy: And sharing this cool project you're working on.
- 1:09:16Michael Kennedy: Thank you so much for the invites.
- 1:09:18Guillermo Sanchez Dionis: Yeah, thanks, Micah.
- 1:09:19Guillermo Sanchez Dionis: Bye.
- 1:09:20Michael Kennedy: This has been another episode of Talk Python To Me.
- 1:09:22Michael Kennedy: Thank you to our sponsors.
- 1:09:23Michael Kennedy: Be sure to check out what they're offering.
- 1:09:25Michael Kennedy: It really helps support the show.
- 1:09:27Michael Kennedy: Thanks again to Six Feet Up,
- 1:09:28Michael Kennedy: the Python and AI experts you call for the hardest software problems.
- 1:09:33Michael Kennedy: From scaling applications to simplifying data complexity
- 1:09:36Michael Kennedy: and unlocking AI outcomes, they help you move forward faster.
- 1:09:40Michael Kennedy: See what's possible with Six Feet Up.
- 1:09:42Michael Kennedy: Visit talkpython.fm/six feet up.
- 1:09:46Michael Kennedy: And it's brought to you by us.
- 1:09:48Michael Kennedy: Talk Python and Python Bytes both now have MCP servers.
- 1:09:52Michael Kennedy: Point your AI at 10 plus years of Python episodes,
- 1:09:55Michael Kennedy: transcripts, and show notes free.
- 1:09:57Michael Kennedy: Click MCP in the nav at talkpython.fm and at Python Bytes.
- 1:10:02Michael Kennedy: If you or your team needs to learn Python,
- 1:10:04Michael Kennedy: we have over 270 hours of beginner and advanced courses
- 1:10:08Michael Kennedy: on topics ranging from complete beginners to async code,
- 1:10:11Michael Kennedy: Flask, Django, HTMX, and even LLMs.
- 1:10:14Michael Kennedy: Best of all, there's no subscription in sight.
- 1:10:17Michael Kennedy: Browse the catalog at talkpython.fm.
- 1:10:20Michael Kennedy: And if you're not already subscribed to the show
- 1:10:22Michael Kennedy: on your favorite podcast player,
- 1:10:24Michael Kennedy: what are you waiting for?
- 1:10:25Michael Kennedy: Just search for Python in your podcast player.
- 1:10:27Michael Kennedy: We should be right at the top.
- 1:10:28Michael Kennedy: If you enjoy that geeky rap song,
- 1:10:30Michael Kennedy: you can download the full track.
- 1:10:31Michael Kennedy: The link is actually in your podcast blur show notes.
- 1:10:34Michael Kennedy: This is your host, Michael Kennedy.
- 1:10:36Michael Kennedy: Thank you so much for listening.
- 1:10:37Michael Kennedy: I really appreciate it.
- 1:10:38Michael Kennedy: I'll see you next time.
- 1:10:50I'm out.