Ad
 
Learn More
Favicon of TimescaleDb

TimescaleDb

PostgreSQL extension for time-series data with automatic partitioning, up to 95% columnar compression, continuous aggregates, and ~200 native SQL functions.

Open Source Alternative to:

Screenshot of TimescaleDb website
Favicon

 

  
 
23,465stars+219(+0.9%)

Last 30 days

TimescaleDB is a PostgreSQL extension that turns Postgres into a purpose-built time-series database. It's designed for teams that want specialized time-series performance without abandoning the SQL ecosystem they already know. Sensor data, on-chain events, application metrics, customer behavior – if it's timestamped and high-volume, this is what it's built for.

The core abstraction is the hypertable: a regular Postgres table that's automatically partitioned by time (or ID) under the hood. Partition skipping at query planning means the database eliminates irrelevant chunks before scanning begins, so queries stay fast even as data grows into billions of rows.

Key capabilities:

  • Hybrid row/columnar storage – recent data stays in the rowstore for fast ingest and point lookups; older data auto-converts to columnar format for analytical scans, with SIMD-accelerated vectorized execution
  • Compression up to 95% – delta, dictionary, and RLE encodings compress historical data aggressively, and queries can filter directly on compressed data without decompressing first
  • Continuous aggregates – incrementally refreshed materialized views that update in parallel batches; real-time mode includes the latest uncommitted data so dashboards never go stale
  • ~200 time-series SQL functions – hyperfunctions cover time-weighted averages, interpolation, gap-filling, and partial aggregations that avoid reprocessing historical data
  • Automated data management – built-in job scheduler handles retention policies, columnstore conversion, and aggregate refresh with configurable retries and full auditability

Because it's 100% PostgreSQL-compatible, existing Postgres tooling, drivers, ORMs, and extensions all work without modification. That's a meaningful difference from purpose-built alternatives like InfluxDB, QuestDB, or TDengine, which require learning new query languages or migration overhead.

Cloudflare uses it to balance analytical performance with operational simplicity, keeping analytical and configuration data under one roof. The project has 22,000+ GitHub stars and an active Slack community of 12,000+ members.

Share:

23,465stars+219(+0.9%)

Last 30 days

Favicon

 

  
 
Subscribe to our newsletter

Every Sunday we deconstruct one proprietary app and pick the best open source alternatives worth switching to.

Similar open source projects

Favicon

 

  
  • Stars


  • Last commit


  • License


Favicon

 

  
  • Stars


  • Last commit


  • License


Favicon

 

  
  • Stars


  • Last commit


  • License