Skip to content

fix: bound service map to recent window (was full-table self-join) - #41

Merged
thejefflarson merged 1 commit into
mainfrom
fix/servicemap-time-bound
Jun 4, 2026
Merged

fix: bound service map to recent window (was full-table self-join)#41
thejefflarson merged 1 commit into
mainfrom
fix/servicemap-time-bound

Conversation

@thejefflarson

Copy link
Copy Markdown
Owner

The service map self-joined the whole spans table (447k rows) with no time bound — slow after the tracing expansion. A service map is current topology, so bound both queries (nodes + edges) to the last hour: index scan over ~700 rows instead of a 447k self-join.

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>
@thejefflarson
thejefflarson merged commit b9f4499 into main Jun 4, 2026
@thejefflarson
thejefflarson deleted the fix/servicemap-time-bound branch June 4, 2026 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant