Name |
Last commit
|
Last Update |
---|---|---|
docs | ||
taggit | ||
.gitignore | ||
AUTHORS.txt | ||
LICENSE.txt | ||
MANIFEST.in | ||
README.txt | ||
setup.py | ||
tox.ini |
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 |
---|---|---|
docs | Loading commit data... | |
taggit | Loading commit data... | |
.gitignore | Loading commit data... | |
AUTHORS.txt | Loading commit data... | |
LICENSE.txt | Loading commit data... | |
MANIFEST.in | Loading commit data... | |
README.txt | Loading commit data... | |
setup.py | Loading commit data... | |
tox.ini | Loading commit data... |