procedure to follow when changing the sql-optimizer settings