I have a stored procedure with a cursor inside for the logic which is taking long time for execution . I have changed to while loop for faster execution but Even while loop take