Activity › Forums › Salesforce® Discussions › How to calculate the size of object?
Tagged: Data Management, Data Storage, Governer Limit, Record Type, Salesforce Custom Object, Salesforce Setup, Storage Usage
-
How to calculate the size of object?
Posted by Jayant on April 14, 2016 at 7:35 AMIf you go to Set Up > Data Management > Storage Usage , Salesforce list the storage for each record type.
- How is it calculated?
- Does it vary with number of fields a custom object have or is always constant?
shariq replied 7 years, 8 months ago 4 Members · 3 Replies -
3 Replies
-
I am sure it is a combination of both the number of records on object and the number of fields that have data populated on the object. Although there is a knowledge article that speaks a lot : https://help.salesforce.com/apex/HTViewSolution?id=000193871
may be helpful.
- [adinserter block='9']
-
Hi Jayant
Most records are 2KB, see the list below for exceptions..
Document storage is separate from data storage and counts at the actual size of the uploaded document.
For up to date figures on your company’s use of storage please refer to:
Setup | Data Management | Storage Usage
Setup> Administration> Data> Storage Usage
For Leads,Contacts,Accounts,Opportunities,Forecasts,Events,Tasks,Cases ,Case Team Member,Solutions,Notes,Custom Reports,Contracts,Google Docs,Quotes,Custom Objects,Quote Template Rich Text Data it is– 2KB
For Person Accounts,Articles it is- 4KB
For Campaigns – 8KB
For Campaign Members – 1KB
Email Message – This is dependent upon the content of the messages, a 100kb email message takes 100kb of data storage space. Text only emails will take less than HTML due to only being the body text and not the html code and text version as well.NOTE ABOUT PERSON ACCOUNTS
Person Accounts consume a record in both the Account and Contact objects. Each record allocates 2KB, so each Person Account record will require 4KB of storage space.As an example, 500,000 person accounts will require around 2GB of storage.
Storage needed = (500000 X 4KB)/1024 = 1953.125 MB which when further divided by 1024 = 1.9073 GB which is around 2GB.Images from Rich Text Fields are stored in file storage area.
Thanks
-
Hi,
As a general rule of thumb – regardless of whether you have 10 fields on an object or 80, Salesforce allocates and estimates 2k for more records. This is all about both performance, governor limits and your storage limits.
Hope this helps.
Log In to reply.