Activity Forums Salesforce Questions and Answers How to calculate the size of object?

  • Jayant

    Member
    April 14, 2016 at 7:35 am

    If you go to Set Up > Data Management > Storage Usage , Salesforce list the storage for each record type.

    1. How is it calculated?
    2. Does it vary with number of fields a custom object have or is always constant?
  • Anup

    Member
    April 14, 2016 at 8:05 am

    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.

  • Parul

    Member
    September 13, 2018 at 8:54 am

    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

  • shariq

    Member
    September 14, 2018 at 1:29 am

    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.

Viewing 1 - 4 of 4 posts

Log in to reply.

Original Post
0 of 0 posts June 2018
Now