What are Skinny Tables?
Salesforce creates skinny tables to contain frequently used fields and to avoid joins, and it keeps the skinny tables in sync with their source tables when the source tables are modified. To enable skinny tables, contact Salesforce customer support.
For each object table, Salesforce maintains other, separate tables at the database level for standard and custom fields. This separation ordinarily necessitates a join when a query contains both kinds of fields. A skinny table contains both kinds of fields and does not include soft-deleted records.
This table shows an Account view, a corresponding database table, and a skinny table that would speed up Account queries.
Skinny tables are most useful with tables containing millions of records. They can be created on custom objects, and on Account, Contact, Opportunity, Lead, and Case objects. In addition, they can enhance performance for reports, list views, and SOSL.
Skinny tables can contain the following types of fields.
- Date and time
- Phone picklist
- Picklist (multi-select)
- Text (fewer than 80 characters)
- Text area
- Text area (long)
Here is an example of how a skinny table can speed up queries. Instead of using a date range like 01/01/11 to 12/31/11—which entails an expensive, repeated computation to create an annual or year-to-date report—you can use a skinny table to include a Year field and to filter on Year=’2011’.
- Skinny tables can contain a maximum of 100 columns
- Skinny tables cannot contain fields from other objects
- Skinny tables are not copied to sandbox organizations. To have production skinny tables activated in a sandbox organization, contact Salesforce customer support
- Why is Microsoft Dynamics CRM software important for the sports industry?
- How to get your SMB sales team ready for CRM?
- Configuring Different Actions for onClick of Cancel Button and X Button
- Best practices for creating a CRM user training plan in an SMB
- 8 steps to create a great Sales Playbook for SMBs