Scenario (edit a Product) -
- Make Change to a Thing
- Change a thing with “Input Value”
Only When ( Input value is different than database record )
My Question -
- When Save button pressed, Save the input value to database ( no matter same or different )
( input’s initial value = called from database )
OR - Have the App check whether the Input has different value, Before update to database.
Which one is Faster?
Does no.2 still query database at lease once? Or when the apps load Input’s initial value, data already cache?