DuckDB 2.0 outperforms Polars 2.0 on Postgres reads

towardsdatascience.com5 min read

The author evaluates the performance of version 2.0 of DuckDB and Polars across five real-world data-processing tasks on a local PC, including reading and writing Postgres tables, processing local CSV files, and handling Parquet data on AWS S3. The tests reveal that DuckDB is significantly faster at reading from Postgres tables by over 14 times, while both libraries perform similarly across the remaining tasks. The author concludes that both tools are fast and capable, with DuckDB leaning on SQL and Polars utilizing DataFrame expressions. Open article →