Activity Forums Salesforce® Discussions How to calculate the size of object?

  • 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.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos