Skip to content
Source
Sign inSign up
pingdotgg/t3code

perf(server): reduce streaming projection overhead #5651

Closedt3-code-bot[bot](GitHub profile, opens in a new tab)wants to merge 4 commits intomain fromt3bot/streaming-projection-performanceopened View on GitHub

Showing 9 changed files with 118 additions and 35 deletions (loading 7).

x
0 of 9 viewed, 9 left
11 additions and 3 deletionsapps/server/src/orchestration/Layers/ProjectionPipeline.test.tsModified
View file
@@ -1177,6 +1177,7 @@
const eventStore = yield* OrchestrationEventStore;
const sql = yield* SqlClient.SqlClient;
const now = "2026-01-01T00:00:00.000Z";
+ const streamingAt = "2026-01-01T00:00:01.000Z";
yield* eventStore.append({
type: "project.created",
@@ -1254,7 +1255,7 @@
eventId: EventId.make("evt-a4"),
aggregateKind: "thread",
aggregateId: ThreadId.make("thread-a"),
- occurredAt: now,
+ occurredAt: streamingAt,
commandId: CommandId.make("cmd-a4"),
causationEventId: null,
correlationId: CorrelationId.make("cmd-a4"),
@@ -1266,8 +1267,8 @@
text: " world",
turnId: null,
streaming: true,
- createdAt: now,
- updatedAt: now,
+ createdAt: streamingAt,
+ updatedAt: streamingAt,