In our application we have lots of procedures and most of them use insert and update statement. In few cases we used merge but most of the time we faced deadlock issues, to avoid deadlock and slowness of application what are the steps that we need to take care and can suggest any best practice while writing the procs