Skip to content

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 hou rs.

 - 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