utils.py
15.9 KB
-
optimize forum page rendering as we don't pre-compute the link urls to inline… · 18ee1018
optimize forum page rendering as we don't pre-compute the link urls to inline discussions. We can use jump_to urls and then figure out the link path if/when end-user clicks on it. This saves a lot of unnecessary round trips to the DB as path computation is expensive, especially when it being done for every discussion module in a course in a loop.
Chris Dodge committed