Seconded. But look at the OPs code. If the //select a row part actually fires a database query it's more than reasonable, that 10,000 iterations are somewhat faster than 5000000 =).
holli
You can lead your users to water, but alas, you cannot drown them.
Comment on Re^2: how do hashes work - complexity question