In order to decrease the execution time, we should use bulk api to perform the updates on the SObjects