MDL-84625 analytics: close recordset when it's not needed anymore

Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
This commit is contained in:
Daniel Ziegenberg 2025-02-21 19:16:25 +01:00
parent 8f0c7bb53c
commit e7825c649e
No known key found for this signature in database
GPG Key ID: 7E6F98FFADBEFD39

View File

@ -1925,6 +1925,7 @@ class model {
$uniqueid = $this->get_time_splitting()->append_rangeindex($dbprediction->sampleid, $dbprediction->rangeindex);
$predictionrecords[$uniqueid]->id = $dbprediction->id;
}
$dbpredictions->close();
}
return $predictionrecords;