{# Copyright The IETF Trust 2015, All Rights Reserved #} {% load origin %}{% origin %} {% if debug %} {% if sql_debug %} {% load debug_filters %}

{{ sql_queries|length }} queries ({{ sql_queries|timesum }}s) {% if sql_queries|length != 0 %} Show {% endif %}

{% with sql_queries|annotate_sql_queries as sql_query_info %} {% for query in sql_query_info %} {% endfor %} {% endwith %}
# SQL Count WHERE View/ Templ. Time Acc.
{{ forloop.counter }} {{ query.sql|expand_comma|escape }} {{ query.count }} {{ query.where }} {{ query.loc }} {% if query.origin %} {% endif %} {{ query.time }} {{ query.time_accum }}
{% else %}
Add 'ietf.context_processors.sql_debug' to settings.TEMPLATE_CONTECT_PROCESSORS to turn on the SQL statement table
{% endif %} {% endif %}