There's something I need to do, i.e. running queries in batches. There's a member table that contains like 200 rows. What I'm doing right now is, using FOR loop, selecting each row, running a complex mathematical equation for the row, and inserting new records to another table.
This is fine now since there's only 200 rows. If there are like 15000 members, this loop may cause trouble.
So I'm wondering how I can compute the equation taking 500 rows (1-500), reload the page for another 500 (501-1000), and so on... until it's done.
Is there any way I can do it? Or perhaps a class or something that would help me accomplish exactly what I'm trying to do here?
Thanks