Converting Metabase models to transforms

Metabase recommends transforms over model persistence, which will be deprecated in future versions. This page covers what converts cleanly, what needs a rebuild and what to confirm before you start.

On this page

Which Metabase models to convert to transforms and what changes

If your team has persisted Metabase models in production, plan to convert them to transforms before model persistence is removed. Metabase's documentation says to consider transforms instead of models and notes that models can be converted to transforms in bulk, while model persistence will be deprecated in future versions. A transform is a SQL, query builder or Python job that writes a new persistent table to your database on a schedule, so the result you rely on in dashboards and questions becomes a table your warehouse owns rather than a cache Metabase manages.

The effort depends on three things: how many models are persisted, which database each one runs on, and whether the account Metabase uses for that database can create and write tables. Start with an inventory of every model that has persistence turned on, including the collection it sits in, the source tables it reads and who depends on it in saved questions and dashboards. Then check the supported databases listed for transforms, which include PostgreSQL, MySQL and MariaDB, Snowflake, BigQuery, Redshift, SQL Server and ClickHouse Cloud. A model on an unsupported database will need a different plan, and the reader should confirm current support in the transforms documentation before scoping.

The most common blocker is permissions. A transform writes to the warehouse, so the database connection must have rights to create and replace tables in the target schema, which is a different grant from the read-only access most analytics connections use. Ask your database team to confirm the schema, the write role and any network or firewall rules before the conversion starts, and decide whether transform output lands in a dedicated schema that analysts can read but not alter. Also confirm the schedule each transform will run on, since the refresh timing you set for model persistence does not carry over automatically and downstream dashboards will only be as current as the last successful run.

What changes for users is mostly the location and ownership of the table. Dashboards and questions that pointed at a persisted model will need to be checked after conversion, and any Metabase setting that assumed the cache lived inside the application database should be reviewed. Test a small pilot first, compare row counts and key figures between the old model and the new table, and keep the original model until the dependent content has been verified. Official documentation for Metabase transforms describes the job options your conversion should be checked against.

What maps cleanly from Metabase models to Metabase transforms

This table compares how common model features carry over to transforms, which rows need manual rebuilding, and which need confirmation in your Metabase version. Read the notes column before starting a bulk conversion, because a converted model is not automatically a complete replacement. The main takeaway is that the query logic moves across, while schedules, dependent content and permissions usually need checking by hand.

Source capabilityTransform equivalentMigration notes
SQL modelsSQL transform writing a persistent tableQuery logic usually carries over. Confirm the target schema and table name, and check that the SQL runs under the transform's write permissions.
Query builder modelsQuery builder transform writing a persistent tableConfirm that every joined table, filter and aggregation converts as expected. Compare row counts against the original model before retiring it.
Persisted refresh schedulesTransform run scheduleSchedules do not map one to one. Rebuild the run cadence on each transform and confirm the timing against the model persistence settings you are replacing.
Dependent questions and dashboardsCards that read the new tableQuestions and dashboards keep pointing at the model until you repoint them. Rebuild or repoint each dependent card manually and retest its filters and drill-throughs.
Collection and permission settingsTransform location and access settingsCollection placement and group permissions do not transfer automatically. Recheck who can view, edit and run each transform, and confirm the behavior in your Metabase version.
Models on unsupported databasesNo direct transform equivalentTransforms support BigQuery, ClickHouse Cloud, MySQL/MariaDB, PostgreSQL, Redshift, Snowflake and SQL Server. Keep these models in place or plan a different pipeline, and confirm the current list in your version.
Writable access for the transform userWrite permission on the target schemaTransforms write tables, so the connection needs write access that models did not. Confirm the required grants with your database team before scheduling any run.

Which conversion paths Metabase documents

Metabase's model documentation recommends considering transforms in place of models, and it describes bulk conversion for existing models. A transform is a SQL, query builder or Python job that writes a persistent table on a schedule, so the cards below cover both the conversion route and the new build route.

Bulk conversion of models

