Skip to content

[pull] main from django:main#141

Merged
pull[bot] merged 7 commits intothreatcode:mainfrom
django:main
Oct 17, 2025
Merged

[pull] main from django:main#141
pull[bot] merged 7 commits intothreatcode:mainfrom
django:main

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented Oct 17, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

adamchainz and others added 7 commits October 16, 2025 14:52
This change aims to make this section clearer and ready to add a description of
fetch modes.
May your database queries be much reduced with minimal effort.

co-authored-by: Andreas Pelme <andreas@pelme.se>
co-authored-by: Simon Charette <charette.s@gmail.com>
co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
This change ensures that we don’t create new instances of fetch modes
when pickling and unpickling, saving memory and preserving their singleton
nature.
Modify these methods to accept an instance parameter which is clearer and
allows us to set the instance hint earlier.
This change ensures that behavior and performance remain consistent when
traversing relationships.
This change allows the pattern `MyModel.objects.fetch_mode(...).create(...)` to
set the fetch mode for a new object.
@pull pull Bot locked and limited conversation to collaborators Oct 17, 2025
@pull pull Bot added the ⤵️ pull label Oct 17, 2025
@pull pull Bot merged commit d980d68 into threatcode:main Oct 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants