Please sign in to comment.
course/index: move orphan fixups to an optimised fix_coursecategory_o…
…rphans() Move the fixups for orphan courses to the newly minted fix_coursecategory_orphans() -- and optimise it to take only 1 dbquery for the common case. If we do find lots of orphans, we issue 2 updates per orphan. This cuts down dbqueries drastically - we used to have 2x the number of courses in the site.
- Loading branch information...
Showing with 46 additions and 17 deletions.