Skip to content

Comments

feat(seeds): generate more workshops for performance testing#2499

Draft
mroderick wants to merge 1 commit intocodebar:masterfrom
mroderick:feature/seeds-performance-data
Draft

feat(seeds): generate more workshops for performance testing#2499
mroderick wants to merge 1 commit intocodebar:masterfrom
mroderick:feature/seeds-performance-data

Conversation

@mroderick
Copy link
Collaborator

Motivation

The existing seeds.rb generated ~60 past workshops, which was insufficient for detecting performance issues during local development. With more data, N+1 queries and missing indexes become immediately obvious.

Analysis

  • Original seeds: ~60 past workshops over 5 years (1 every 6 months)
  • New seeds: ~1000 past workshops + ~100 future workshops
  • Scaled coaches/students from 50 to 500 each
  • Added ~25,000 workshop invitations for realistic query patterns

This makes performance issues visible early in development rather than surfacing in production.

Fixes

Fixes #2302

Motivation:
The existing seeds.rb generated ~60 past workshops, which was insufficient
for detecting performance issues during local development. With more data,
N+1 queries and missing indexes become immediately obvious.

Analysis:
- Original seeds: ~60 past workshops over 5 years (1 every 6 months)
- New seeds: ~1000 past workshops + ~100 future workshops
- Scaled coaches/students from 50 to 500 each
- Added ~25,000 workshop invitations for realistic query patterns

This makes performance issues visible early in development rather than
surfacing in production.

Fixes codebar#2302
@mroderick mroderick force-pushed the feature/seeds-performance-data branch from ba94cd5 to 1accc09 Compare February 21, 2026 09:52
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.

Improve seeds.rb with more workshops

1 participant