Repository navigation
Closed
Labels
Description
Codabench is too slow to load.
-
Home page of competitions are loading everything at once. We need a lazy loading.
-
When a loading is long, it is decreasing the performance for everybody else (this is normal I guess).
-
Competitions list is slow to load too, despite the small logos (Add thumbnail logo to competitions to increase loading speed of the list #1290). Code of this page: https://github.com/codalab/codabench/blob/f83f94c1e492da524fef5b2f6ccf26846fa88b69/src/static/riot/competitions/public-list.tag
TODO
- Increase the CPU and RAM of the main VM
- Increase the CPU and RAM of the main VM (again)
- Competition page
- Trying to remove "entries" column from leaderboard, which may be the one that is slow to load (Removed num_entries becasue the count was slowing down the platform #1673)
- Put back "entries" in an efficient way
- Pagination for "Submissions" tab (and lazy loading)
-
"Show more" on leaderboard results tab. By default show 30 rows, and add more when clicking on show more. If the participants is not on the first 30, it could still be shown at the bottom of the table after some "[...]" row
- Competition list
- Optimize the code for loading the competitions list (@bbearce) (CompetitionSerializer Simple vs Detail #1376) (Public competition filtering #1381)
- Public competition filtering #1381 improves the query by directly filter public competitions. We need to improve the filter to take into account the dates and page of the public list we are displaying.
- General performance and home page
- Remove temporarily participants and submissions counters to accelerate the competition loading URGENT - removed count from competition query to fix the codabench #1645
- Participants and submissions counters in an efficient way (Optimization
PR#2- Submissions and Participants Count #1669) - Featured competitions manually set (Optimization
PR#1- Featured competitions #1678) - Home page counters (Optimization
PR#3- Home page counters #1699)- Update the counts somewhere in a file or in the db with a script that is run once a day
- Update home page to fetch the counts from the file/db to make them dynamic instead of hardcoded
Activity
ihsaan-ullah commentedon Feb 20, 2024
This needs proper planning as code cannot be optimized with current structure of the web page. It is a big update
Didayolo commentedon Feb 22, 2024
Still very slow after merging #1343
bbearce commentedon Apr 1, 2024
Tested and think I have a fix:
Docs for automation to create large amounts of data
Essentially we used the CompetitionDetailSerializer to load competitions and I switched to CompetitionSerializerSimple. The detail one serializes phases and tasks and I believe that is time consuming. The Simple one has everything we need and it loads things faster on my local when I create lots of data. using selenium.
Didayolo commentedon Apr 3, 2024
@bbearce #1376 is deployed on production, let's see if it helps!
Didayolo commentedon Oct 29, 2024
We need to make the loading of competition page lazy.
codabench/src/apps/api/views/competitions.py
Line 160 in c2cd638
codabench/src/apps/api/views/submissions.py
Line 31 in c2cd638
ihsaan-ullah commentedon Nov 3, 2024
What do you think if we separate the admin procedures from the competition detail page? Similar to Edit page we can separate the submissions, participants etc in separate pages
Didayolo commentedon Nov 4, 2024
That may be a good idea, especially for "Submissions" which can be heavy. However this will accelerate the loading only for organizers and admins.
Didayolo commentedon Nov 5, 2024
We removed temporarily the submissions and participants counters to unblock the platform (#1646)
ihsaan-ullah commentedon Nov 7, 2024
Here is what we want to do:
Featured Competitions on home page (Solved by: #1678)
is_featuredthat controls if a competition is featured or notSubmissions and Participants (Solved by: #1669)
Home page counters (Solved by: #1699)
Long term solution for competition details page
Didayolo commentedon Mar 21, 2025
@ihsaan-ullah Just a quick note to remind ourselves that the submission counter is still not re-implemented on the leaderboard (always showing "1 entry")
ObadaS commentedon Apr 1, 2025
We have decided to remove the column showing the number of entries in the leaderboard (which we disabled a while ago because of the performance issues it caused)
ihsaan-ullah commentedon Jul 5, 2025
I think we can close this issue because the remaining problems are big updates and we will cover them in the future anyway.
Didayolo commentedon Jul 8, 2025
OK, I close this issue @ihsaan-ullah.
I am not sure if adding back "entries" on the leaderboard is a big update? Or maybe we simply remove the column so at least it is not wrong? (always showing 1 entry)
EDIT: just saw your PR #1912