cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
FelipeCaru
Level 8

Submitform(form) vs Patch

Hello all,

I have a question regarding submitForm and Patch. Is there any substancial difference between the two (performance, for example)? If my app has data in an Excel sheet, about 500 lines or so, in which from the 10 columns (more or less), only 4 or 5 are edited by users, would it be better to use one over the other?

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Submitform(form) vs Patch

@FelipeCaru 

I believe the answer is - indirectly.

In general the submit form function will do very similar actions as your Patch.  The biggest difference is, a Form has a lot of overhead.  It is built to handle many different variations of data and field types.  Due to this, there is more processing that has to occur for all of the conditions to happen.  For the most part, it is not noticeable, but technically, there is a big difference between a function that handles many variations as opposed to a Patch that is very specific.

Your situation may vary.  Choosing one over the other is a choice of function in many cases as opposed to performance.  Since the Form handles so many aspects for you - if you need those aspects to be handled rather than designing formulas for them, then use the Form.  If you have very specific data and it's not a hassle to do, then use a Patch.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
2 REPLIES 2
Super User
Super User

Re: Submitform(form) vs Patch

@FelipeCaru 

I believe the answer is - indirectly.

In general the submit form function will do very similar actions as your Patch.  The biggest difference is, a Form has a lot of overhead.  It is built to handle many different variations of data and field types.  Due to this, there is more processing that has to occur for all of the conditions to happen.  For the most part, it is not noticeable, but technically, there is a big difference between a function that handles many variations as opposed to a Patch that is very specific.

Your situation may vary.  Choosing one over the other is a choice of function in many cases as opposed to performance.  Since the Form handles so many aspects for you - if you need those aspects to be handled rather than designing formulas for them, then use the Form.  If you have very specific data and it's not a hassle to do, then use a Patch.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
FelipeCaru
Level 8

Re: Submitform(form) vs Patch

@RandyHayes 

Thank you very much for the answer. I think I'll keep to form since it is what works for me and since I have different fields and whatnot (: