You have tens of millions of closed cases and the console is slowing down. What's your data volume and archiving strategy?
Model answer
First, diagnose. Don't assume volume is the cause.
- Look at slow list views and reports: are they non-selective? Use the Query Plan tool. A standard index is used under 30% of the first million records and 15% after (max 1M); a custom index under 10% then 5% (max 333,333).
- Check for ownership skew and parent or lookup skew (guidance is around 10,000 records per owner or children per parent).
- Check sharing recalculation times and the number of sharing rules.
Then set the policy with Legal and the business: what must stay live, what must be retained (and for how long), and who needs to read old cases.
Then pick the archive option:
| Option | Strengths | Weaknesses |
|---|---|---|
| Salesforce Archive | Native, policy-driven, retention, in-context view, restore | Additional licence; confirm search and reporting needs |
| Custom Big Objects | On-platform, massive scale | Index-based queries only; no standard UI or reporting; you build access |
| Off-platform + Salesforce Connect | Uses the enterprise lake and its retention tooling; read-only in context | Connect licence, an OData service to run, external-object limitations |
Finally, tune what stays: selective list views, custom indexes, skinny tables (requested through Support), and an archive that covers EmailMessages and files as well as cases.
โ Key points to hit
โ Red-flag answers
- 'Just buy more storage'
- 'Big Objects support normal SOQL and reports'
- Deleting without legal retention sign-off
- Forgetting EmailMessages and attachments
- No way for agents to read archived history
โช Follow-ups
How do you delete millions of cases safely?
Extract and verify (counts and checksums) first. Then use a Bulk API 2.0 hard delete in date-range batches, off-peak, by a dedicated user with the Bulk API Hard Delete permission. Child records cascade, so confirm what's included. Monitor lock errors and the impact of sharing recalculation, and keep an audit log of every batch.
Agents still need 7 years of history for complaints. Now what?
Keep a read path: Salesforce Archive's in-context view, or an external object via Salesforce Connect on the account, plus a documented restore-on-request process for the rare case that needs re-opening.