Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Performance issues with mupltiple forms and single submit.

 
pawan chopra
Ranch Hand
Posts: 417
jQuery Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have a workflow application where we can create a project. Now we have 7-8 forms to create a project. User can fill a incomplete form and save it as a draft. Then from drop down he can select the next form to be filled for project. He can do the same for all the forms. once he save it the application saves it into DB(No validation is done at the time of save). Then may be after 1 hour or 1 day or 1 month he can come back and submit that project for review. Now when he submits the project all the forms are being validated for blank values(There is no any other validation for this). Validator servlet collects all the blank values and write it to a pop windows indicating that these values are mandatory. But validating all the forms at that time is making an impact on performance. Kindly suggest me is there any way to improve the performance. I have to loop through all the values of each form and check for blank.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Now when he submits the project all the forms are being validated for blank values (There is no any other validation for this).
...
But validating all the forms at that time is making an impact on performance. Kindly suggest me is there any way to improve the performance.

These two statements seem to be at odds with each other. Checking a field for whether or not it's blank should be a rather quick operation. Even checking a thousand fields shouldn't take long, and since you mention "7-8 forms" there are probably far fewer fields.

So, what exactly do you mean by "making an impact on performance"? That it takes longer than you would like? If so, what is taking up the time? Is each field retrieved separately from the DB? If so, try to get all the data in as few queries as possible.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic