local_o365: Improve processing of suspend/delete users feature.
Open
tlock
opened this issue 8 months ago
•
0 comments
- 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.