Skip to content

CheckAssignmentStatus is slow and inefficient #6224

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

Open
ragesoss opened this issue Feb 27, 2025 · 4 comments
Open

CheckAssignmentStatus is slow and inefficient #6224

ragesoss opened this issue Feb 27, 2025 · 4 comments

Comments

@ragesoss
Copy link
Member

During the ConstantUpdate process, the CheckAssignmentStatus takes quite a while in Wiki Education, and makes a whole lot more database queries than are probably necessary... basically a constant stream of Wiki load, User load, and Assignment exists? queries.

It also makes a separate query to mediawiki for every page it checks.

There's probably a lot of efficiency to be gained by handling this process better in terms of batching both database queries and external API usage.

@syedbarimanjan
Copy link

syedbarimanjan commented Mar 16, 2025

@ragesoss I am an outreachy intern and would like to work on this.

@betty-alagwu
Copy link
Contributor

@syedbarimanjan can you please confirm if you're still working on this, I've got an idea on how to resolve this issue.

@syedbarimanjan
Copy link

@syedbarimanjan can you please confirm if you're still working on this, I've got an idea on how to resolve this issue.

I have been sick for the past two weeks, so no work on it from me. You can take it.

@betty-alagwu
Copy link
Contributor

@ragesoss I'll be taking this on

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants