Name |
Last commit
|
Last Update |
---|---|---|
.. | ||
locale | ||
tests | ||
__init__.py | ||
admin.py | ||
forms.py | ||
managers.py | ||
models.py | ||
utils.py | ||
views.py |
When passing a QuerySet to bulk_lookup_kwargs(), the queryset was undesirably executed to get a list of IDs. This causes an unnecessary performance loss. There is no need to loop over a QuerySet to execute a IN (1, 3, 4) query. Instead, just allow the ORM and database to execute a IN (SELECT id FROM ..) query. In a real life app with a large set of objects, the difference in performance is noticeable.
Name |
Last commit
|
Last Update |
---|---|---|
.. | ||
locale | Loading commit data... | |
tests | Loading commit data... | |
__init__.py | Loading commit data... | |
admin.py | Loading commit data... | |
forms.py | Loading commit data... | |
managers.py | Loading commit data... | |
models.py | Loading commit data... | |
utils.py | Loading commit data... | |
views.py | Loading commit data... |