Skip to content

feat: (simple) load test one-by-one bulk upload#6416

Draft
emilyjablonski wants to merge 3 commits into
mainfrom
load-test-option-2
Draft

feat: (simple) load test one-by-one bulk upload#6416
emilyjablonski wants to merge 3 commits into
mainfrom
load-test-option-2

Conversation

@emilyjablonski

@emilyjablonski emilyjablonski commented Jun 12, 2026

Copy link
Copy Markdown
Collaborator

Option 1 (transaction) - 1000 records

  • Total: 17s → extrapolates to ~2.8 min at 10k locally, ~5 min in production
  • Bulk read: 64ms total (vs ~2s for 1000 individual reads in Option 2)
  • Snapshot: ~16ms/record - identical to Option 2, within noise
  • Transaction commit: 1.5s total (vs Option 2 ~2s for 1000 individual commits)

Option 2 (one-by-one) - 1000 records

  • Total: 21s → extrapolates to ~3.5 min at 10k locally, ~6 min in production
  • Read: ~2ms/record (individual queries)
  • Snapshot: ~18ms/record — stable, not the bottleneck
  • Write: ~2ms/record

Option 1 is ~19% faster, but almost entirely due to the bulk read. Snapshot cost is the same either way.

The speed difference is real but somewhat small - it seems like Option 1 saves about 40 seconds on a job that takes 5-6 minutes without emails.

The only thing you gain with Option 1 is one fewer round-trip per record on the read side. The theoretical harder part - snapshots - is identical. It appears to be saving about 40 seconds on an estimated total 30-40 minute job.

Email sends remain the dominant variable - at ~200ms/email, 50% of records triggering notifications adds ~17 min regardless of which option is used.

@emilyjablonski emilyjablonski changed the title feat: load test one-by-one bulk upload feat: (simple) load test one-by-one bulk upload Jun 12, 2026
@netlify

netlify Bot commented Jun 12, 2026

Copy link
Copy Markdown

Deploy Preview for partners-bloom-dev ready!

Name Link
🔨 Latest commit fee9843
🔍 Latest deploy log https://app.netlify.com/projects/partners-bloom-dev/deploys/6a32afd32aabf80008e7993d
😎 Deploy Preview https://deploy-preview-6416--partners-bloom-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Jun 12, 2026

Copy link
Copy Markdown

Deploy Preview for bloom-angelopolis canceled.

Name Link
🔨 Latest commit fee9843
🔍 Latest deploy log https://app.netlify.com/projects/bloom-angelopolis/deploys/6a32afd3d2a84f00085dc1e5

@netlify

netlify Bot commented Jun 12, 2026

Copy link
Copy Markdown

Deploy Preview for bloom-public-seeds ready!

Name Link
🔨 Latest commit fee9843
🔍 Latest deploy log https://app.netlify.com/projects/bloom-public-seeds/deploys/6a32afd3d2a84f00085dc1e0
😎 Deploy Preview https://deploy-preview-6416--bloom-public-seeds.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Jun 12, 2026

Copy link
Copy Markdown

Deploy Preview for bloom-exygy-dev ready!

Name Link
🔨 Latest commit fee9843
🔍 Latest deploy log https://app.netlify.com/projects/bloom-exygy-dev/deploys/6a32afd319ace80008159190
😎 Deploy Preview https://deploy-preview-6416--bloom-exygy-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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.

1 participant