-
Bug
-
Resolution: Fixed
-
Minor
-
2.8
-
MOODLE_28_STABLE
-
MOODLE_28_STABLE
-
MDL-47893-master -
As the title suggests, bulk updating grades for larger courses (M sized courses or bigger) causes database timeouts due to thousands of grades trying to be updated in one go.
Reproduction steps
- Create an M-sized or bigger course
- Go to the single view for that page and select a grade item
- Select override all
- Bulk insert a new grade for empty grades and hit submit
- Observe that you will either get an error or a blank page. Try reloading the grader report or single view. Note that neither of these pages will load.
Expected results
You should be able to bulk update just one page of a paginated single view.
Actual results
Single view tries to override all grades of all the paginated pages and causes timeouts as a result of this.
What looks like is happening here is that since the single view is paginated, selecting 'override all' should only be overriding the grades on the current page. However, it seems that the pagination is ignored and all grades for the item are trying to be overridden at once. This causes timeout issues.
This should be reworked so that only the current page of grades is overridden.
- blocks
-
MDL-48031 Bulk insert in Single view for a USER updating more than that users grades.
- Closed
-
MDL-47313 Performance review
- Closed
-
MDL-47562 UI Fixes and improvements for Singleview
- Closed
- will be (partly) resolved by
-
MDL-47992 Add progress bar for Single view bulk update operations and fix override bug.
- Closed