{% extends "django_observatory/base.html" %}{% load observatory %} {% block title %}Database{% endblock %}{% block heading %}Database performance{% endblock %} {% block sub %}Totals count every query; the statement table is built from captured queries.{% endblock %} {% block tools %}{% include "django_observatory/_range.html" %}All captured SQL{% endblock %} {% block content %}
| Statement (normalised) | Calls | Avg | P95 | Max | Total | Flags |
|---|---|---|---|---|---|---|
| {{ g.sql|truncatechars:220 }}{% if g.route %} e.g. from {{ g.route }} {% endif %} |
{{ g.calls }} | {{ g.avg|ms }} | {% if g.p95 != None %}{{ g.p95|ms }}{% else %}–{% endif %} | {{ g.max|ms }} | {{ g.total|ms }} | {% if g.slow %}{{ g.slow }} slow{% endif %}{% if g.failed %} {{ g.failed }} failed{% endif %} |
| No queries captured in this time range. | ||||||