Skip to content

local_o365: Improve processing of suspend/delete users feature. #2819

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
wants to merge 1 commit into
base: MOODLE_404_STABLE
Choose a base branch
from

Conversation

tlock
Copy link

@tlock tlock commented Mar 21, 2025

  • Change user_update_user to set_field for suspended users.
  • user_update_user() was running 153 queries for every suspended user based on deleted users in the last 30 days from Entra.
  • Add Entra users to a temp table for the database to determine the deleted users to be suspended.
  • When comparing hundreds of thousands of Moodle™ users against hundreds of thousands of Entra would take hours.

 - Change user_update_user to set_field for suspended users.
 * user_update_user() was running 153 queries for every suspended user based on deleted users in the last 30 days from Entra.
 - Add Entra users to a temp table for the database to determine the deleted users to be suspended.
 * When comparing hundreds of thousands of Moodle™ users against hundreds of thousands of Entra would take hou rs.
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.

1 participant