In the Apex class, I’ve used Apex Cursors for handling a large volume of records efficiently. The class processes records in chunks of 200 per Queueable transaction. When fewer than 200 records remain, the batch size automatically adjusts to match the remaining count.
This class retrieves all U.S. Contact records and updates the Citizenship_Status__c field to “US Citizen.”
