#37088: path based MediaAsset equality
-------------------------------------+-------------------------------------
Reporter: Johannes Maron | Owner: Johannes
| Maron
Type: Bug | Status: closed
Component: Forms | Version: 6.0
Severity: Normal | Resolution: fixed
Keywords: Media MediaAsset | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Jacob Walls <jacobtylerwalls@…>):
In [changeset:"fb30b085264493161a420587b281d21772829520" fb30b085]:
{{{#!CommitTicketReference repository=""
revision="fb30b085264493161a420587b281d21772829520"
[6.1.x] Fixed #37088 -- Included attributes in media object equality.
Since in the majority of cases the `MediaAsset.attributes` will be
empty or small, there's only a tiny performance penalty.
However, the accidental use of the `path` property caused
a 1_000x performacne degredation (N=1_000_000).
Backport of bc9bed573ce39c3b739a4a3b7848816d464b6bdc from main.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/37088#comment:13>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-updates/0107019e4baccd2f-64d08c02-8a41-4ff7-8563-6de4d5a0db16-000000%40eu-central-1.amazonses.com.