{% extends "_base.html" %} {% block accent %}#b45309{% endblock %} {% block subtitle %}Ranked findings from DB-offender analysis, slow-request inspection and scale-recommendation bands. Detection is automatic; resolution status is curated.{% endblock %} {% block body %} {% set max_share = (findings|map(attribute='share_pct')|max) or 1 %}
Risk headline
Total findings
{{ total_findings }}
DB offenders this window
P1 critical
{{ counts.P1 }}
DB-bound > 50% or > 10 q/req
P2 high
{{ counts.P2 }}
> 6 queries/request
P3 low
{{ counts.P3 }}
Within healthy bands

Platform scale signal

API latency band: {{ scale.scale_api_rec }} (p99 {{ kpi_p99 }} ms) · Database band: {{ scale.scale_db_rec }} (avg {{ kpi_avg_dbq }} q/req, {{ kpi_db_pct }}% DB-bound).
Impact vs effort — what to do first
Up = bigger share of total DB time (impact) · right = more queries per request (effort) · bigger = higher impact.
Bottleneck impact / effort matrix
x: queries/request · y: DB-time share
{{ matrix_svg|safe }}
Bottleneck register
{% if status_curated %}{% endif %} {% for f in findings %} {% if status_curated %}{% endif %} {% endfor %}
IDEndpointSevEst DB timeDB-time shareQry/reqDB-boundStatus
{{ f.id }} {{ f.endpoint }} {{ f.level }} {{ f.est_db_ms|format_number }} ms
{{ f.share_pct }}%
{{ f.avg_db_queries }} {{ f.db_pct }}%{{ f.status or '—' }}
{% if not status_curated %}

Resolution status is uncurated

No resolution-status field exists in the telemetry models. This register shows the automatically detected half only. To track ownership/status, populate PERFORMANCE_REPORTS["BOTTLENECK_STATUS"] keyed by finding ID (e.g. {"{{ findings[0].id if findings else 'PTR-BNK-F01' }}": "In progress — @owner"}).
{% endif %}
Slow-request evidence (≥ 500 ms)
Individual slow requests captured at 100% (force-kept), newest-slowest first.
{% for s in slow_requests %} = 50 %}class="hot"{% endif %}> {% else %} {% endfor %}
EndpointResponseQueriesDB timeDB %Concurrent
{{ s.endpoint }} {{ s.response_time_ms }} ms {{ s.db_query_count }} {{ s.db_time_ms }} ms {{ s.db_pct }}% {{ s.concurrent_requests }}
No slow requests in this window.
{% endblock %}