Infosys Interview Question

How will you optimize a cursor in DB2?