Zend certified PHP/Magento developer

How to handle resources with 35,000+ MySQL results which expire. A Cron job loops one by one marking any that has expired. Trouble is, its a long process and demands resources. What’s the best way to do something like this?