What is the best way to handle duplicate insertion?
Either we should check before insertion if item already exist then notify user for duplicate entry or we can handle error message and let user know that its a duplicate entry.
Using first approach will cost us an extra database call.
Or if there is any other better approach to handle this please let me know.
Duplicate insertion is at database level.
Or
Or
Checking Whether data exists before insertion is a expensive call and that too you will have to hit on master so try to avoid that.