MDL-35127 mod_assign More efficient use of expensive database queries