Re: [PHP] my php script is very slow. help?

2001-07-27 Thread Deependra B. Tandukar
If your Database is big, avoid loops which goes to whole the DB. This is just one thought. DT - Original Message - From: hassan xaaji [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 27, 2001 15:36 Subject: [PHP] my php script is very slow. help? Hi all I have

Re: [PHP] my php script is very slow. help?

2001-07-27 Thread Tom Carter
Do you have many DB queries? What is the average size of the result returned? have you tried running timing functions on it to get a measure of how long the page is taking? theres many examples on the web.. You can also use these to calculate the time for different sections.. that should help

RE: [PHP] my php script is very slow. help?

2001-07-27 Thread Jack Dempsey
Be careful with any sort of nested loops. You may not be able to avoid them, but if you nest a while loop within another while loop, and simply iterate through results, you will have quadratic running time. This isn't a big deal if you've got 20 results, but for every increase in N (size of

RE: [PHP] my php script is very slow. help?

2001-07-27 Thread Matthew Loff
] my php script is very slow. help? Do you have many DB queries? What is the average size of the result returned? have you tried running timing functions on it to get a measure of how long the page is taking? theres many examples on the web.. You can also use these to calculate the time

Re: [PHP] my php script is very slow. help?

2001-07-27 Thread Unni
If you are using DB queries a lot, try to use LIMIT, this will save lot of your time. Tom Carter wrote: Do you have many DB queries? What is the average size of the result returned? have you tried running timing functions on it to get a measure of how long the page is taking? theres many