Commit b9f4499
fix: bound the service map to the recent window (#41)
Both service-map queries scanned the entire spans table (now 447k rows after
expanding tracing): a DISTINCT-service full scan and a child↔parent self-join
over everything. A service map is current topology, so bound both to the last
hour — ~640x less data, an index scan instead of a full self-join.
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent 8f96fd3 commit b9f4499
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
864 | 864 | | |
865 | 865 | | |
866 | 866 | | |
| 867 | + | |
| 868 | + | |
867 | 869 | | |
868 | | - | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
869 | 873 | | |
870 | 874 | | |
871 | 875 | | |
| |||
877 | 881 | | |
878 | 882 | | |
879 | 883 | | |
880 | | - | |
| 884 | + | |
| 885 | + | |
881 | 886 | | |
882 | 887 | | |
883 | 888 | | |
| |||
0 commit comments