aspose file tools*
The moose likes Performance and the fly likes Performance issues with mupltiple forms and single submit. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Performance
Bookmark "Performance issues with mupltiple forms and single submit." Watch "Performance issues with mupltiple forms and single submit." New topic
Author

Performance issues with mupltiple forms and single submit.

pawan chopra
Ranch Hand

Joined: Jan 23, 2008
Posts: 413

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.


Pawan Chopra
SCJP - DuMmIeS mInD
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42648
    
  65
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.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Performance issues with mupltiple forms and single submit.