Hi everybody, first of all sorry about my English.
I was looking for similars problems in the forum but nothing like our situation. Explain:
We've external enrolment data base plugin, and We've activated enrol_db_coursetemplate Param for create news courses from other courses. The problem is that in our organitation we create 500 courses at the same time. With a simple sync with only 3 courses the server was busy for 15 min, that means 2500 min for all our courses (2 days!!)
We trace the code and the botle neck are two moodle function:
backup_course_silently($srccourseid, $backupprefs, $error)
import_backup_file_silently($backupfile, $dstcourseid, true, false, $restoreprefs);
Anybody has a similar problem with this kind of configuration?
Thank's in advance
Israel Fores