Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve performance #222

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from
Open

Conversation

Changron
Copy link
Contributor

  1. remove status preview in contest detail page
  2. remove redundant db access to improve performance

@@ -132,7 +132,6 @@ def contest(request, cid):
problem = verify_problem_code(problem)
problem.in_contest = check_in_contest(problem)
scoreboard = get_scoreboard(user, contest)
status = contest_status(request, contest)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you also remove contest_status and its import?

@bruce3557
Copy link
Contributor

Any possible to make the query faster?

@bruce3557
Copy link
Contributor

I think in status page we will encounter the same problem

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.

3 participants