Skip to content

Conversation

@ihsaan-ullah
Copy link
Collaborator

@ihsaan-ullah ihsaan-ullah commented Nov 7, 2024

1. Home page Competitions are static now

Now you will see specific competitions in popular and featured competitions as a temporary fix to not use count participants. We should put this back as a dynamic feature when we optimize the code.

  • Popular: competition with many participants and submissions
  • Featured: we should be able to manually feature a competition from django admin/django bash

Solves: part of #1648 -> Home page popular and featured competitions

TODO: show the competitions again after fixing the queries

2. Home page static counters

Now we will see static number of comps, users and submissions to unblock users from using codabench. We want to update these numbers in a db or a file once a day and then fetch from there to not run expensive queries all the time when someone loads the home page

Solves: part of #1648 -> Global counters

TODO: show real counters from file/db when implemented


We should add the TODOs to #1647

@ihsaan-ullah ihsaan-ullah changed the title Optimize - Home page counters made static Optimize Home page: Comps removed and counters made static Nov 7, 2024
@ihsaan-ullah ihsaan-ullah changed the title Optimize Home page: Comps removed and counters made static Optimize Home page: Featured and popular comps and counters made static Nov 7, 2024
@ihsaan-ullah ihsaan-ullah changed the title Optimize Home page: Featured and popular comps and counters made static URGENT - Optimize Home page: Featured and popular comps and counters made static Nov 7, 2024
@ihsaan-ullah ihsaan-ullah merged commit e352bec into develop Nov 7, 2024
@ihsaan-ullah ihsaan-ullah deleted the home_page_speed branch November 7, 2024 16:00
@ihsaan-ullah ihsaan-ullah linked an issue Nov 9, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Optimization Discussion

2 participants