About DuckDB
DuckDB is an in-process analytical database: no daemon to run, just a library or a single CLI binary that queries CSV, Parquet and JSON files with fast, columnar SQL. It is MIT-licensed, and version 2.0 is a long-term support release.
Analytical queries love memory and quick disks. A CloudSat server with DDR5 and NVMe turns DuckDB into a scratch warehouse billed by the hour: size it for a heavy job and delete it when the numbers are in.
After deploy the duckdb CLI is on the path on Ubuntu 24.04 LTS, ready to open a database file or query files in place.
What you get with DuckDB
- Runs in-process, with no users or daemon to manage
- Reads and writes CSV, Parquet and JSON
- Rich SQL with window functions and joins
- Extensions, including S3-compatible storage access
- Clients for Python, R, Node.js and Java
- Local web UI with
duckdb -ui
DuckDB use cases
- Crunching a large CSV or Parquet export without loading a database
- Python data pipelines that need fast SQL
- Ad hoc analytics on exported logs
After you deploy DuckDB
- Over SSH, open the shell with
duckdb mydata.duckdbonce the server is up; with no filename you get an in-memory session. - Query files directly, for example
SELECT count(*) FROM 'events.parquet';. - For the browser UI, run
duckdb -uiand reach port 4213 through an SSH tunnel such asssh -L 4213:localhost:4213 root@<server IP>.
DuckDB ports
Open these in your firewall if you use one: 22/tcp SSH.
DuckDB FAQ
Is DuckDB a server like PostgreSQL?
No. It runs inside the process that uses it, the CLI or your script, and stores data in a single file. For shared, multi-user access, choose a server database such as ClickHouse.
How much RAM should I choose?
DuckDB can spill to disk, but it is fastest when the working set fits in memory. Size the plan to the data you query at once; 8 GB ($21.18) is a practical start for multi-gigabyte files.
Disclaimer. The DuckDB project has no affiliation with CloudSat and does not endorse it. Names and logos belong to their owners and appear only to identify the software.