Chained calls to queryset methods like filter() and exclude() imply a new database query and will cause prefetched results to be ignored. This change is an incremental improvement which more than halves the query count for requests which don't use the marketable_course_runs_only or marketable_enrollable_course_runs_with_archived querystring parameters (from 51 to 22 queries on a system with 1 course and 3 nested course runs). Reducing the query count for requests which do use those parameters requires filtering in Python which mimics the active, marketable, and enrollable queryset methods.
Name |
Last commit
|
Last update |
---|---|---|
.dev/volumes | Loading commit data... | |
.travis | Loading commit data... | |
.tx | Loading commit data... | |
acceptance_tests | Loading commit data... | |
course_discovery | Loading commit data... | |
docs | Loading commit data... | |
requirements | Loading commit data... | |
.bowerrc | Loading commit data... | |
.coveragerc | Loading commit data... | |
.dockerignore | Loading commit data... | |
.gitignore | Loading commit data... | |
.isort.cfg | Loading commit data... | |
.pep8 | Loading commit data... | |
.travis.yml | Loading commit data... | |
AUTHORS | Loading commit data... | |
CONTRIBUTORS.txt | Loading commit data... | |
LICENSE.txt | Loading commit data... | |
Makefile | Loading commit data... | |
README.rst | Loading commit data... | |
api-compact.yaml | Loading commit data... | |
api.yaml | Loading commit data... | |
bower.json | Loading commit data... | |
build.js | Loading commit data... | |
codecov.yml | Loading commit data... | |
docker-compose.yml | Loading commit data... | |
gulpfile.js | Loading commit data... | |
manage.py | Loading commit data... | |
openedx.yaml | Loading commit data... | |
package.json | Loading commit data... | |
pylintrc | Loading commit data... | |
pylintrc_tweaks | Loading commit data... | |
pytest.ini | Loading commit data... | |
requirements.txt | Loading commit data... |