SalesforceLabs / SalesforceLabs/OrgCheck

Data Skew : >10K child records of same record object

Open
#737 0 comments 1 reaction 1 assignee View on GitHub

@VinceFINET is already working on this.

Since Jul 7, 2026.

enhancement
Dominant language
TypeScript
Stars
171
Forks
38
Avg merge
1m
Merged PRs (30d)
1

Description

Is your feature request related to a problem? Please describe.
no, this is an enhancement

Describe the solution you'd like
We would need to have metrics about Data Skew, something like :

Task.Who   240228    00QA000000fxamQ (Lead)
Task.Who   240227    00QA000000fxbXA (Lead)
Case.Account 111268    001A000000v5ReG (Account)
Case.Account 99528    0011H00001ktMUD
Case.Account 91124    001A000000v6nnW

Describe alternatives you've considered
At Salesforce, internal tools can help but the customers need to have this information on their own

Additional context
1. Record Lock Contention
When a parent record has 10K+ children, any DML operation (insert, update, delete) on a child record requires a lock on the parent record
2. Sharing Recalculation Performance
If the parent record's ownership or sharing changes, Salesforce must recalculate sharing for all 10K+ child records
This causes system delays org-wide
3. Account Data Skew (Most Common)
The most frequent form — one Account with tens of thousands of Contacts, Opportunities, Cases etc.
Severely impacts page load times for the parent Account record
Related lists become slow.
4. Query & Report Performance
Queries filtering on the skewed parent return massive result sets
Reports aggregating child records under the skewed parent are slow or time out

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.