#25701: Add warning to an admin list_view if too many queries are being used -------------------------------+-------------------------------------- Reporter: jacinda | Owner: jacinda Type: New feature | Status: assigned Component: contrib.admin | Version: Severity: Normal | Resolution: Keywords: | Triage Stage: Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------+--------------------------------------
Comment (by jacinda): I don't think this would be a replacement for django-debug-toolbar. I think it's actually most useful if the warning suggests to the user that they use django-debug-toolbar or a similar tool to diagnose the cause of the high number of queries. This just lets them know that there's something that should be investigated. I think the checks framework suggestion is good, but wouldn’t help people detect if they had a poorly constructed callable in list_display since it would be the callable name in list_select_related and not a field name. Yep, I was assuming this feature would only work in DEBUG mode. I don't think this is something most people would want to show up in production. -- Ticket URL: <https://code.djangoproject.com/ticket/25701#comment:4> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.2eb850d1a54e2bcbfb0f5483b380ae0c%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.