Browse files

Really cool: Seeing all my queries with your awesome plugin!

Not so cool: Taking 5 whole minutes to scroll down 312.7ft of a mega-monstrosity-query just to see that it actually executed pretty quickly.

I propose that any query longer than 2048 queries was probably not meant to be shown in it's entirety on your list page.
  • Loading branch information...
1 parent 5121ab2 commit f80917f1225238d8d22928fc07a54fdd89c7fe24 @linked linked committed Apr 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 djangosampler/templates/djangosampler/queries.html
@@ -35,7 +35,7 @@ <h3>Queries {{ start_offset }} to {{ end_offset }} of {{ total_queries }}</h3>
<td>{{ query.count }}</td>
<td>{{ query.total_duration|floatformat:4 }}</td>
<td>{{ query.total_cost }}</td>
- <td>{{ query.query }}</td>
+ <td>{{ query.query|truncatechars:2048 }}</td>
{% endfor %}

0 comments on commit f80917f

Please sign in to comment.