Case data volume, archiving and sharing at scale
LDV for Case: selectivity, skinny tables, ownership and parent skew, sharing recalculation, and archive options (Salesforce Archive, Big Objects, off-platform with Salesforce Connect).
Simple explanation
Service orgs grow fast: cases, EmailMessage rows, feed items and files. Large data volume (LDV) problems show up as slow list views, timeouts, record locking and long sharing recalculations.
Performance levers
- Selective queries. The optimiser uses an index only when the filter is selective. For a standard index, under 30% of the first million records and 15% after, capped at 1M. For a custom index, 10% and 5%, capped at 333,333. Use the Query Plan tool.
- Custom indexes (requested from Support or deployed for some field types) and skinny tables (enabled by Support).
- Avoid data skew: over about 10,000 child records under one parent (account or lookup skew), or one owner holding over about 10,000 records (ownership skew), causes locking and sharing recalculation pain.
- Sharing: Private OWD with role-based access is normal for cases. Watch role-hierarchy depth, queue ownership and the number of sharing rules. Deferred sharing calculation (enabled by Support) helps during big loads.
Archiving options
| Option | What it is |
|---|---|
| Salesforce Archive | Native product: archive and purge policies, retention periods, in-context viewing and restore |
| Big Objects | On-platform, massive scale, index-based queries, no standard UI |
| Off-platform + Salesforce Connect | A data lake or warehouse, read back in context via external objects (OData) |
Real-world analogy
A busy office's filing system.
- Indexes are the drawer labels: they only help if you ask for a small, specific set of folders.
- Skew is one overloaded cabinet that everyone queues at.
- Archiving moves old folders to off-site storage. Salesforce Archive is the provider who still lets you look up a folder from your desk, and an external data lake is your own warehouse with a delivery van (Salesforce Connect).
Worked example
A telco with tens of millions of closed cases.
- Diagnose: slow list views were non-selective ("All Closed Cases") and one integration user owned millions of cases (ownership skew).
- Fix the live org:
- Selective list views filtered on owner or queue plus a date.
- A custom index on
External_Ref__c. - Integration-created cases spread across queues, and closed cases left owned by the closing agent.
- Policy with Legal: keep 24 months live. Retain longer per regulation.
- Archive: closed cases older than 24 months, with EmailMessages and files, go to the data lake via Bulk API 2.0. After count and checksum reconciliation, they're hard-deleted in Salesforce.
- Read path: agents see archived history as a read-only related list via Salesforce Connect.
Diagram
Key points
- Diagnose before archiving: query plans, list-view filters, skew and sharing.
- Selectivity: standard index under 30% of the first 1M then 15%, max 1M. Custom index under 10% then 5%, max 333,333.
- Skew guidance is about 10,000 children per parent or records per owner. Spread ownership, and avoid hot parents.
- Archive the whole graph: Case +
EmailMessage+ files + feed. Agree retention with Legal. - Salesforce Archive (native policies and restore) vs Big Objects (build your own access) vs off-platform + Salesforce Connect (enterprise lake, read-only in context).
- Delete safely: verify the copy, then Bulk API 2.0 hard delete in date-range batches, by a dedicated user.
Limits and gotchas
- Queue ownership skew: millions of closed cases owned by one queue or integration user degrades sharing operations. Reassign or archive.
- Lookup skew on hot parents (for example, every outage case pointing at one outage record) causes lock errors under load. Use a text reference or batch the link.
- External objects have limitations in reports, search and automation compared with native records. Agents get read access, not full parity.
- Big Objects support only index-based queries and no standard reports. You build the UI.
- Salesforce Archive is an extra licence. Confirm search, reporting and restore behaviour for your use case β verify current capabilities.
- Hard delete skips the Recycle Bin. Keep an audit log of every batch.
π€ How to say this in an interview
"First I check whether it's really volume: query plans, non-selective list views, ownership skew, sharing. Then I agree a retention policy with Legal, because it decides what stays live. For the archive, I compare three options: Salesforce Archive for a native, policy-driven solution with in-context access; an off-platform lake plus Salesforce Connect when the enterprise already has retention tooling; Big Objects when the data must stay on-platform and I'm prepared to build the access. Whatever I choose, I archive the whole graph (cases, emails, files) and delete only after verified reconciliation."
Common follow-ups
Why does one integration user owning all system-created cases cause problems?
Ownership skew. When a user owns a very large number of records (guidance is around 10,000+), changes to that user's role or sharing trigger expensive recalculations, and record locking can increase. Mitigations: spread ownership across queues or users, give such users no role or a role at the top of the hierarchy, and move closed records off them by reassigning or archiving.
Big Objects or Salesforce Archive for case history?
Big Objects keep data on-platform at massive scale but only support index-based queries and need custom UI and access logic. Salesforce Archive gives policy-based archiving, retention, in-context viewing and restore without building that layer, at the cost of an additional licence. Choose Big Objects when you need programmatic, on-platform storage and accept the build; choose Archive for business-user access and governance out of the box.