Skip to content
Source
Sign inSign up
pingdotgg/t3code

perf(server): batch queued snapshots and reduce event writes #24145

ClosedZheruel(GitHub profile, opens in a new tab)wants to merge 6 commits intomain fromrefs/pull/24145/headopened View on GitHub

Showing 13 changed files with 10 additions and 5 deletions (loading 10).

x
0 of 13 viewed, 13 left
1 addition and 0 deletionsapps/server/src/orchestration-v2/testkit/ProviderReplayHarness.tsModified
View file
@@ -386,6 +386,7 @@
layerProviderEventIngestorProvided,
layerServerSettings,
layerStores,
+ ThreadCommandExecutor.layer,
6 additions and 4 deletionsapps/server/src/orchestration-v2/FoundationPersistence.test.tsModified
View file
@@ -1039,9 +1039,9 @@
- it.effect(
- "rolls back events, projections, receipts, and effects after a projection failure",
- () =>
+ it.effect.each(["projection", "event insert"] as const)(
+ "rolls back events, projections, receipts, and effects after a %s failure",
+ (failure) =>
Effect.gen(function* () {
const eventSink = yield* EventSink.EventSinkV2;
const eventStore = yield* EventStore.EventStoreV2;
@@ -1069,7 +1069,9 @@
const events = [1, 2].map(
(index) =>