Re: [Django] #37344: FETCH_PEERS does not apply to instances loaded by select_related()

13 views
Skip to first unread message

Django

unread,
Sep 14, 2026, 7:42:20 AMSep 14
to django-...@googlegroups.com
#37344: FETCH_PEERS does not apply to instances loaded by select_related()
-------------------------------------+-------------------------------------
Reporter: Mykhailo Havelia | Owner: (none)
Type: Bug | Status: new
Component: Database layer | Version: 6.1
(models, ORM) |
Severity: Release blocker | Resolution:
Keywords: fetch_mode, | Triage Stage: Accepted
FETCH_PEERS, select_related, |
peers |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Varun Kasyap Pentamaraju):

* cc: Varun Kasyap Pentamaraju (added)

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

Django

unread,
Sep 14, 2026, 1:08:18 PMSep 14
to django-...@googlegroups.com
#37344: FETCH_PEERS does not apply to instances loaded by select_related()
-------------------------------------+-------------------------------------
Reporter: Mykhailo Havelia | Owner: Vishy
Type: Bug | Status: assigned
Component: Database layer | Version: 6.1
(models, ORM) |
Severity: Release blocker | Resolution:
Keywords: fetch_mode, | Triage Stage: Accepted
FETCH_PEERS, select_related, |
peers |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Vishy):

* owner: (none) => Vishy
* status: new => assigned

--
Ticket URL: <https://code.djangoproject.com/ticket/37344#comment:5>

Django

unread,
Sep 15, 2026, 6:02:32 PMSep 15
to django-...@googlegroups.com
#37344: FETCH_PEERS does not apply to instances loaded by select_related()
-------------------------------------+-------------------------------------
Reporter: Mykhailo Havelia | Owner: Mariano
| Ignacio Baragiola
Type: Bug | Status: assigned
Component: Database layer | Version: 6.1
(models, ORM) |
Severity: Release blocker | Resolution:
Keywords: fetch_mode, | Triage Stage: Accepted
FETCH_PEERS, select_related, |
peers |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariano Ignacio Baragiola):

* owner: Vishy => Mariano Ignacio Baragiola

--
Ticket URL: <https://code.djangoproject.com/ticket/37344#comment:6>

Django

unread,
Sep 16, 2026, 2:26:33 AMSep 16
to django-...@googlegroups.com
#37344: FETCH_PEERS does not apply to instances loaded by select_related()
-------------------------------------+-------------------------------------
Reporter: Mykhailo Havelia | Owner: Mariano
| Ignacio Baragiola
Type: Bug | Status: assigned
Component: Database layer | Version: 6.1
(models, ORM) |
Severity: Release blocker | Resolution:
Keywords: fetch_mode, | Triage Stage: Accepted
FETCH_PEERS, select_related, |
peers |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce):

* has_patch: 0 => 1

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

Django

unread,
Sep 16, 2026, 2:53:47 AMSep 16
to django-...@googlegroups.com
#37344: FETCH_PEERS does not apply to instances loaded by select_related()
-------------------------------------+-------------------------------------
Reporter: Mykhailo Havelia | Owner: Mariano
| Ignacio Baragiola
Type: Bug | Status: assigned
Component: Database layer | Version: 6.1
(models, ORM) |
Severity: Release blocker | Resolution:
Keywords: fetch_mode, | Triage Stage: Accepted
FETCH_PEERS, select_related, |
peers |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce):

* needs_better_patch: 0 => 1

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

Django

unread,
Sep 18, 2026, 6:32:32 AMSep 18
to django-...@googlegroups.com
#37344: FETCH_PEERS does not apply to instances loaded by select_related()
-------------------------------------+-------------------------------------
Reporter: Mykhailo Havelia | Owner: Mariano
| Ignacio Baragiola
Type: Bug | Status: assigned
Component: Database layer | Version: 6.1
(models, ORM) |
Severity: Release blocker | Resolution:
Keywords: fetch_mode, | Triage Stage: Ready for
FETCH_PEERS, select_related, | checkin
peers |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce):

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

--
Ticket URL: <https://code.djangoproject.com/ticket/37344#comment:9>

Django

unread,
Sep 18, 2026, 10:28:23 AMSep 18
to django-...@googlegroups.com
#37344: FETCH_PEERS does not apply to instances loaded by select_related()
-------------------------------------+-------------------------------------
Reporter: Mykhailo Havelia | Owner: Mariano
| Ignacio Baragiola
Type: Bug | Status: closed
Component: Database layer | Version: 6.1
(models, ORM) |
Severity: Release blocker | Resolution: fixed
Keywords: fetch_mode, | Triage Stage: Ready for
FETCH_PEERS, select_related, | checkin
peers |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce <42296566+sarahboyce@…>):

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

Comment:

In [changeset:"6ade6258480fba84a7e895b4b1e1716dfc954778" 6ade625]:
{{{#!CommitTicketReference repository=""
revision="6ade6258480fba84a7e895b4b1e1716dfc954778"
Fixed #37344 -- Enabled FETCH_PEERS batching for instances loaded by
select_related.

Thank you to Mykhailo Havelia for the report.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/37344#comment:10>

Django

unread,
Sep 18, 2026, 10:30:05 AMSep 18
to django-...@googlegroups.com
#37344: FETCH_PEERS does not apply to instances loaded by select_related()
-------------------------------------+-------------------------------------
Reporter: Mykhailo Havelia | Owner: Mariano
| Ignacio Baragiola
Type: Bug | Status: closed
Component: Database layer | Version: 6.1
(models, ORM) |
Severity: Release blocker | Resolution: fixed
Keywords: fetch_mode, | Triage Stage: Ready for
FETCH_PEERS, select_related, | checkin
peers |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Sarah Boyce <42296566+sarahboyce@…>):

In [changeset:"64c6e09b1efb5032f74c483476b8bf3f7d4920b3" 64c6e09]:
{{{#!CommitTicketReference repository=""
revision="64c6e09b1efb5032f74c483476b8bf3f7d4920b3"
[6.1.x] Fixed #37344 -- Enabled FETCH_PEERS batching for instances loaded
by select_related.

Thank you to Mykhailo Havelia for the report.

Backport of 6ade6258480fba84a7e895b4b1e1716dfc954778 from main.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/37344#comment:11>
Reply all
Reply to author
Forward
0 new messages