Skip to main content

DuckDB

Overview

DuckDB is an in-memory, columnar, SQL database designed for analytical (OLAP) workloads, offering high-speed data processing and analysis. Its columnar storage model and vectorized query execution make it highly efficient for OLAP tasks, enabling fast aggregation, filtering, and joins on large datasets. DuckDB's ease of integration with data science tools and its ability to run directly within analytical environments like Python and R, without the need for a separate server, make it an attractive choice for OLAP applications seeking simplicity and performance.

By default, Rill includes DuckDB as an embedded OLAP engine that is used to ingest data from sources and power your dashboards. Nothing more needs to be done if you wish to power your dashboards on Rill Developer or Rill Cloud.

Optimizing performance on DuckDB

DuckDB is a very useful analytical engine but can start hitting into performance scale challenges as the size of ingested data grows significantly. As a general rule of thumb, we recommend keeping the size of data in DuckDB to under 50GB along with some other performance recommendations. For larger volumes of data, Rill still promises great performance but additional backend optimizations will be needed. Please contact us!

Interested in using DuckDB and another OLAP engine in the same project?

Well now you can! For more details, see our page on Using Multiple OLAP Engines.

Additional Notes