Skip to content
This repository has been archived by the owner on Dec 13, 2024. It is now read-only.

Commit

Permalink
MDL-59970 competencies: performance
Browse files Browse the repository at this point in the history
Remove useless get_records call in get_least_proficient_competencies_for_course function.
On big sites this would cause huge memory usage.
  • Loading branch information
Damyon Wiese committed Nov 22, 2017
1 parent 4275ea4 commit 9a7671d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion competency/classes/user_competency_course.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,6 @@ public static function get_least_proficient_competencies_for_course($courseid, $
ORDER BY p.timesproficient ASC, c.id DESC';

$results = $DB->get_records_sql($sql, $params, $skip, $limit);
$a = $DB->get_records_sql('SELECT * from {' . self::TABLE . '}');

$comps = array();
foreach ($results as $r) {
Expand Down

0 comments on commit 9a7671d

Please sign in to comment.