Metabase documents converting existing models to transforms in bulk, which is the fastest route when many models already carry persistence settings. Before you run it, list every model, its source query, its collection owner and any dashboards or questions that read from it. Confirm in the current docs whether the bulk action carries over the model's schedule, its target table name and its permissions, because those details decide whether downstream content keeps working unchanged.

Models docs

New transform written in SQL

A SQL transform runs a native query and writes its result to a new persistent table. This path suits teams that already maintain SQL logic for a model and want the query text to stay readable and reviewable. Check which database the transform writes to, the schema it targets and the warehouse role it uses, since the write needs permissions beyond read-only access.

Transforms overview

New transform from the query builder

A query builder transform is built through Metabase's visual interface, without hand-written SQL. It fits analysts who define joins, filters and aggregations in the UI and want those steps saved as a scheduled table. Confirm which query builder features are available for transforms in your version, because not every visual step may map to a transform in the same way.

Transforms overview

New transform as a Python job

A Python transform runs code that produces a table written to the database on a schedule. Teams with logic that SQL handles poorly, such as multi-step cleaning or calls into Python libraries, use this path. Review the code like any other production job, and confirm which Python environment the job runs in and how its credentials reach the warehouse.

Transforms overview

Scheduled writes to a persistent table

Each transform writes a new persistent table on a schedule, so the schedule becomes a production dependency for every dashboard that reads it. Decide the refresh frequency, how failed runs are surfaced and who is notified. Confirm the exact scheduling options and plan requirements in the current docs before you commit any downstream reporting to a refresh time.

Supported databases

Transforms are documented for BigQuery, ClickHouse Cloud, MySQL and MariaDB, PostgreSQL, Redshift, Snowflake and SQL Server. If your warehouse is not on this list, the model cannot move to a transform on that database, so plan to keep the model or change the target. Confirm the supported versions and the exact database names in the current docs before you start the conversion.

Transforms overview

Why Metabase recommends transforms and what the deprecation means for you

Metabase's model docs advise teams to consider transforms instead of models, and they state that model persistence will be deprecated in future versions. The practical question for you is not whether to act today, but which of your persisted models will need a new home and who owns that work. The difference is simple. Model persistence keeps a cached copy of a model's results that Metabase manages and refreshes on its own schedule, and that copy is only readable through Metabase. A transform runs a SQL, query builder or Python job on a schedule and writes a new persistent table into your warehouse, so other tools such as BI platforms, notebooks and pipelines can read the same table without going through Metabase.

The deprecation has no date in the documentation, so do not treat it as a deadline, but do treat it as a direction. Start by inventory: list every model with persistence turned on, note which dashboards, questions and downstream users depend on each one, and record the warehouse and schema where its cached data lives. Then decide, per model, whether a warehouse table is useful to anyone beyond Metabase. Models that only feed one dashboard may be fine to retire, while models that other teams query are the strongest candidates for a transform. Confirm the Metabase version you run and read the model persistence and transforms pages for that version, since the supported behavior and the exact admin settings can change between releases.

Before you commit, confirm three things with your own environment. First, that your warehouse is one of the databases transforms support, which currently include BigQuery, ClickHouse Cloud, MySQL and MariaDB, PostgreSQL, Redshift, Snowflake and SQL Server. Second, that the Metabase database connection has write access to the schema where transform output will land, which is a permission decision your data team and database administrators should approve in writing. Third, that someone owns the schedule, naming and cleanup of the new tables, because a transform that writes a table is now a data asset with retention and access questions attached. Plan these checks before bulk conversion starts, so that the conversion itself is a controlled change rather than a surprise.

How the conversion runs from inventory to decommissioning models

