Page 1 of 1
Most efficient form submission??
Posted: Fri Feb 04, 2011 7:34 pm
by speedamp
hi everybody, i am redeveloping a very old site for a client and they might eventually need to handle a 200,000 site submissions/day.
in the past i have used everything from frameworks to classes to straight linear forms, and i was wondering what everybody thinks is the MOST efficient to avoid any crashes?
note: there will be no uploads of any sort....simply text submissions (10-12 fields of data).
thanks,
-michael
Re: Most efficient form submission??
Posted: Fri Feb 04, 2011 8:46 pm
by MindOverBody
Hm, there's no much to do with forms from perspective of efficiency. Maybe using ajax script might reduce traffic. jQuery offers nice ajax support which provides excellent error event, so if anything crashes you can resend data again. In PHP there's no much things to do or improve, just use fastest function, make few scripts and stopwatch them to se which one is fastest.
Actually, this is quite nice question. I am using same methodology since i learned it at some tutorial many years ago, so I am interested if someone can produce "more efficiently" way of submission.

Re: Most efficient form submission??
Posted: Sun Feb 06, 2011 5:06 pm
by speedamp
i think one thing i might do is separate the logic....one page to process, one for validation, and then a final DB processing page.
next question: anybody have any thoughts on the most efficient DB connection protocol? pconnect? singleton??
thanks!
-michael
Re: Most efficient form submission??
Posted: Sun Feb 06, 2011 7:01 pm
by Weirdan
speedamp wrote:hi everybody, i am redeveloping a very old site for a client and they might eventually need to handle a 200,000 site submissions/day.
200 000 / 24 / 3600 = 2.3 rps . Doesn't sound like anything to worry about.