This blog covers one of the alternative solutions for dealing with tasks that require fetching and manipulating large amounts of data from the database. Of course, you can always rely on standard SQL scripts, but I feel that this approach allows for more flexibility.