Firstly, we're now explicitly instructing the comments service to not return thread responses/comments if the request isn't AJAX. So, if you load the URL for a single discussion thread in your browser, this would be a non-AJAX call and we'll avoid loading the responses for the entire thread behind-the-scenes. Big win here for large threads. Next, we removed a redundant "get threads" call which was also happening behind-the-scenes. This call was redundant as the front-end JS also grabs the thread list when a topic is chosen, so we were making an extranenous call for no benefit. Poof, gone! Finally, we added some caching of database queries that are required to drive a lot of the permissions/cohorts machinery around discussion. This will have a minimal effect but introduced a cleaner way to apply general memoization at the per-request level which will let us further cache things as we identify them as issues.
Name |
Last commit
|
Last update |
---|---|---|
.tx | Loading commit data... | |
cms | Loading commit data... | |
common | Loading commit data... | |
conf/locale | Loading commit data... | |
docs | Loading commit data... | |
lms | Loading commit data... | |
openedx | Loading commit data... | |
pavelib | Loading commit data... | |
requirements | Loading commit data... | |
screenshots/baseline | Loading commit data... | |
scripts | Loading commit data... | |
static/monitoring | Loading commit data... | |
test_root | Loading commit data... | |
themes | Loading commit data... | |
vendor_extra/tinymce | Loading commit data... | |
.coveragerc | Loading commit data... | |
.eslintignore | Loading commit data... | |
.eslintrc.json | Loading commit data... | |
.gitattributes | Loading commit data... | |
.gitignore | Loading commit data... | |
AUTHORS | Loading commit data... | |
CHANGELOG.rst | Loading commit data... | |
CONTRIBUTING.rst | Loading commit data... | |
LICENSE | Loading commit data... | |
README.rst | Loading commit data... | |
circle.yml | Loading commit data... | |
codecov.yml | Loading commit data... | |
manage.py | Loading commit data... | |
openedx.yaml | Loading commit data... | |
package.json | Loading commit data... | |
pavement.py | Loading commit data... | |
pylintrc | Loading commit data... | |
pylintrc_tweaks | Loading commit data... | |
setup.cfg | Loading commit data... | |
setup.py | Loading commit data... |