The sequence moves each persisted model to a transform that writes a table in the warehouse, proves the new output matches the old, and retires model persistence only after the owners of the warehouse and the business reports have signed off.

  1. Inventory persisted models and their dependents

    List every model with persistence turned on, the database and schema each one writes to, and the questions, dashboards, other models and embeds that read from it. Record the owner of each model and of the warehouse schema it writes into. This is done by the Metabase administrator with the analytics team, and it is done when every persisted model has a row in the inventory with its dependents attached. Models that nothing reads are candidates for retirement rather than conversion, and the inventory should mark them so they are not carried forward by accident.

  2. Confirm database support and write access

    Check that each warehouse in the inventory is on the supported list for transforms: BigQuery, ClickHouse Cloud, MySQL or MariaDB, PostgreSQL, Redshift, Snowflake and SQL Server. Confirm with the database owner that the Metabase connection user can create and write tables in the target schema, and that the warehouse firewall allows the connection from your Metabase host. Record any database that is not supported or lacks write access, because those models stay on their current path until the gap is resolved. The step is complete when each target schema has a named owner who has confirmed write access in writing.

  3. Convert a pilot set of models

    Choose a small set of models that cover the main patterns in the inventory, such as a simple SQL model, a model built in the query builder and a model that other models depend on. Convert them to transforms, choosing the schedule and the target table name for each. Keep the original model in place during the pilot so both outputs exist. The pilot is done when each transform has run at least once successfully and wrote its table, with the run recorded in the transform history.

  4. Run old and new outputs side by side

    For each pilot pair, compare the row count and the column names, types and sample values between the persisted model table and the transform table, and review any difference with the model author. Repeat the comparison after at least one scheduled run to confirm the schedule produces the same result as the manual run. Any mismatch is fixed in the transform definition and rerun before the next set is converted. The step is done when every pilot pair matches on the agreed checks or each difference has a documented, approved reason.

  5. Repoint questions, dashboards and dependents

    Update each saved question, dashboard card, dependent model and embed that reads from a converted model so it points to the transform's table. Work through the dependents list from the inventory, starting with the pilot models and then the rest in batches. Confirm that filters, permissions on collections and any embedded content still display the expected data after the change. The step is complete when every dependent on the inventory has been repointed and checked, and no remaining item reads from a persisted model that is about to be retired.

  6. Cut over the schedules

    Enable the production schedules for the transforms in each schema, and disable the refresh that the persisted models were using so the two do not run in parallel. Record the cutover time and the order in which schemas moved. Watch the first scheduled runs for failures, lock contention and warehouse load, and keep the rollback path clear, which is to re-enable the previous model refresh. The cutover is done when the scheduled transform runs have completed for the agreed period and the warehouse owners have confirmed the tables are current.

  7. Obtain warehouse owner sign-off before cutover

    Before any schema moves to production schedules, present the comparison results, the list of repointed dependents and the cutover plan to the warehouse owners and the business owners of the affected reports. Ask them to approve in writing, naming the schema and the date. This approval gate sits between the side-by-side comparison and the cutover, and no schema should move without it. The step is done when each schema in the plan has a recorded approval from its owner.

  8. Retire model persistence

    Once every schema has run on transforms without problems and no dependent reads a persisted model, turn off persistence on the converted models and remove the old persisted tables if the warehouse owners agree to drop them. Keep a record of the final model list and the table names that replaced each one. Model persistence is set to be deprecated in future versions, so this step closes the migration and avoids a later forced change. It is done when no persisted model remains in the inventory and the decommissioning record is filed with the warehouse owners.

What drives the effort of converting Metabase models

This table compares the factors that change how much work a model-to-transform conversion takes and what to ask a partner to price. Read each row as a question to answer about your own instance before requesting a quote. The main takeaway is that the count of persisted models matters less than how they depend on each other and what the warehouse allows.

DriverWhy it changes the workWhat to ask for in a quote
Number of persisted modelsEach persisted model needs its own transform, schedule, output table and check, so the list grows the review load.A per-model inventory with a convert, rebuild or retire decision for each one
Dependency depthA model built on another persisted model must run after its parent, so chains need ordered schedules and more testing.A map of which models depend on other models and the order of conversion
Database engineTransforms are supported only on listed engines, and SQL dialect differences change how existing model queries are rewritten.Confirmation that the target engine supports transforms and a note on dialect changes
Write access to a dedicated schemaTransforms write persistent tables, so the warehouse account needs permission to create and replace tables in a schema you choose.The grants required, the target schema name and who approves the grant change
Python transform needsPython jobs add a runtime, dependencies and a different review path from SQL or query builder transforms.Whether any models need Python, where it runs and how dependencies are pinned
Permission and collection structureCards, dashboards and collections that point at models must be repointed, and access rules must still match the new tables.A list of affected collections, dashboards and group permissions to recheck after cutover
Testing and sign-off processEach converted table must match the old model output, so row counts, totals and owner review add steps before retirement.Defined test cases, the named sign-off owner and the criteria for retiring a model

