Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

949 B
Raw Blame

Working in rust/cyclotron-node-migrations/

These migrations own the cyclotron_node database, which backs the Node cyclotron job queue. Read Keep rows small before you add a table or column here.

  • The cyclotron database holds no file or blob payloads. A new table or column must not store large or variable-size bytes, such as email attachments, rendered bodies, exports or files from users. Put those bytes in object storage and keep only the key and the metadata in the row. Queue rows are inserted and deleted at a high rate, and large values in PostgreSQL go to TOAST, which only vacuum reclaims. That pattern bloats the database that every queue dequeues from.
  • Do not edit a migration that has been applied. sqlx stores a checksum of each migration and refuses to run when a file changes. Add a new migration instead.