The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 22, 07:00 UTC
perf(server): pin the index for the unscoped agent event high-water (#29623)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Julius Marminge committed
Nov 2, 2026 at 13:55 UTC
065a43355c76ebf4abc6471ada818c25668b01b9
1 file changed
+2
-1
apps/server/src/persistence/OrchestrationEventStore.ts
+2
-1
@@ -645,7 +645,8 @@ const makeEventStore = Effect.gen(function* () {
645
FROM orchestration_events
646
${
647
threadId === undefined
648
- ? sql``
648
+ ? // The planner can otherwise pick the covering stream index and scan every agent event.
649
+ sql`INDEXED BY idx_orchestration_events_application_sequence`
650
: sql`INDEXED BY idx_orchestration_events_agent_stream_sequence`
651
}
652
WHERE application_event_version = 2