What usually goes wrong when models become warehouse tables

Converting models to transforms moves work from Metabase's application database into your warehouse, where write access, scheduling and data correctness matter more. The risks below share one cause: a persistent table is now produced by a job that other people depend on, so its ownership, timing and validation need the same care as any pipeline.

Write access to the wrong schema

Transforms write a new persistent table, so the database account Metabase uses needs write permission somewhere. If that grant covers a production schema shared with other teams, a transform can create or replace tables that nobody else expects. Before converting, decide on a dedicated staging or reporting schema, grant write access only there, and confirm which schemas the connection can reach. Check this in the warehouse itself, not only in Metabase settings.

Transforms docs

Transforms reading deleted models

A transform built on a model inherits that model's definition, so deleting or restructuring the model can break the job or change its output without warning. Before deleting any model during conversion, list the transforms and dashboards that depend on it. Keep a record of each model's SQL or query so the logic survives the change. Treat model deletion as a change request, not a cleanup task.

Schedules overlapping upstream loads

A transform runs on its own schedule, and it may start before the raw tables it reads have finished loading. The result is a persistent table built from partial data that looks complete. Align each transform's schedule with the end of the upstream load, or add a dependency check to the job. Record the expected completion time for each upstream source so you can test the gap.

Dashboards pointing at stale data

Once a model becomes a table written on a schedule, a dashboard reads whatever was last written. If the transform fails, dashboards keep showing the previous result with no visible error. Confirm who gets notified on failed runs, and show the last successful refresh time on critical dashboards. Review the failure path before users depend on the numbers.

Row and column drift during parallel runs

Running the old model and the new transform side by side is the safest way to convert, but the two can diverge through filters, joins, timezone handling or column types. Compare row counts, key totals and column data types for a set period before switching dashboards over. Document every intended difference so unexplained drift stands out.

Unsupported databases left unconverted

Transforms are supported only on specific databases, so models on other engines cannot be converted this way. Teams sometimes discover this mid-project and leave those models on persistence, which the docs say will be deprecated. Inventory every model's source database before planning the work, and set a decision for each unsupported one: move the data, rebuild it in a supported database, or retire it.

Model persistence docs

Deciding whether each persisted model becomes a transform

This decision path is a starting point for triage, not a fixed rule. Each persisted model starts at the top and is checked for a supported database, then for write access the transform needs, then for whether its logic is plain SQL or query builder or requires Python. Models with dependent questions, saved cards or other models that read from them, are routed to repointing before any cutover. Each branch ends in one of four outcomes: convert in bulk, convert by hand, rebuild, or keep and review.

A decision path for triaging persisted models, not a fixed rule.

Questions teams ask before converting models to transforms

How much effort and cost does converting models to transforms add?

The conversion itself is mostly internal engineering and analyst time, and the main cost driver is how many models you have and how many depend on them. Each model needs its SQL or query builder logic checked, a target table name and schedule chosen, and the output validated against the model it replaces. Metabase's transforms documentation describes transforms as jobs that write a new persistent table on a schedule, so the warehouse compute and storage for those runs recur. Plan for ongoing warehouse cost and any Metabase plan that your current setup requires. Confirm plan requirements for transforms in the current Metabase pricing page before you budget. If you bring in a partner, ask the quote to separate one-time conversion work from recurring runs and support.

How long does a conversion take, and what sets the timeline?

Duration depends on the number of models, how tangled their dependencies are, and how many warehouses and schedules are involved. Simple models that are direct queries against one database move quickly, while models built on other models, or on data that needs cleaning, take longer to validate. Metabase's model documentation says models can be converted in bulk, but bulk conversion still needs review before each job is scheduled. Other timeline drivers include change windows for the warehouse, the number of data owners who must sign off, and whether your warehouse supports transforms at all. Ask any partner for a written scope that lists models, databases and sign-off steps, since that list is what determines the schedule.

