Jeremy D. Miller 8/6/2026

TimescaleDB Support within Marten

Read Original

Marten, a .NET document- and event-store on PostgreSQL, now supports TimescaleDB as an opt-in feature. Developers can enable it with UseTimescaleDB() to automatically create the timescaledb extension. The feature allows converting flat table projections and append-heavy document tables into hypertables, which are time-partitioned with columnar compression, retention policies, and continuous aggregates. It integrates with Marten's schema migration system, ensuring idempotent creation and no drift. The article explains usage, requirements (shared_preload_libraries), and provides code examples for configuration and projection setup.

TimescaleDB Support within Marten

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser