http://www.salesforcereader.com/2024/04/implementing-apex-cursors-for-optimal.html