Print this page

How do I speed up recalculation of sharing rules?

Knowledge Article Number 000005033

Problems with Recalculating Sharing Rules

Customers often have changes in their organizations as the company grows—such as adding a new business unit, which requires adding additional roles to a hierarchy. If the customer uses sharing rules to share data between different groups of people, these rules may need to be adjusted to accommodate such changes. Once administrators have made the necessary changes to the sharing rules, they use the recalculate rules feature to make sure access to data is correct and up to date for everyone.

For most customers, recalculating sharing rules takes very little time. For some larger customers with very large amounts of data, however, recalculating sharing rules can take substantial amounts of time. These customers may experience the following issues in such cases:

  • The time required to recalculate the rules approaches the customer’s maintenance window in which the change needs to be made before it starts affecting users of the system.
  • While the recalculation is running, there is little information about progress or when it will be completed.
  • If the recalculation is started on the same day that Salesforce introduces a new release or patch of the service, and is still running when the release happens, the recalculation is killed and must be performed again

What is parallel sharing recalculation?

With parallel sharing recalculation, updates to sharing rules are placed in the standard background processing queue and are processed asynchronously. If there is sufficient capacity available on the customer’s instance, multiple threads are created to process the changes more quickly in parallel. This provides the following benefits:

  • Sharing rule recalculations can be performed much more quickly if capacity is available to allow parallel processing.
  • Each sharing rule recalculation process is listed on the background processes page (accessed via Setup | Monitoring | Background Jobs). This page provides information about who submitted the job, the status, and percentage complete.
  • Because sharing rule recalculations are managed in the job queue, they are not completely interrupted when Salesforce introduces a new release or patch. Instead, they are placed on a queue and completed later.

Should I use Parallel Sharing Recalculation?

Consider using parallel sharing recalculation if updates to your sharing rules frequently take multiple hours to complete. If your sharing rule changes typically complete within a few minutes, don’t use parallel sharing recalculation. In this case, if your instance is heavily loaded, the feature could make your recalculation take longer than the standard synchronous process.


NOTE: More detailed information on these topics can be found in the public document below:

Contact your support representative to determine if this feature is appropriate for your organization.

promote demote