catalyst / moodle-tool_lockstats

Moodle cron / task API lock statistics admin tool
https://moodle.org/plugins/tool_lockstats
6 stars 13 forks source link

Display performance of lockstats table #33

Closed brendanheywood closed 5 years ago

brendanheywood commented 5 years ago

This is call 100+ times inside a loop:

$history = $this->task_has_history($key);

Each one queries the history table, should do this once and group by task and statically cache it.

ilyatregubov commented 5 years ago

code just has been merged. CLosing