Page 1 of 1

i know it use much resources if you use too many 'for' loop

Posted: Mon Mar 10, 2003 9:32 am
by dilbert
but how many loop mean 'too many' , it is too much if I am using it 300(loop 300 times) ?

Posted: Mon Mar 10, 2003 9:46 am
by twigletmac
It's got to depend on what you've got in the loop.

Mac

Posted: Mon Mar 10, 2003 9:49 am
by dilbert
if I only getting some data form database and do some simple calculation, does it need much resources?

Posted: Mon Mar 10, 2003 10:40 am
by pootergeist
8O you're querying the database 300 times? 8O

show us the code - perhaps we can suggest a better approach.