Background
Computing candles on the fly is expensive. Materialized/continuous aggregates give fast OHLC queries at scale.
What to build
Add continuous aggregates (TimescaleDB hypertable + continuous aggregate, or scheduled materialized views) for 1m/1h/1d OHLC, with a refresh policy and a query endpoint that reads the rollup.
Key files
prisma/schema.prisma / sql/ migrations
src/api/candles.ts
Acceptance criteria
Drips Wave · Complexity: Advanced · 200 points
Background
Computing candles on the fly is expensive. Materialized/continuous aggregates give fast OHLC queries at scale.
What to build
Add continuous aggregates (TimescaleDB hypertable + continuous aggregate, or scheduled materialized views) for 1m/1h/1d OHLC, with a refresh policy and a query endpoint that reads the rollup.
Key files
prisma/schema.prisma/sql/migrationssrc/api/candles.tsAcceptance criteria