We are using moodle version 3.10 and External database for Enrolments
The user base is large with around 7000 users online seen in 5 min interval. The external enrolment database has around 300K rows.
When the external db enrolment method is enabled, then with each user login to the website, moodle do access the external database to query enrolment for that users and this creates high number of active dB connections and degrades performance.
Is it possible to disable this default behavior (update enrolment upon login) and use ONLY Synchronise external database enrolments task (\enrol_database\task\sync_enrolments) to do bulk update each period of time.