MDL-54797 course: Add indexed field to condition of delete query
authorAdam Olley <adam.olley@netspot.com.au>
Thu, 2 Jun 2016 06:12:16 +0000 (15:42 +0930)
committerAdam Olley <adam.olley@netspot.com.au>
Thu, 2 Jun 2016 06:13:30 +0000 (15:43 +0930)
commite9f7c4a4b271c1b640639b9feca6430eddf5aee9
treef389a11a864e039df90f1c7702806a2312e53714
parent6a74e76fb8f35b56691bf5c9d07e5e2dfcb01c10
MDL-54797 course: Add indexed field to condition of delete query

Deleting records from the course_completion_criteria table goes much
faster when we include the indexed course field in the delete query.
course/lib.php