MDL-44908: Fix upgrade_grade_item_fix_sortorder performance