{% extends "silk/base/detail_base.html" %} {% load static %} {% load silk_filters %} {% load silk_nav %} {% load silk_inclusion %} {% block pagetitle %}Silky - SQL Detail - {{ silk_request.path }}{% endblock %} {% block js %} {{ block.super }} {% endblock %} {% block style %} {{ block.super }} {% endblock %} {% block menu %} {% endblock %} {% block data %}
{{ sql_query.formatted_query|spacify|linebreaksbr }}
{{ sql_query.time_taken }}ms
{{ sql_query.num_joins }} joins
{% if analysis %}
Query Plan
{{ analysis | spacify | linebreaksbr }}
{% endif %}
Traceback
The below is the Python stacktrace that leads up the execution of the above SQL query. Use it to figure out where and why this SQL query is being executed and whether or not it's actually neccessary.
{% for ln in traceback %} {% if ln %}
{{ ln }}
{% if forloop.counter == pos %} {% code code actual_line %} {% endif %} {% endif %} {% endfor %}
{% endblock %}