Share Your Experience With Others

Custom Settings Vs Custom Metadata

Custom Settings

  • Deploy object, but no data
  • Simple data types
  • Kept in-memory during execution context
  • 300 field limit
  • Subject to total data limit
  • Globally accessible
  • Public/Protected Visibility in Managed Packages

Types of Custom Settings

  • Hierarchy custom settings
    • Provides overrides: Organization, Profile, User
    • Accessible from formulas and workflows
  • List custom settings
    • Provided to apex as a map

Custom Metadata

  • Deployable objects and data(Including Managed Packages)
  • Not editable via apex
  • Doesn’t count towards query limits
  • 10 MB org limit
  • 100 field limit
  • Public/Protected Visibility in Managed Packages
  • Must query via SOQL
  • Cached after first read
  • Complex data types(including lookups)

Comparison table

Source: Salesforce Developers Youtube Channel

Leave a comment