online-judge
online-judge copied to clipboard
Cache editable and tester problem ids
This is required to render a submission row here, which is called for every single live updated submission on any submissions page.
Disclaimer: I haven't actually tested whether this causes large delays in request time, but surely it can't be good for the DB...
Is this still the case? The link to the code seems outdated, and I think these are reasonably cached now.
Updated link to code: https://github.com/DMOJ/online-judge/blob/master/judge/views/submission.py#L516-L517
These are still not cached, and so a lot of there's unnecessary queries on every live-update.