by Kieran Briggs.
Our site uses both an external database and the built in. We have some courses which the teacher manually enrols the students onto the course but we also have an external system which links the ID of a course with enrolments. I'll try the slow query log to see what is going on. Thanks for the tip.