You can either add a composite index on grid_lvl and grid_priority or use a hint for the index.