how did Record lock in salesforce in my scenario and how to avoid it?
we have a scenario where User role is changes we have to update Account field then Account’s trigger will update 5 related objects so their triggers also fire 🙂 . Earlier we have used process builder at Account level but we are hitting CPU limit so we are switching to Asynchronous (via trigger) .