Showing posts with label Deferred Sharing Rule Recalculation - Deployment Impact. Show all posts
Showing posts with label Deferred Sharing Rule Recalculation - Deployment Impact. Show all posts

Thursday, 11 April 2019

Deferred Sharing Rule Recalculation - Deployment Impact

When you deploy Sharing Rules via the Metadata API or Change Sets, sharing recalculation is run to update User access to records. For larger organizations, this recalculation might take a significant amount of time even after the deployment has been successfully performed. Here's how can you minimize the impact caused by Sharing Rule deployment.



Enable Deferred Sharing Rule Recalculation or Parallel Recalculation

Deferred Recalculation lets you apply sharing rule changes at a later time after you create or edit them.
Parallel recalculation takes advantage of multiple threads to speed recalculation of each object. .
To monitor your deployments done via the Metadata API:
In Classic:

1. Go to your name | Setup.
2. Click Deploy | Monitor Deployments.

In Lightning:
Go to Setup
Click on Environments under Platform Tools in the left hand pane
Click Deploy | Deployments StatusTo monitor your deployments via Change Sets:

The outbound change set page will show the results of the deployment, and an email notification will be sent out. If you notice that your deployment is successful but you are experiencing sharing access issues, you can take steps to mitigate them.

To monitor Sharing Rule recalculations running in parallel mode:
In Classic
1. Go to your name | Setup.
2. Click Monitoring | Jobs | Background Jobs.

In Lightning:
Go to Setup
Click on Environments under Platform Tools in the left hand pane
Click Jobs | Background JobsParallel recalculation jobs are listed together with other background processes, including a percentage estimate of the recalculation progress.

Good to know: Before you contact Salesforce Support to have these features enabled, check out Considerations Before Making Org Wide Sharing Changes, Deferred Sharing Rule Recalculation, and Parallel Recalculation.