Skip to main content
New tool CRON Expression Builder — preview next run times before you schedule Apex. Open the builder →
Comparison chart illustrating the four different Salesforce sandbox types available for development projects
DevOps

Comparing the 4 Salesforce Sandbox Types for Developers

Pick the wrong environment for a Salesforce project and you get broken flows or failed tests. Here is what the four sandbox types actually give you, and how to choose one for your next sprint.

The short answer

Salesforce gives you four sandbox environments: Developer, Developer Pro, Partial Copy and Full. They differ in storage capacity and in how often you can refresh them, which is what decides the testing phase each one suits. Matching the sandbox to the task keeps releases stable and keeps production out of harm's way.

Key takeaways Use Developer sandboxes (200MB) or Developer Pro sandboxes (1GB) for daily development, unit testing and integration testing, since neither copies production records. In a Partial Copy sandbox, a sandbox template picks the objects you copy, within 5GB of sample data and 10,000 records per object, which covers most QA and UAT. Keep Full sandboxes for query validation against large data volumes, performance testing and the final regression run before deployment. Mask sensitive data such as email addresses and phone numbers in any sandbox that holds real records, so a test never contacts a customer. Run Apex post-copy scripts to update API endpoints and usernames after a refresh.

Choosing the right Salesforce sandbox types for your project

If you've ever broken a production org by pushing a "simple" flow change, you know why we need a safe place to play. I've spent years in various orgs, and the biggest mistake I see is teams using the wrong environment for the task at hand: a developer trying to run a full performance test in a tiny sandbox, or a QA lead demanding a Full Copy for a basic UI check.

A sandbox is a copy of your production environment. You can build, break and fix things in it without your actual users ever knowing. Some sandboxes only copy your metadata (the "skeleton" of your org), others copy every single record you've got, and which one you need depends on the sprint in front of you.

The four Salesforce sandbox types

Salesforce gives us four main options. Each one has a specific purpose, and picking the right one usually comes down to two things: how much data you need and how often you need to refresh it. If you're constantly switching between multiple orgs, you might even want to use a Salesforce environment switcher to keep things organized.

1. Developer sandbox

This is the workhorse for individual devs. It copies your production metadata but brings over none of your actual records. You get a tiny bit of storage (200MB), which is enough for basic test data you create yourself, and you can refresh it every day. I usually tell my teams to use these for "unit testing", meaning making sure the code doesn't crash before it moves to a shared environment.

2. Developer Pro sandbox

Think of this as the Developer sandbox's older sibling. It still doesn't copy production data, but it gives you more storage (1GB). That extra room helps with integration testing, where you need to load in a larger set of mock data from an external system, and with small team projects where several people are building in the same space. Like the standard version, you can refresh this one every 24 hours.

3. Partial Copy sandbox

Now we're getting into the data. A Partial Copy sandbox includes your metadata and a sample of your production data. You use a "Sandbox Template" to tell Salesforce exactly which objects you want to copy. It's limited to 5GB and 10,000 records per object, which is usually plenty for Quality Assurance (QA) or User Acceptance Testing (UAT). The catch is the refresh window: every 5 days. Mess up the data on day one and you're stuck with it for a while, so keep a plan for Salesforce sandbox recovery handy.

4. Full sandbox

This one is a 1-to-1 mirror of your production org, including all your data, attachments and setup. It's what you want for performance testing or final regression testing, but it's expensive and slow to refresh: you have to wait 29 days between refreshes, so use it wisely. If you're managing large data volumes, this is the only place you can really see how your queries will perform at scale.

One thing that trips people up: just because you have a Full Sandbox doesn't mean you should use it for everything. It's like using a sledgehammer to hang a picture frame. Keep your daily dev work in the smaller boxes and save the Full Copy for the final stage before deployment.

Best practices for managing Salesforce sandbox types

Most teams get the architecture wrong because they don't plan for the refresh cycles. If you refresh a sandbox while a developer is halfway through a feature, their work is gone. Always coordinate with the team before hitting that refresh button.

  • Use Sandbox Templates instead of grabbing everything for a Partial Copy. Be surgical and pick the objects that actually matter for the test.
  • If you're copying production data into a sandbox, mask the sensitive fields like emails and phone numbers. You don't want a test script accidentally emailing real customers.
  • Automate the post-refresh setup. I've seen teams waste days manually updating API endpoints and usernames after a refresh, and an Apex post-copy script handles all of it.
  • Each of the Salesforce sandbox types has its own storage ceiling, and when you hit it things start failing in weird ways that are hard to debug.

Key takeaways

  • Developer and Developer Pro: building and unit testing, metadata only, 1-day refresh.
  • Partial Copy: QA and UAT, sample data chosen by template, 5-day refresh.
  • Full sandbox: performance and final testing, full data copy, 29-day refresh.
  • Always use the smallest environment that fits the task, to save time and money.

Picking between Salesforce sandbox types comes down to how your team works, as much as to what's available in your contract. If you're a solo admin, a few Developer sandboxes and a Partial Copy might be all you ever need. For enterprise teams, a clear "promotion path" from Developer to Partial to Full is the only way I've found to keep production from breaking. Start with the smallest box that fits, and don't be afraid to refresh when things get messy.

Frequently asked questions

What is the difference between Developer and Developer Pro sandboxes?

A Developer sandbox has 200MB of storage and suits individual unit testing. A Developer Pro sandbox has 1GB, which is room for integration testing and larger mock datasets. Both copy metadata only, and both refresh every 24 hours.

How often can you refresh a Salesforce sandbox?

Developer and Developer Pro sandboxes refresh every day (24 hours), Partial Copy sandboxes every 5 days, and Full sandboxes every 29 days.

What are the limits of a Partial Copy sandbox?

A Partial Copy sandbox has up to 5GB of storage, and the Sandbox Template that selects your objects caps the copy at 10,000 records per object. It refreshes once every 5 days.

When should you use a Full Sandbox in Salesforce?

Keep a Full sandbox for performance testing, for running queries against large data volumes, and for the final regression pass before you deploy to production. The 29-day wait between refreshes makes it a poor home for day-to-day development, which belongs in the smaller sandboxes.

Newsletter

One email every Tuesday

New guides, tool updates, and the release-note changes that break things.

No spam. Unsubscribe in one click.

Comments

Loading comments...

Leave a Comment