Skip to content
Source
Sign inSign up
pingdotgg/t3code

perf(server): prune events the projections already cover #29806

Mergedjuliusmarmingemerged 5 commits intomain fromrefs/pull/29806/headmerged by juliusmarminge View on GitHub

Showing 22 changed files with 190 additions and 10 deletions (loading 19).

x
0 of 22 viewed, 22 left
3 additions and 5 deletionsapps/server/src/orchestration-v2/legacy/LegacyV1Cutover.integration.test.tsModified
View file
@@ -42,7 +42,7 @@
import * as EventStore from "../EventStore.ts";
import * as LegacyV1ThreadImporter from "./LegacyV1ThreadImporter.ts";
import * as Orchestrator from "../Orchestrator.ts";
-import * as ProjectionMaintenance from "../ProjectionMaintenance.ts";
+import * as ProjectionReplay from "../testkit/ProjectionReplay.ts";
import * as ProjectionStore from "../ProjectionStore.ts";
import * as ProviderAdapterRegistry from "../ProviderAdapterRegistry.ts";
import * as ProviderReplayHarness from "../testkit/ProviderReplayHarness.ts";
@@ -600,9 +600,7 @@
const layerImporterProvided = LegacyV1ThreadImporter.layer.pipe(
Layer.provide(Layer.mergeAll(layerStoresProvided, layerEventSinkProvided)),
- const layerMaintenanceProvided = ProjectionMaintenance.layer.pipe(
- Layer.provide(layerStoresProvided),
- );
+ const layerMaintenanceProvided = ProjectionReplay.layer.pipe(Layer.provide(layerStoresProvided));
const layerOrchestratorProvided = ProviderReplayHarness.layerWithRegistry(
name: input.name,
@@ -676,7 +674,7 @@
Effect.gen(function* () {
const sql = yield* SqlClient.SqlClient;
const importer = yield* LegacyV1ThreadImporter.LegacyV1ThreadImporter;
- const maintenance = yield* ProjectionMaintenance.ProjectionMaintenanceV2;
+ const maintenance = yield* ProjectionReplay.ProjectionReplay;
const projections = yield* ProjectionStore.ProjectionStoreV2;
const orchestrator = yield* Orchestrator.OrchestratorV2;