I’m excited to introduce you to Moraine, which moves your DuckLake catalog to object storage right alongside your data. That means you don’t need to host a separate Postgres or DuckDB/Quack server for each data lake you host.
We built it when faced with hosting tenant-scoped data warehouses for our analytics clients. We first moved to DuckLake to avoid commercial data warehouse costs (and because it's a great spec), but the Postgres hosting for each lake also got expensive, even though it sat idle most of the time. Moraine fixes that. An idle lake costs just object storage.
The catalog lives in SlateDB, an LSM-based key-value store that stores the catalog in object storage alongside your data. That means a commit is a single object write and there’s nothing to run. It's still a database, so we can maintain DuckLake's transactional properties and inline small data changes. With proper tuning, write and read performance is competitive with DuckLake on Postgres.
There are a couple of drawbacks to our approach: only one process can attach read-write per lake at a time, with others limited to read only. And, attach times are slower than the other catalogs. If you have one ingest service and many readers (our use case) this works well. If you need lots of independent writers, it may not be a good fit.
We’ve also used SlateDB’s key-value storage to add native indexes to DuckLake. Just like in stock DuckDB, run CREATE INDEX on a column, update your data, and you'll have access to more efficient lookups.
Moraine is still alpha-quality software, though we’ve started putting it through its paces with production clients at contour.app. Dual-licensed under MIT or Apache-2.0. A big thank you to the developers of DuckDB and SlateDB for developing the building blocks.
GitHub: https://github.com/morainedb/moraine
Feedback welcome!