studentquiz / moodle-mod_studentquiz

Moodle-Plugin
GNU General Public License v3.0
38 stars 38 forks source link

Duplicate indexes on the studentquiz_comment table #362

Open timhunt opened 2 years ago

timhunt commented 2 years ago

As found by @t-schroeder in pull 359, the studentquiz_comment table declares indexes on the three columns userid, questionid and usermodified even though there are already foreign keys on those columns.

Moodle automatically creates indexes where foreign keys are declares, so these manual indexes are unnecessary and inefficeint. They should be removed.