Add bulk COPY event append for high-throughput seeding#4212
Merged
jeremydmiller merged 3 commits intomasterfrom Mar 28, 2026
Merged
Add bulk COPY event append for high-throughput seeding#4212jeremydmiller merged 3 commits intomasterfrom
jeremydmiller merged 3 commits intomasterfrom
Conversation
Adds BulkInsertEventsAsync to IDocumentStore, using PostgreSQL COPY binary import to bypass the normal append pipeline. Supports Guid/string stream identity, conjoined tenancy, all optional metadata columns, and archived stream partitioning. Intended for seeding, migration, and load testing. Benchmarked at ~88K events/sec (10M events in 113s) on local PostgreSQL. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ermutations Tests now cover every combination of: - Stream identity: AsGuid, AsString - Tenancy: Single, Conjoined - Metadata: each column in isolation (CorrelationId, CausationId, Headers, UserName), all columns combined, all columns with null values - Archived stream partitioning: on/off with each identity and tenancy combo - Batching: multiple COPY batches, batch size of 1 - Full combination: String + Conjoined + Archived + All Metadata - Version/sequence correctness assertions Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
New docs page at /events/bulk-appending covering the BulkInsertEventsAsync API: basic usage, multi-tenancy, metadata, batch size control, string identity, supported configurations, limitations, and performance notes. Includes compilable code samples in BulkAppendSamples.cs with region markers for VitePress snippet integration. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This was referenced Mar 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
BulkInsertEventsAsyncAPI onIDocumentStoreusing PostgreSQLCOPY ... FROM STDIN BINARYfor maximum throughput event loading/events/bulk-appendingwith code samplesTest plan
🤖 Generated with Claude Code