teammates icon indicating copy to clipboard operation
teammates copied to clipboard

Apply lazy-loading of question responses in session results page

Open wkurniawan07 opened this issue 2 years ago • 5 comments

Current: Upon loading the session results page, the responses of all questions are loaded.

Problems:

  • Not performant at large number of responses.
    • While it does not introduce burst of parallel API calls, as the burden of fetching all responses falls on one single API call, it is not difficult to see the potential performance issue at large enough scale.
  • There is a not-small chance that a user only wants to see the responses of a question somewhere before or until the middle of the page. That means the bottom half of the page is wasted.

Note: While this is in the same spirit as #11640, the root cause is different and more fundamental here.

Solution:

  • Upon loading the page, only fetch the list of questions, just like how submission page and feedback report page for instructors work.
  • (similar to #11640) Apply lazy loading; only load the responses of the question when the question is in viewport.

wkurniawan07 avatar Mar 10 '22 00:03 wkurniawan07

Would like to pick this up!

NicolasCwy avatar Apr 12 '22 15:04 NicolasCwy

Hi, is this issue still available? If yes, I would like to work on this issue.

tsy24 avatar Jun 27 '22 15:06 tsy24

@tsy24 Please go ahead!

NicolasCwy avatar Jun 28 '22 14:06 NicolasCwy

@wkurniawan07 Hi, I would like to work on this issue. Kindly let me know if it's available

2022H1030042G avatar Sep 07 '22 12:09 2022H1030042G

Hi @AdwitiyaMishra, thanks for your interest! There is a PR for this issue already, please find another issue to work on.

ypinhsuan avatar Sep 09 '22 07:09 ypinhsuan