-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
4.1.12
-
None
-
MOODLE_401_STABLE
We experienced performance issues in Moodle due to excessive database activity caused by a user's Google Calendar import. The logs indicate that during each import, Moodle creates a large number of calendar event records within a very short period, leading to high memory usage and "too many database connections" errors.
Steps to Reproduce:
- Set up a Google Calendar import in Moodle.
- Schedule it to sync hourly.
- Monitor the database activity during import.
- Observe if multiple event records are created excessively.
Expected Behavior:
Moodle should efficiently sync events without overloading the database.
Actual Behavior:
The import process creates a high number of event records rapidly, consuming system resources and leading to performance degradation.
Temporary Workaround:
We have reduced the calendar sync frequency to once per day for the affected user.