Changes between Version 2 and Version 4 of Ticket #34211
- Timestamp:
- Dec 13, 2022, 12:36:08 PM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #34211
- Property Keywords performance regression added
-
Ticket #34211 – Description
v2 v4 44 44 }}} 45 45 46 [https://github.com/django/django/blob/stable/3.2.x/django/db/models/query.py#L42 django/db/models/query.py in Django 3.2] 47 46 48 Every object created will go through the following logic: 47 49 … … 74 76 }}} 75 77 78 [https://github.com/django/django/blob/stable/3.2.x/django/db/models/base.py#L404 django/db/models/base.py in Django 3.2] 79 76 80 If the field is a foreign key, then it will call the overrided `__set__`. For one API call, we had a `filter` query on a table with three foreign keys that returns 11k rows. The new `__set__` was called 33k times, and the latency accumulated. 77 81