Skip to content

refactor: denormalized pglogstore#677

Open
alexluong wants to merge 1 commit intofix-logstore-destinationidfrom
pglogstore
Open

refactor: denormalized pglogstore#677
alexluong wants to merge 1 commit intofix-logstore-destinationidfrom
pglogstore

Conversation

@alexluong
Copy link
Collaborator

@alexluong alexluong commented Feb 5, 2026

Simplifies PostgreSQL schema by denormalizing the attempts table.

Changes:

  • Remove event_attempt_index table - query directly from attempts
  • Embed event data in attempts table (no JOINs needed)
  • Use {ms}::{id} cursor format matching chlogstore

Migration: 000005_denormalize_attempts handles the schema change.

Testing: Passes full conformance test suite - no breaking changes to the driver interface.

@vercel
Copy link

vercel bot commented Feb 5, 2026

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

Project Deployment Actions Updated (UTC)
outpost-docs Ready Ready Preview, Comment Feb 5, 2026 9:37am
outpost-website Ready Ready Preview, Comment Feb 5, 2026 9:37am

Request Review

- Remove event_attempt_index table, query directly from denormalized attempts
- Use dynamic cursor format {milliseconds}::{id} matching chlogstore
- Simplify queries: no JOINs needed for attempt lookups
- Update InsertMany to populate denormalized event columns in attempts
- Update migration 000005 for new schema structure

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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