{% load mongo_debug_tags %}

Reads

{% if queries %} {% for query in queries %} {% endfor %}
Time (ms) Operation Cursor Collection Query Ordering Skip Limit Stack Trace
{{ query.time|floatformat:"4" }} {{ query.operation|title }} {{ query.cursor }} {{ query.collection }} {% if query.query %}
{{ query.query|format_dict|highlight:"javascript"|safe }}
{% endif %}
{% if query.ordering %}
{{ query.ordering }}
{% endif %}
{{ query.skip|default:"" }} {{ query.limit|default:"" }} Toggle
{% for line in query.stack_trace %} {% endfor %}
Line File Function Code
{{ line.1 }} {{ line.0|embolden_file }} {{ line.2 }} {{ line.3|highlight:"python"|safe }}
{% else %}

No queries recorded

{% endif %}

Inserts

{% if inserts %} {% for insert in inserts %} {% endfor %}
Time (ms) Document Safe Stack Trace
{{ insert.time|floatformat:"4" }}
{{ insert.document|format_dict:120|highlight:"javascript"|safe }}
{{ insert.safe }} Toggle
{% for line in insert.stack_trace %} {% endfor %}
Line File Function Code
{{ line.1 }} {{ line.0|embolden_file }} {{ line.2 }} {{ line.3|highlight:"python"|safe }}
{% else %}

No inserts recorded

{% endif %}

Updates

{% if updates %} {% for update in updates %} {% endfor %}
Time (ms) Query Update Safe Multi Upsert Stack Trace
{{ update.time|floatformat:"4" }}
{{ update.spec|format_dict:120|highlight:"javascript"|safe }}
{{ update.document|format_dict:120|highlight:"javascript"|safe }}
{{ update.safe }} {{ update.multi }} {{ update.upsert }} Toggle
{% for line in update.stack_trace %} {% endfor %}
Line File Function Code
{{ line.1 }} {{ line.0|embolden_file }} {{ line.2 }} {{ line.3|highlight:"python"|safe }}
{% else %}

No updates recorded

{% endif %}

Removes

{% if removes %} {% for remove in removes %} {% endfor %}
Time (ms) Query / Id Safe Stack Trace
{{ remove.time|floatformat:"4" }}
{{ remove.spec_or_id|format_dict:120|highlight:"javascript"|safe }}
{{ remove.safe }} Toggle
{% for line in remove.stack_trace %} {% endfor %}
Line File Function Code
{{ line.1 }} {{ line.0|embolden_file }} {{ line.2 }} {{ line.3|highlight:"python"|safe }}
{% else %}

No removes recorded

{% endif %}