---
schema_version: "1"
id: 7879cbdcf2ec068861566186cf288715c6aa63607d71df62664623deb04c8e80
title: Defer Sharing Calculations
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/security_sharing_defer_sharing_calculations.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.security_sharing_defer_sharing_calculations.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: c47b1b6b4f012a4c582d09b6973afd3e7223f1ef7a6e3a0cf9c7c88897f1b4f4
description: Performing a large number of configuration changes can lead to very long sharing rule evaluations or timeouts. To avoid these issues, a Salesforce admin can suspend sharing calculations, specifically for sharing rules and group membership, then resume calculations during an organization's maintenance period.
products:
  - Security
  - Salesforce Platform
release: "264"
---
# Defer Sharing Calculations

Performing a large number of configuration changes can lead to very long sharing rule evaluations or timeouts. To avoid these issues, a Salesforce admin can suspend sharing calculations, specifically for sharing rules and group membership, then resume calculations during an organization's maintenance period.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: both Salesforce Classic and Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Performance</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions</td></tr></tbody></table>

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-access-264-0-0-production-enus/a92be132-3cbc-412a-9262-130636120c14/images/icon_note.png)

Note The defer sharing calculation feature isn't enabled by default. To enable it for your organization, contact Salesforce Customer Support.

By default, sharing rules and group membership are recalculated after certain updates to related features, such as sharing settings, roles, territories, groups, and users.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
      <colgroup>
        <col style="width:50%">
        <col style="width:50%">
      </colgroup>
      <thead class="slds-text-title_caps ">
        <tr class="">
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d63546e76">Type of Sharing
            Calculation</th>
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d63546e79">Occurs When You</th>
        </tr>
      </thead>
      <tbody>
        <tr class="">
          <td data-label="Type of Sharing Calculation" class="slds-cell-wrap" style="vertical-align:top;" headers="d63546e76 ">Sharing Rule</td>

          <td data-label="Occurs When You" class="slds-cell-wrap" style="vertical-align:top;" headers="d63546e79 ">
            <ul>
              <li>Change an organization's default sharing
                model</li>

              <li>Create, edit, or delete sharing rules</li>

              <li>Create or transfer any records</li>

              <li>Update public group members</li>

              <li>Create or activate a user</li>

              <li>Change users’ roles or update the role
                hierarchy</li>

              <li>Add or remove users from territories</li>

              <li>Reparent territories</li>

              <li>Make changes to roles, territories, or public
                groups involved in sharing rules</li>

            </ul>
          </td>

        </tr>
        <tr class="">
          <td data-label="Type of Sharing Calculation" class="slds-cell-wrap" style="vertical-align:top;" headers="d63546e76 ">Group Membership</td>

          <td data-label="Occurs When You" class="slds-cell-wrap" style="vertical-align:top;" headers="d63546e79 ">
            <ul>
              <li>Change or reparent roles</li>

              <li>Add or remove users from territories</li>

              <li>Update public group members</li>

              <li>Update portal account ownership if the new
                owner has a different role</li>

            </ul>
          </td>

        </tr>
      </tbody>
    </table>

When you defer sharing rule or group membership calculations, most sharing evaluations are disabled. Access configuration changes don’t take effect until you resume sharing rule or group membership recalculations and recalculate sharing rules. You can defer sharing calculations if you make a large number of changes that trigger sharing recalculation, and want to suspend the automatic sharing calculations to a later time to prevent timeouts or performance issues.

Keep in mind that sharing updates aren’t evaluated while sharing calculations are deferred. You must also remember to restart sharing calculations and complete a full recalculation to avoid record access inconsistencies. To ensure that your changes are successful and the impact to your users is minimal, review [Considerations for Making Sharing Updates](https://help.salesforce.com/s/articleView?id=platform.security_sharing_update_considerations.htm&release=264.0.0&type=5 "Review these considerations before making sharing changes, such as updates to organization-wide defaults, sharing rules, account ownerships, or group memberships.") before deferring group membership or sharing rule calculations.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-access-264-0-0-production-enus/a92be132-3cbc-412a-9262-130636120c14/images/icon_note.png)

Note Deferring sharing calculations doesn’t defer the recalculation of some sharing changes in order to preserve data integrity. These calculations that can't be suspended can take significant time to process based on the org's settings and data volume. [Group membership locking](https://developer.salesforce.com/docs/atlas.en-us.draes.meta/draes/draes_group_membership_locking.htm) can also still occur while sharing calculations are deferred.

- **[Defer Sharing Rule Calculations](https://help.salesforce.com/s/articleView?id=platform.security_sharing_rule_recalculation.htm&release=264.0.0&type=5)**  
    If you’re making a large number of changes that affect sharing rules, including changes to sharing rules, roles, territories, or public groups, you can temporarily suspend automatic sharing rule calculations and resume them after you finish your updates. You must resume calculations and do a full sharing rule recalculation, or you can experience sharing inconsistencies in your records.
- **[Defer Group Membership Calculations](https://help.salesforce.com/s/articleView?id=platform.security_sharing_group_membership_calculations.htm&release=264.0.0&type=5)**  
    If you’re making changes to groups or related features that affect many records, you can temporarily suspend automatic group membership calculations and resume them after you finish your updates. You must resume calculations and do a full sharing rule recalculation, or you can experience sharing inconsistencies in your records.

#### See Also

- [Recalculate Sharing Rules Manually](https://help.salesforce.com/s/articleView?id=platform.security_sharing_recalculating.htm&release=264.0.0&type=5 "When you make changes to sharing settings, groups, roles, and territories, sharing rules are reevaluated to add or remove access as necessary. You can manually recalculate sharing rules if sharing rule updates have failed or aren’t working as expected.")
- [_Designing Record Access for Enterprise Scale_](https://developer.salesforce.com/docs/atlas.en-us.draes.meta/draes/draes_preface.htm)