django-commons / django-commons/django-debug-toolbar
Feature Request: Add column sorting option for SQL query panel
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 8.4k
- Forks
- 1.1k
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 13
Description
A common use case for the SQL query panel is to check and see if you're running over a loop in your code which is causing many queries over the same object (i.e. the same query continuing to unnecessarily occur over and over again).
The feature request here would be to allow sorting of the columns in the SQL panel so I can sort by query or time. What would even be better was if we had the option to group by query.
via jquery
via plain js
Thanks a ton for building a super awesome tool!!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The payload does not name files or tests; start by locating the SQL query panel and its table-rendering entry point, then inspect how query and time columns are represented. Done means the panel supports sorting by query or time and, if included in scope, grouping identical queries; verify the behavior with the panel's existing checks.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- django, javascript, jquery, python, sql
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100