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 |
---|---|---|
.. | ||
api_admin | Loading commit data... | |
auth_exchange | Loading commit data... | |
bookmarks | Loading commit data... | |
cache_toolbox | Loading commit data... | |
catalog | Loading commit data... | |
ccxcon | Loading commit data... | |
commerce | Loading commit data... | |
common_views | Loading commit data... | |
content | Loading commit data... | |
contentserver | Loading commit data... | |
cors_csrf | Loading commit data... | |
course_groups | Loading commit data... | |
coursegraph | Loading commit data... | |
coursetalk | Loading commit data... | |
credentials | Loading commit data... | |
credit | Loading commit data... | |
dark_lang | Loading commit data... | |
datadog | Loading commit data... | |
debug | Loading commit data... | |
external_auth | Loading commit data... | |
geoinfo | Loading commit data... | |
header_control | Loading commit data... | |
heartbeat | Loading commit data... | |
lang_pref | Loading commit data... | |
models | Loading commit data... | |
monitoring | Loading commit data... | |
monkey_patch | Loading commit data... | |
oauth_dispatch | Loading commit data... | |
performance | Loading commit data... | |
profile_images | Loading commit data... | |
programs | Loading commit data... | |
safe_sessions | Loading commit data... | |
self_paced | Loading commit data... | |
service_status | Loading commit data... | |
session_inactivity_timeout | Loading commit data... | |
signals | Loading commit data... | |
site_configuration | Loading commit data... | |
theming | Loading commit data... | |
user_api | Loading commit data... | |
util | Loading commit data... | |
xmodule_django | Loading commit data... | |
__init__.py | Loading commit data... |