Partitioning A Big Calculation?
<p>There's a little script that grabs a bunch of data from a database, and does an iterative calculation.  There are about 2500 rows used in this calculation, so it's not a huge amount, but my boss wants me to partition the calculation anyways (as an exercise).</p>

<p>My general strategy (and I'm just shooting in the dark) is to hit the database, grab the first 50 rows, do each step in the calculation for those 50 rows, store the last row (as the calculation is iterative), grab the next 50 rows from the database and continue this process until all of the rows in the database have been accounted for.  </p>

<p>Thoughts on my strategy? Any tips for doing this sort of thing?</p>
