Skip to content

Conversation

@Yopi
Copy link
Contributor

@Yopi Yopi commented Dec 15, 2025

We create a shadow copy of the events table, that we make into a timescaledb
hypertable. We will double write to both events table for a period of time
until we are ready to drop the old events table.

Initially we let the hypertable be bucketed by week, this can be changed going forward if
the event volumes pick up.

The events_hyper table is a 1:1 copy of the events table, except the foreign key references since that is not supported by timescaledb.

@vercel
Copy link

vercel bot commented Dec 15, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

2 Skipped Deployments
Project Deployment Review Updated (UTC)
polar Ignored Ignored Preview Dec 15, 2025 6:36pm
polar-sandbox Ignored Ignored Preview Dec 15, 2025 6:36pm

@Yopi Yopi force-pushed the yopi/events/timescaledb-2 branch 4 times, most recently from 837e730 to ef61122 Compare December 15, 2025 16:19
We create a shadow copy of the events table, that we make into a timescaledb
hypertable. We will double write to both events table for a period of time
until we are ready to drop the old events table.
@Yopi Yopi force-pushed the yopi/events/timescaledb-2 branch from ef61122 to 2fb36f8 Compare December 15, 2025 18:36
@Yopi Yopi merged commit 194bad3 into main Dec 16, 2025
14 checks passed
@Yopi Yopi deleted the yopi/events/timescaledb-2 branch December 16, 2025 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants