Apex Batch http://blogs.developerforce.com/engineering/2013/02/force-com-batch-apex-and-large-data-volumes.html