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

/participant_data/ too many queries #345

Open
metenn opened this issue Mar 18, 2024 · 2 comments
Open

/participant_data/ too many queries #345

metenn opened this issue Mar 18, 2024 · 2 comments

Comments

@metenn
Copy link
Contributor

metenn commented Mar 18, 2024

With 7 models referencing back to the Participant model and no prefetch_related()/select_related(), participants_data view produces a ton of queries, which is slow.

@otargowski
Copy link
Contributor

Is comprehensively optimizing oioioi in the area of db queries planned for the near future (this semester)?
If so, then I have some patches, which greatly improve the performance for the some of the basic views for contests with a lot of problems (let's say 30+, but 100+ was the target).
Iirc, most of those are trivial (@request_cached or select/prefetch_related).

@MasloMaslane
Copy link
Member

Recently, we (as in OI's tech team) started looking into improving the performance of oioioi. We'd be very grateful if you would like to share your patches with us!

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

No branches or pull requests

3 participants