Issue Details (XML | Word | Printable)

Key: MDL-20912
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: moodle.com
Reporter: Wen Hao Chuang
Votes: 0
Watchers: 2
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

Inefficient cron job query related to gradehistorylifetime setting on the cleanup page (mdl_grade_grades_history)

Created: 20/Nov/09 08:53 AM   Updated: 09/Dec/09 12:52 AM
Component/s: Gradebook, Performance
Affects Version/s: 1.9, 1.9.1, 1.9.2, 1.9.3, 1.9.4, 1.9.5, 1.9.6
Fix Version/s: None

Database: Any
Participants: moodle.com and Wen Hao Chuang
Security Level: None
Affected Branches: MOODLE_19_STABLE


 Description  « Hide
See more details in the forum discussion http://moodle.org/mod/forum/discuss.php?d=138337

Basically by default, Moodle 1.9.x will set up a cron job that would run this following query every 15 minutes to clean out the "grade history" table. This doesn't cause any site slow or serious bump in CPU but it's still not a efficient query and things could get worse (query > 2 - 3 seconds) when the table gets really big. According to Tim, this query is related to the gradehistorylifetime setting on the cleanup page. I'm filing a bug report here and I should be able to come up with a patch shortly. Stay tuned.



 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.