{% load silk_filters %} {# The part of the requests page that htmx re-renders after a filter, sort or page change. #}
{% url 'silk:requests' as list_url %}
Requests
{{ stats.count|num }}
{% if stats.spark %}{% endif %}
p95 time
{% if stats.p95 is not None %}{{ stats.p95|dur_num }}{{ stats.p95|dur_unit }}{% else %}·{% endif %}
p50 {{ stats.p50|dur }}
5xx rate
{{ stats.error_rate|default:0|floatformat:"1" }}%
{{ stats.errors|default:0 }} server errors
N+1 suspects
{{ stats.n1|default:0|num }}
same query run {{ thresholds.n1_min }}+ times
Avg queries
{{ stats.avg_queries|default:0|floatformat:"1" }}
per request
{% if results %}
{% with f=current_sort.field %} {% endwith %} {% for r in results %} {% with sc=r.response.status_code %} {% endwith %} {% endfor %}
Method Status PathTime Queries DB When
{{ r.method }} {% if sc %}{{ sc }}{% else %}·{% endif %} {{ r.path }}
{{ r.view_name|default:"unresolved view" }}
{{ r.time_taken|dur }}
{% if r.has_n1 %}N+1{% endif %}{{ r.num_sql_queries }} {% if r.db_ms is not None %}{{ r.db_ms|dur }}{% else %}·{% endif %} {{ r.start_time|silk_date_time }}
{% if page_obj.has_other_pages %} {% endif %} {% else %}

No requests match.

{% if filters %}{% else %}

Make a request to your app and it will appear here.

{% endif %}
{% endif %}