When a query is used in a cursor, it may require or choose different indexes than the same query used outside of a cursor.