Moodle

Import does not work well when loaded with a lot of courses (60,000+)

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Won't Fix
  • Affects Version/s: 1.9
  • Fix Version/s: None
  • Component/s: Course
  • Labels:
    None
  • Affected Branches:
    MOODLE_19_STABLE

Description

Here is how you repo:

1. Load the moodle installation with 60,000+ courses (using scripts)
2. Load the moodle test case course (download from http://download.moodle.org/testcourse/)
3. Go into the moodle test case course, then click on the "Import" link under the "Administration" block, it load really slow and eventually give up
4. Enable the debug message and you will see this error message (also see screenshot):

Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 53 bytes) in /usr/local/apache2/htdocs/reference/moodle19/lib/dmllib.php on line 728

Issue Links

Activity

Hide
Ann Adamcik added a comment -

This is occurring on our site when trying to do an import as an admin or a site-wide course creator. It looks like the problem is that a user with admin rights gets a dropdown populated with every course on the site, and then another with every course in the same category. It would make more sense to just show the search box for admins and skip populating the dropdown menus with thousands of courses.

Show
Ann Adamcik added a comment - This is occurring on our site when trying to do an import as an admin or a site-wide course creator. It looks like the problem is that a user with admin rights gets a dropdown populated with every course on the site, and then another with every course in the same category. It would make more sense to just show the search box for admins and skip populating the dropdown menus with thousands of courses.
Hide
Michael de Raadt added a comment -

Thanks for reporting this issue.

We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported.

If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed.

Michael d;

lqjjLKA0p6

Show
Michael de Raadt added a comment - Thanks for reporting this issue. We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported. If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed. Michael d; lqjjLKA0p6
Hide
Michael de Raadt added a comment -

I'm closing this issue as it appears to have become inactive and is probably not relevant to a current supported version. If you are encountering this problem or one similar, please launch a new issue.

Show
Michael de Raadt added a comment - I'm closing this issue as it appears to have become inactive and is probably not relevant to a current supported version. If you are encountering this problem or one similar, please launch a new issue.

People

Dates

  • Created:
    Updated:
    Resolved: