+1 (726) 227-3549

Dev, Test and Prod for Fivetran: Environment Strategy Without Tripling Your MAR

Many Fivetran projects begin as one connection, one destination and one schema, and that is fine for a pilot. Trouble starts when analytics engineers need to change models, add tables or try a new connector without breaking dashboards. This tutorial lays out a lightweight environment strategy that keeps non-production safe and cheap.

1. Decide what needs isolating

There are three things you might want to separate:

  • Destination data, so experiments never touch tables that dashboards read.
  • Connector configuration, so schema, sync frequency and column settings can be trialled before production.
  • Credentials and access, so non-prod uses read-only or replica credentials.

Most teams need the first and third on day one, and the second once more than one person edits connectors.

2. Pick an isolation model

ModelHow it worksTrade-off
Separate destinationsA dev destination (its own database or project) alongside prodCleanest isolation; more to manage
Separate schemasSame destination, schema names prefixed per environmentCheap; weaker permission boundaries
Separate Fivetran groupsDifferent groups hold dev and prod connectionsClear ownership and role-based access

For regulated data we recommend separate destinations plus separate groups. For small teams, a dev schema prefix in a separate database is usually enough.

3. Keep non-prod cheap

Fivetran bills on monthly active rows, so a dev connection syncing a full production table costs real money. Options:

  1. Point dev connections at a source replica or a staging database with a data subset.
  2. Deselect large, high-churn tables in the schema tab and sync only what the change under test needs.
  3. Use a slower sync frequency in dev, and pause connections when nobody is working on them.
  4. Review the usage and MAR figures per connection regularly so a forgotten dev connection does not surprise you.

4. Naming conventions

Pick a pattern and enforce it: <source>_<env> for connection and schema names, for example salesforce_dev and salesforce_prod. Downstream dbt sources and BI tools then switch environments through a single variable rather than hard-coded names.

5. Promote changes deliberately

A simple promotion flow:

  1. Change the connector in dev (new table, column blocking, history mode).
  2. Let it sync, then run your transformation project against the dev destination.
  3. Check row counts, freshness and key uniqueness against expectations.
  4. Apply the identical change to prod, ideally through code. If you manage connectors with the Fivetran Terraform provider, the same module can be applied with different variables per environment, which removes manual drift.
  5. Record the change and watch the first prod sync closely.

6. Handle secrets and access

  • Use separate database users per environment with least privilege.
  • Limit who can edit prod connections using roles; give developers rights in the dev group only.
  • Never reuse production credentials in dev, even temporarily.

7. Test downstream, not just upstream

Fivetran moves data reliably, so most environment bugs show up in transformations and reports. Run your tests (not-null, unique, accepted values, freshness) in dev before promotion, and keep a small set of reconciliation queries comparing source counts with destination counts.

Common mistakes

  • Testing a schema change directly on a production connector.
  • Leaving dev connections running on a full dataset.
  • Different settings in dev and prod, so dev results prove nothing.
  • Manual edits in prod that nobody recorded.

Checklist

  • Isolation model chosen and documented
  • Dev uses a replica or subset of source data
  • Naming convention applied to connections and schemas
  • Prod changes applied from code or a written runbook
  • Role-based access separates dev and prod
  • Dev connections reviewed for cost monthly

If you want help designing environments for an existing Fivetran estate, get in touch and our team can review your setup.