7 comments

  • decide100029 minutes ago
    I built a distributed DuckDB setup using OpenRaft for state replication. Every node holds a full copy of the database. Writes go through Raft consensus, reads are local. It&#x27;s more like etcd-with-DuckDB than MotherDuck-lite.<p>OpenDuck takes a different approach with query federation with a gateway that splits execution across local and remote workers. My use case requires every node to serve reads independently with zero network latency, and to keep running if other nodes go down.<p>The PostgreSQL dependency for metadata feels heavy. Now you&#x27;re operating two database systems instead of one. In my setup DuckDB stores both the Raft log and the application data, so there&#x27;s a single storage engine to reason about.<p>Not saying my approach is universally better. If you need to query across datasets that don&#x27;t fit on a single machine, OpenDuck&#x27;s architecture makes more sense. But if you want replicated state with strong consistency, Raft + DuckDB works very well.
  • arpinum18 minutes ago
    I read the code. It&#x27;s a good case study of one-shot output from AI when you ask it to replicate a SaaS product. This is probably better than most because MotherDuck has been open about their techniques to build the product.<p>Obviously not a production implementation.
  • herpderperator2 hours ago
    Does this help with DuckDB concurrency? My main gripe with DuckDB is that you can&#x27;t write to it from multiple processes at the same time. If you open the database in write mode with one process, you cannot modify it at all from another process without the first process completely releasing it. In fact, you cannot even read from it from another process in this scenario.<p>So if you typically use a file-backed DuckDB database in one process and want to quickly modify something in that database using the DuckDB CLI (like you might connect SequelPro or DBeaver to make changes to a DB while your main application is &#x27;using&#x27; it), then it complains that it&#x27;s locked by another process and doesn&#x27;t let you connect to it at all.<p>This is unlike SQLite, which supports and handles this in a thread-safe manner out of the box. I know it&#x27;s DuckDB&#x27;s explicit design decision[0], but it would be amazing if DuckDB could behave more like SQLite when it comes to this sort of thing. DuckDB has incredible quality-of-life improvements with many extra types and functions supported, not to mention all the SQL dialect enhancements allowing you to type much more concise SQL (they call it &quot;Friendly SQL&quot;), which executes super efficiently too.<p>[0] <a href="https:&#x2F;&#x2F;duckdb.org&#x2F;docs&#x2F;current&#x2F;connect&#x2F;concurrency" rel="nofollow">https:&#x2F;&#x2F;duckdb.org&#x2F;docs&#x2F;current&#x2F;connect&#x2F;concurrency</a>
    • szarnyasg1 hour ago
      Hi, DuckDB DevRel here. To have concurrent read-write access to a database, you can use our DuckLake lakehouse format and coordinate concurrent access through a shared Postgres catalog. We released v1.0 yesterday: <a href="https:&#x2F;&#x2F;ducklake.select&#x2F;2026&#x2F;04&#x2F;13&#x2F;ducklake-10&#x2F;" rel="nofollow">https:&#x2F;&#x2F;ducklake.select&#x2F;2026&#x2F;04&#x2F;13&#x2F;ducklake-10&#x2F;</a><p>I updated your reference [0] with this information.
  • nehalem2 hours ago
    I have a deep appreciation for DuckDB, but I am afraid the confluence of brilliant ideas makes it ever more complicated to adopt —- and DuckLake is another example for this trend.<p>When I look at SQLite I see a clear message: a database in a file. I think DuckDb is that, too. But it’s also an analytics engine like Polars, works with other DB engines, supports Parquet, comes with a UI, has two separate warehouse ideas which both deviate from DuckDB‘s core ideas<i>.<p></i> Yes, DuckLake and Motherduck are separate entities, but they are still part of the ecosystem.
  • citguru3 hours ago
    This is an attempt to replicate MotherDucks differential storage and implement hybrid query execution on DuckDB
    • zurfer2 hours ago
      As someone working in the field I have to admit that I&#x27;m not familiar with the terms differential storage nor do I really understand what hybrid execution means. Maybe you could describe it both from a simple technical point of view and what benefits it has to me as a user?
  • Lucasoato2 hours ago
    Last week I’ve sent my first PR in duckdb to support iceberg views in catalogs like Polaris! Let’s hope for the best :)
  • oulipo21 hour ago
    Seems cool! But would be nice to have some &quot;real-world&quot; use cases to see actual usage patterns...<p>In my case my systems can produce &quot;warnings&quot; when there are some small system warning&#x2F;errors, that I want to aggregate and review (drill-down) from time to time<p>I was hesitating between using something like OpenTelemetry to send logs&#x2F;metrics for those, or just to add a &quot;warnings&quot; table to my Timescaledb and use some aggregates to drill them down and possibly display some chunks to review...<p>but another possibility, to avoid using Timescaledb&#x2F;clickhouse and just rely on S3 would be to upload those in a parquet file on a bucket through duckdb, and then query them from time to time to have stats<p>Would you have a recommendation?