MDL-51498 core_grades: Prevent unnecessary grade record fetching
authorMark Nielsen <mark@moodlerooms.com>
Tue, 22 Sep 2015 19:04:28 +0000 (12:04 -0700)
committerMark Nielsen <mark@moodlerooms.com>
Tue, 22 Sep 2015 19:04:28 +0000 (12:04 -0700)
commit5f6e2fc9d34b89ebda737f2871fbb5812102bb9d
tree83be4aafd3d687532b6362eb405b3ad82b7f1035
parentd230899db89b3c1539bdd1be3f3f776cfe3a85f4
MDL-51498 core_grades: Prevent unnecessary grade record fetching

All of these changes make use of already
fetched grade data.  Without these changes,
the gradebook regrade process does not scale
well with very large courses because it fetches
many grade records, one at a time.
lib/grade/grade_category.php
lib/grade/grade_item.php