#32518 closed Cleanup/optimization (fixed)
Document that QuerySet.contains() should not be overused.
Reported by: | Mariusz Felisiak | Owned by: | John Hollingsworth |
---|---|---|---|
Component: | Documentation | Version: | 4.0 |
Severity: | Normal | Keywords: | |
Cc: | Johan Schiff | Triage Stage: | Ready for checkin |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Adjust Don’t overuse count() and exists() section in docs to mention QuerySet.contains()
, see comment.
Follow up to #24141.
Change History (11)
comment:1 by , 4 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 4 years ago
comment:3 by , 4 years ago
Has patch: | set |
---|---|
Owner: | changed from | to
Patch needs improvement: | set |
Status: | new → assigned |
comment:4 by , 3 years ago
SInce the PR https://github.com/django/django/pull/14161 is closed, I think Adam is not working on it.
I would be happy to take this up since tim-mccurrach
has left quite a detailed note on the PR and it would be easy for me to pick up the recommendation and add it in a separate PR.
comment:5 by , 3 years ago
Owner: | changed from | to
---|
comment:6 by , 3 years ago
Owner: | removed |
---|---|
Status: | assigned → new |
comment:7 by , 3 years ago
Owner: | set to |
---|---|
Status: | new → assigned |
I'll pick up this ticket where the previous PR left off
comment:8 by , 3 years ago
Patch needs improvement: | unset |
---|
comment:9 by , 3 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
Note:
See TracTickets
for help on using tickets.
I've had a go at addressing this change. I suspect this will need some refinement. The PR is at https://github.com/django/django/pull/14161