What does the internal team need to provide for the conversion?

The work needs three roles in place before it starts. Warehouse owners must grant write access to a schema the transforms can create tables in, and they must approve the compute and scheduling impact. A Metabase admin needs to review which models convert, confirm the target tables, and update collections and permissions once the new tables exist. A data owner for each business domain signs off that the persisted output matches the definition the business uses. Without those three roles, conversions stall at the access request or at the validation step. Agree on who approves each stage in writing before the first job runs.

Can a team convert models to transforms without outside help?

Yes, a team with warehouse access and Metabase admin rights can usually do it alone, particularly for a small number of models. The harder parts are the ones that need judgment: deciding which models should become transforms, checking that row counts and metric definitions still match, and designing schedules that do not overload the warehouse. Teams with many interdependent models or strict change control often bring in outside help for planning and validation. DeployOpen implements self-hosted open-source platforms in your own infrastructure under fixed-scope agreements, so if you engage us, the scope, deliverables and timeline are written down before work begins.

Does bulk conversion cover every model in my instance?

No. Metabase documents that models can be converted to transforms in bulk, but that does not mean every model is a good candidate or that every model will convert without changes. Models that depend on databases without transform support, or that query sources you cannot grant write access to, need a different plan. Transforms are supported on BigQuery, ClickHouse Cloud, MySQL and MariaDB, PostgreSQL, Redshift, Snowflake and SQL Server. Check each model's source database against that list before running a bulk job, and review the output of every converted model before you retire the original.

What happens to dashboards and saved questions during cutover?

Dashboards and saved questions keep working only if they point to content that still exists and returns the same results. The safe sequence is to build the transform, run it, compare its output with the model, repoint questions and dashboards to the new table, and only then remove or deprecate the model. Metabase notes that model persistence will be deprecated in future versions, so plan the cutover before that change reaches your version. Keep a backup of your application database before you change anything, and record which dashboards depend on each model so you can check them after cutover. Test permissions on the new tables with a non-admin account, because access to a model does not automatically carry over to a transform's output.

Where should I confirm which databases and transform features my plan supports?

Confirm supported databases and plan requirements against the current Metabase transforms documentation and pricing page before you start, because both change between releases. The Metabase transforms overview lists the supported databases and explains how jobs are defined. Check your Metabase version against the version support page as well, since a version that is close to end of life may need an upgrade before conversion. Record the version, plan and database list in your change ticket so reviewers can see what was checked.

How DeployOpen works on this

DeployOpen plans and delivers the conversion of Metabase models to transforms inside your own infrastructure, starting with an inventory of which models depend on persistence and which warehouse tables they feed. The work ends with a documented, tested schedule and write access your team can review and operate.

How we scope

  • Inventory every model in scope, including which ones use model persistence today and which databases they query.
  • Confirm the target warehouse is one that supports transforms and agree the schema and table naming for generated tables.
  • Agree in writing which models convert in bulk, which are rebuilt by hand, and which are retired.
  • Engagements are fixed-scope, with deliverables and timelines agreed before work starts. Ongoing support is available as a retainer.

How we build

  • Create a dedicated transform database role with only the write and schema permissions the agreed tables need.
  • Convert models in batches, comparing row counts and key column values against the original model queries.
  • Set run schedules and job ordering so downstream dashboards read the new persistent tables after each run.
  • Test failure handling, such as a failed scheduled run leaving the previous table in place, before cutover.

How we hand over

  • Deliver a written record of each converted model, its transform, its target table and its schedule.
  • Document the permissions granted to Metabase, the reasons for each one, and the steps to revoke them.
  • Walk your data and analytics owners through how to add, change and monitor transforms after handover.
  • Record any model features that did not carry over so your team can decide how to handle them.

How we support

  • Review transform run history and warehouse load during an agreed period after cutover.
  • Adjust schedules, permissions or table definitions when source schemas change, under the agreed scope.
  • Keep transform configuration aligned with Metabase upgrades, which run application database migrations automatically.
  • Ongoing support and continuous testing are available as retainers, priced from the written scope.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.