Re: [Django] #35294: Queryset explain can be truncated.

12 views
Skip to first unread message

Django

unread,
Mar 13, 2024, 2:12:22 PM3/13/24
to django-...@googlegroups.com
#35294: Queryset explain can be truncated.
-------------------------------------+-------------------------------------
Reporter: Gordon Wrigley | Owner: Adam
| Johnson
Type: Bug | Status: assigned
Component: Database layer | Version: 4.2
(models, ORM) |
Severity: Normal | Resolution:
Keywords: explain | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Adam Johnson):

* has_patch: 0 => 1
* owner: nobody => Adam Johnson
* status: new => assigned

--
Ticket URL: <https://code.djangoproject.com/ticket/35294#comment:5>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Mar 13, 2024, 6:38:02 PM3/13/24
to django-...@googlegroups.com
#35294: Queryset explain can be truncated.
-------------------------------------+-------------------------------------
Reporter: Gordon Wrigley | Owner: Adam
| Johnson
Type: Bug | Status: assigned
Component: Database layer | Version: 4.2
(models, ORM) |
Severity: Normal | Resolution:
Keywords: explain | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Adam Johnson):

I made a PR but the test is ugly and a bit hacky to force a 100+ line
explain plan by joining 100 1-row `generate_series()`. Happy to hear any
alternatives.
--
Ticket URL: <https://code.djangoproject.com/ticket/35294#comment:6>

Django

unread,
Mar 14, 2024, 4:05:03 AM3/14/24
to django-...@googlegroups.com
#35294: Queryset explain can be truncated.
-------------------------------------+-------------------------------------
Reporter: Gordon Wrigley | Owner: Adam
| Johnson
Type: Bug | Status: assigned
Component: Database layer | Version: 4.2
(models, ORM) |
Severity: Normal | Resolution:
Keywords: explain | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* needs_better_patch: 0 => 1

--
Ticket URL: <https://code.djangoproject.com/ticket/35294#comment:7>

Django

unread,
Mar 15, 2024, 1:58:41 AM3/15/24
to django-...@googlegroups.com
#35294: Queryset explain can be truncated.
-------------------------------------+-------------------------------------
Reporter: Gordon Wrigley | Owner: Adam
| Johnson
Type: Bug | Status: assigned
Component: Database layer | Version: 4.2
(models, ORM) |
Severity: Normal | Resolution:
Keywords: explain | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* needs_better_patch: 1 => 0
* stage: Accepted => Ready for checkin

--
Ticket URL: <https://code.djangoproject.com/ticket/35294#comment:8>

Django

unread,
Mar 15, 2024, 5:50:41 AM3/15/24
to django-...@googlegroups.com
#35294: Queryset explain can be truncated.
-------------------------------------+-------------------------------------
Reporter: Gordon Wrigley | Owner: Adam
| Johnson
Type: Bug | Status: closed
Component: Database layer | Version: 4.2
(models, ORM) |
Severity: Normal | Resolution: fixed
Keywords: explain | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak <felisiak.mariusz@…>):

* resolution: => fixed
* status: assigned => closed

Comment:

In [changeset:"cbf1e87398a58737e27e1b680283903caf661f90" cbf1e87]:
{{{#!CommitTicketReference repository=""
revision="cbf1e87398a58737e27e1b680283903caf661f90"
Fixed #35294 -- Fixed TEXT format of QuerySet.explain() for long plans.

co-authored-by: Gordon <gordon....@gmail.com>
co-authored-by: Simon Charette <chare...@gmail.com>
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/35294#comment:9>

Django

unread,
Mar 15, 2024, 6:22:44 AM3/15/24
to django-...@googlegroups.com
#35294: Queryset explain can be truncated.
-------------------------------------+-------------------------------------
Reporter: Gordon Wrigley | Owner: Adam
| Johnson
Type: Bug | Status: closed
Component: Database layer | Version: 4.2
(models, ORM) |
Severity: Normal | Resolution: fixed
Keywords: explain | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Gordon Wrigley):

Thank you.
--
Ticket URL: <https://code.djangoproject.com/ticket/35294#comment:10>
Reply all
Reply to author
Forward
0 new messages