Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: 1.9.2
-
Fix Version/s: None
-
Component/s: Database SQL/XMLDB, Performance
-
Labels:None
-
Environment:2 server Linux ubuntu (kernel image 2.6.20-16-server) : application with 4 Xeon E5345 processors, RAM 5.8GB; database with 4 Xeon E5345 processors, RAM 4.0 GB.
-
Database:MySQL
-
Affected Branches:MOODLE_19_STABLE
Description
The moodle locks after a few insertions of students / visitors in a course which is linked to a meta-course. One of the database server processor is fully occupied and no other request for database is treated. It is as if there was a LOCK command in the database without answer.
From mytop application, it's possible to see the following query:
SELECT COUNT(DISTINCT prs.userid) FROM (SELECT ra.userid, ra.roleid AS primary_roleid, ....
It's attached the screen from htop.
Hi Nivaldo, could you give any more details about the query in question?
Entry in slow query log or full details for the query?
I can't find the query you reffer to when searching the moodle codebase.