Repository navigation
Commit 75959c0
perf(server): pin the index for the unscoped agent event high-water
The query without a thread could plan onto the covering per-stream index
and scan every agent event: 9.3s cold / 182ms warm on a 1.45M-event
database, and 1,211 reads over 150ms a day on fleet servers built from main.
Pin the (application_event_version, sequence) index so MAX seeks to the end.
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent 60aec28 commit 75959c0
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
645 | 645 | | |
646 | 646 | | |
647 | 647 | | |
648 | | - | |
| 648 | + | |
| 649 | + | |
649 | 650 | | |
650 | 651 | | |
651 | 652 | | |
| |||
0 commit comments