Skip to content

refactor: denormalized pglogstore#677

Merged
alexluong merged 1 commit into
mainfrom
pglogstore
Feb 6, 2026
Merged

refactor: denormalized pglogstore#677
alexluong merged 1 commit into
mainfrom
pglogstore

Conversation

@alexluong

@alexluong alexluong commented Feb 5, 2026

Copy link
Copy Markdown
Collaborator

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

vercel Bot commented Feb 5, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
outpost-docs Ready Ready Preview, Comment Feb 6, 2026 7:17am
outpost-website Ready Ready Preview, Comment Feb 6, 2026 7:17am

Request Review

@vercel
vercel Bot temporarily deployed to Preview – outpost-docs February 5, 2026 09:32 Inactive
@vercel
vercel Bot temporarily deployed to Preview – outpost-website February 5, 2026 09:32 Inactive
@vercel
vercel Bot temporarily deployed to Preview – outpost-website February 5, 2026 09:37 Inactive
@vercel
vercel Bot temporarily deployed to Preview – outpost-docs February 5, 2026 09:37 Inactive
Base automatically changed from fix-logstore-destinationid to main February 6, 2026 07:14
- 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>
@alexluong
alexluong merged commit fe924b3 into main Feb 6, 2026
2 of 4 checks passed
@vercel
vercel Bot temporarily deployed to Preview – outpost-website February 6, 2026 07:17 Inactive
@alexluong
alexluong deleted the pglogstore branch February 6, 2026 07:17
@vercel
vercel Bot temporarily deployed to Preview – outpost-docs February 6, 2026 07:17 Inactive
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