Slow Login With Large number of students

Slow Login With Large number of students

аз David Korff -
Number of replies: 8

Is there any solution for speeding up the login process when you have a large number of students?

 

In reply to David Korff

Re: Slow Login With Large number of students

аз Visvanath Ratnaweera -
Сурати  корбар Particularly helpful Moodlers Сурати  корбар Translators
Hi

All your initial pointers are in the introduction to the "Hardware and Performance" forum: https://moodle.org/mod/forum/view.php?id=596.

If the authentication is external, also see "Authentication" forum: https://moodle.org/mod/forum/view.php?id=42.
In reply to David Korff

Re: Slow Login With Large number of students

аз Simon Story -
In reply to Simon Story

Re: Slow Login With Large number of students

аз David Korff -
The number of students is nearing 1500.
 
 
 
Picture of Simon Story
Re: Slow Login With Large number of students
by Simon Story - Tuesday, 5 February 2013, 6:21 PM
 

How many is 'large number of students' ?

In reply to David Korff

Re: Slow Login With Large number of students

аз Alex Walker -

How are you doing authentication (logins) and enrolments (adding people to courses)?

When a user logs in, Moodle checks the login details then checks which courses they are enrolled on. This can take its time.

I do enrolments through an external MySQL database. Before, it took 10 seconds to check which courses a user is on in the database (we have 750,000 enrolments records). I optimised our database, and it now takes 0.2 seconds. Login time improved accordingly.

In reply to David Korff

Re: Slow Login With Large number of students

аз Simon Story -

1500 is not that many at all.

So, what makes you think your performance problem is tied to the amount of users you have?

I think as Visvanath pointed out, you should try some general performance improvements.

The comments about an external enrolment DB are just that, they are for managing your enrolements and not your actual student data inside Moodle. Moodle won't be reading from it in the general course of operation, but will sync from it on a regular basis.

http://docs.moodle.org/23/en/External_database_enrolment