2 ms·
This was a page in an e-learning system showing student results. It was all calculated on page load and iirc there were a few too many ‘look all these things up
by Aeolun 6y ago
This was a page in an e-learning system showing student results. It was all calculated on page load and iirc there were a few too many ‘look all these things up for one student at a time’ kind of situations that compounded.
You could cache that information, but you’d need to update it every time someone submits a new result (in this case to a test that can have tens of questions), times 30 students in class, times multiple tests.
In hindsight I think we could maybe have precalculated the results after the last student finished, but that wouldn’t really be worth it for a page that took maybe a few seconds to load.