Skip to content
Source
Sign inSign up
pingdotgg/t3code

perf(server): events stop maintaining two indexes no query needs #19623

ClosedKiroshiAiviom(GitHub profile, opens in a new tab)wants to merge 3 commits intomain fromrefs/pull/19623/headopened View on GitHub

Showing 8 changed files with 45 additions and 2 deletions (loading 5).

x
0 of 8 viewed, 8 left
1 addition and 1 deletionapps/server/src/orchestration-v2/FoundationPersistence.test.tsModified
View file
@@ -260,7 +260,7 @@
const details = plan.map((row) => row.detail).join("\n");
assert.match(details, /USING (?:COVERING )?INDEX orchestration_events_v2_created_threads_idx/);
- assert.notMatch(details, /idx_orch_events_stream_sequence|TEMP B-TREE/);
+ assert.notMatch(details, /TEMP B-TREE/);
}).pipe(Effect.provide(layerTest)),
​
3 additions and 1 deletionapps/server/src/persistence/Migrations/055_OrchestrationV2.test.tsModified
View file
@@ -13,7 +13,7 @@
Effect.sync(() => {
assert.deepStrictEqual(
migrationEntries.map(([id]) => id),
- Array.from({ length: 62 }, (_, index) => index + 1),
+ Array.from({ length: 63 }, (_, index) => index + 1),
);
}),
);
@@ -34,6 +34,7 @@
[60, "ThreadSnapshotWindowIndexes"],
[61, "PullRequestReviewGuides"],
[62, "ThreadFailureLookupIndex"],
+ [63, "DropUnusedEventIndexes"],
]);
assert.deepStrictEqual(yield* runMigrations(), []);