Hacker News
Read post

Building a weather data warehouse part I: Loading a trillion rows of weather data into TimescaleDB

The post discusses the process of building a weather data warehouse using PostgreSQL and TimescaleDB. It explores the need for historical weather data, the ERA5 climate reanalysis product, and the challenges of loading large amounts of data into a database. The post compares different insertion methods, including single-row inserts, multi-valued inserts, and the copy statement. It also evaluates the performance of external tools like pg_bulkload and timescaledb-parallel-copy. The conclusion suggests using psycopg3 to directly copy data into a hypertable or using timescaledb-parallel-copy if CSV files are available. The post provides detailed benchmarks and considerations for achieving optimal insert rates and loading times.

    #postgresql#data-warehouse#timescaledb
Apr 16, 2024•15m read time•From aliramadhan.me
Post cover image
Table of contents
What are we even doing?The insert statementThe copy statementToolsTweaking Postgres settingsSo what’s the best method?AppendicesFootnotes
28 Impressions
Hacker News's image
Hacker News

Hacker News is a community-driven platform for sharing and discussing technology news, startups, and...

17.4K Followers

•

141.8K Upvotes

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard