Skip to content
Source
Sign inSign up
pingdotgg/t3code

perf(server): database shrinks ~64% by pruning thread history older than a day #22630

Closedt3dotgg(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromperf/event-history-retentionopened View on GitHub

Showing 13 changed files with 1 addition and 1 deletion (loading 12).

x
0 of 13 viewed, 13 left
1 addition and 1 deletionapps/server/src/cli/doctor.tsModified
View file
@@ -110,7 +110,7 @@
.pipe(
Effect.tap((result) =>
Console.log(
- `Done: ${formatBytes(result.beforeBytes)} -> ${formatBytes(result.afterBytes)}, ${result.deletedEventCount} superseded events removed.`,
+ `Done: ${formatBytes(result.beforeBytes)} -> ${formatBytes(result.afterBytes)}, ${result.deletedEventCount} old history events removed.`,
apps/server/src/orchestration-v2/FoundationPersistence.test.tsModified
View file
Loading the diff
apps/server/src/orchestration-v2/ProjectionMaintenance.tsModified
View file
Loading the diff
apps/server/src/persistence/Migrations/070_EventHistoryRetention.tsAdded
View file
Loading the diff
apps/server/src/persistence/DatabaseStorage.test.tsModified
View file
Loading the diff
apps/server/src/persistence/DatabaseStorage.tsModified
View file
Loading the diff
apps/server/src/persistence/Migrations.tsModified
View file
Loading the diff
apps/server/src/persistence/OrchestrationEventStore.tsModified
View file