Page 1 of 1

Slow writeing to database is creating problems

Posted: Fri Jun 10, 2005 3:36 am
by icarpenter
I have user registration page wich has approx 20 fields ie: firstname, lastnam...etc etc.

When this information is submitted to process page and then to the database, there is a pause of approx 4 to 6 seconds before a confirmation from the process page is displayed.
I think some of this delay may be related to the mail() function which sends and email confirmation of the registration details. as the process seems much quicker when mail() is commented out!

This leaves me with the problem of the user looking at the submit page for up to 6 seconds and as result an impatient user can resubmit more than on form of the same information as there is no indication that the process is underway...

The speed of this does vary on my test machine the proccess is very quick and is not an issue however on the hosted server this is takes a little longer...

Has anyone got any suggestions on how this proccess might be structured.

Thanks Ian...

Posted: Fri Jun 10, 2005 3:37 am
by malcolmboston
post your code, ive done pretty much exactly what you've mentioned with no delay

it may actually have something to do with usage of the server you are on, basically other sites could be using alot of the CPU cycle, but it is better to eliminate your own coding from the equation

Posted: Fri Jun 10, 2005 4:06 am
by patrikG
moved to PHP Code.