Skip to content

Instantly share code, notes, and snippets.

@mbraga-sfdc
Last active December 14, 2020 17:37
Show Gist options
  • Save mbraga-sfdc/fb081b808c0df0782e8e61519f3d9480 to your computer and use it in GitHub Desktop.
Save mbraga-sfdc/fb081b808c0df0782e8e61519f3d9480 to your computer and use it in GitHub Desktop.
Calculate required storage: When evaluating the required database size, measure the historical growth of your existing Salesforce data. This can be done using a SOQL query similar to the one here.
SELECT calendar_month(CreatedDate), COUNT(Id)
FROM Account
WHERE CreatedDate = LAST_FISCAL_YEAR
GROUP BY calendar_month(CreatedDate)
ORDER BY COUNT(Id) DESC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment