You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consider query params when detecting duplicate queries (#995)
* (Factor out key function for duplicate queries)
* Consider the query params when detecting duplicate queries
* SQL query recording: Track the raw_params too
The duplicate query detection needs this, because `params` is not always
JSON-serialisable.
* (Rename variable to avoid shadowing)
* SQLPanel: Track duplicated queries both with and without params
* SQL panel template: Include counts of duplicates with params too
* Convert raw_params lists to hashable tuples
* Wording change: duplicate -> similar, for queries with differing params
* Wording: "duplicate with params" -> duplicate, for identical queries
* SQL panel: Add explanatory tooltip text to similar / duplicate query counts
Copy file name to clipboardExpand all lines: debug_toolbar/templates/debug_toolbar/panels/sql.html
+15-2Lines changed: 15 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -5,8 +5,15 @@
5
5
<li>
6
6
<strongclass="djdt-label"><spandata-background-color="rgb({{ info.rgb_color|join:", " }})" class="djdt-color"> </span> {{ alias }}</strong>
7
7
<spanclass="djdt-info">{{ info.time_spent|floatformat:"2" }} ms ({% blocktrans count info.num_queries as num %}{{ num }} query{% plural %}{{ num }} queries{% endblocktrans %}
0 commit comments