Skip to content

Conversation

@Nishant040305
Copy link
Contributor

@Nishant040305 Nishant040305 commented Jan 9, 2025

@smt96700 this the new pull request i have created

@netlify
Copy link

netlify bot commented Jan 9, 2025

Deploy Preview for computercodingtest ready!

Name Link
🔨 Latest commit 4ab4c48
🔍 Latest deploy log https://app.netlify.com/sites/computercodingtest/deploys/6785f5b0b04c3600086d7402
😎 Deploy Preview https://deploy-preview-67--computercodingtest.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@dwargosama
Copy link
Owner

Same issue as PR-50, More than 1 API calls to codeforces server within 2 seconds is causing issues.

aryan-anand-sde and others added 10 commits January 11, 2025 13:08
Added License & Code of Conduct in the footer
CFdata contains some essential information related to present status
of the CfId which will get updated as the user open its dashboard

Leaderboard schema is to store the previous boards as it also allow
developer to add feature to fetch the previous board and rating update
can be done only as per the contest updates
preprocessing total time:
Codeforces Standing fetch + O(n*(time to save user data if
participated)
as codeforces standings is already in sorted order of its ranking
also helps to get the ups and downs of the user compare to previous
contest performance
/leaderboard <POST contestId>
if a leaderboard already exist returns it

if not fetch the previous board and creates new board
with users in the previous board and also updatig the ranking

if not participated but participated in the previous board
then add them in the last with position update

/updateCfdata to update the cf data as user opens the dashboard
reducing the over head of multiple get req of fetching users data
@Nishant040305
Copy link
Contributor Author

Nishant040305 commented Jan 14, 2025

Same issue as PR-50, More than 1 API calls to codeforces server within 2 seconds is causing issues.

i have resolve the issue u can test that as i am using api calls of the dashboard to update the content in avatar
and standings data to update rating
the only change in the principle is it
wont show the users who didnt participated in the last contest
as the contest continues it will only ignore those who from the point of this comment have never participated as it always add users participated in the previous contest same as prefix sum it cumulatively add user
Screenshot 2025-01-14 110238

@Nishant040305
Copy link
Contributor Author

@adityarai0705 with it also solves the issue of EE1100 duplicate key error

@dwargosama
Copy link
Owner

@smt96700 Please review it.

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.

4 participants