{% load silk_filters %}{% url 'silk:sql' as sql_url %}
{% if not detail %}
Total DB time
{{ stats.total_ms|dur_num }}{{ stats.total_ms|dur_unit }}
all recorded queries
Patterns
{{ stats.patterns|num }}
{{ stats.selects }} are SELECTs
N+1 patterns
{{ stats.repeating }}
repeated {{ repeat_min }}+ times in a request
Slowest p95
{% if stats.slowest %}{{ stats.slowest.p95|dur_num }}{{ stats.slowest.p95|dur_unit }}{% else %}·{% endif %}
{{ stats.slowest.table|default:"" }}
{% endif %} {% if tables %}
DB time by table · {% if f.table %}showing {{ f.table }} only, click again to clear{% else %}click a table to filter patterns{% endif %}
{% for t in tables %} {% endfor %} {% if more_tables %}

+{{ more_tables }} more tables

{% endif %}
{% endif %}
{% for t in types %}{% if t.count %} {% endif %}{% endfor %}
{{ shown }} pattern{{ shown|pluralize }}
{% if rows %}
{% for p in rows %} {% endfor %}
Pattern Requests
{{ p.type }}{{ p.table }} {% if p.repeats %}N+1{% endif %}
{{ p.sql|truncatechars:220 }}
{{ p.calls|num }} {{ p.requests|num }}
{{ p.total|dur }}
{{ p.avg|dur }} {{ p.p95|dur }}
{% else %}

No patterns match.

{% endif %}
{% if detail %}{% with d=detail %} {% endwith %}{% endif %}