Changes between Version 2 and Version 4 of Ticket #34211


Ignore:
Timestamp:
Dec 13, 2022, 12:36:08 PM (2 years ago)
Author:
polarmt
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #34211

    • Property Keywords performance regression added
  • Ticket #34211 – Description

    v2 v4  
    4444}}}
    4545
     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
    4648Every object created will go through the following logic:
    4749
     
    7476}}}
    7577
     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
    7680If 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.
    7781
Back to Top