continue
I have this application that has a form with a drop-down list and a button.
After the form is submitted, another form is loaded in the page using ajax. this happens 5 times.
all forms are the same and contain only a drop-down list and a button.
also each form has attached to it a mysql query that determines what each drop-down will contain.
My question deals with the server requests. I believe that in this application i do 5 server requests, one for each form .
Is it better to create a single page that contain all forms vs the app described above?
i am talking at a load on 80.000 people hitting this application
thanks
edit:
the app works like this:
there is a drop down -> user selects a option and submits ---with ajax---> another form is loaded, a query is made based on previous selection -> user selects a option and submits....etc 5 times
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Yes - no need to hit the db every time... unless the forms are data driven and the mysql query uses input from the users. I would build the whole form into the JavaScript beforehand.